From b2193f48d5ebe16878ea636c867f30d7f9327c49 Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Thu, 16 May 2024 16:48:19 +0200 Subject: [PATCH] Update NIP90ContentDiscoveryScreen.kt --- .../ui/screen/loggedIn/NIP90ContentDiscoveryScreen.kt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/NIP90ContentDiscoveryScreen.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/NIP90ContentDiscoveryScreen.kt index 13dc1d2cb..5c0121309 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/NIP90ContentDiscoveryScreen.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/NIP90ContentDiscoveryScreen.kt @@ -101,7 +101,7 @@ fun RenderNostrNIP90ContentDiscoveryScreen( val pagerState = rememberPagerState { 2 } val coroutineScope = rememberCoroutineScope() - // TODO this now shows the first status update but there might be a better way + // TODO (Optional) this now shows the first status update but there might be a better way var dvmState = stringResource(R.string.dvm_waiting_status) var dvmNoState = stringResource(R.string.dvm_no_status) @@ -128,14 +128,15 @@ fun RenderNostrNIP90ContentDiscoveryScreen( thread.start() thread.join() - // TODO Maybe render a nice header with image and DVM name from the dvmID - // TODO How do we get the event information here?, LocalCache.checkGetOrCreateNote() returns note but event is empty - // TODO oterwise we have the NIP89 info in (note.event as AppDefinitionEvent).appMetaData() + // TODO (Optional) Maybe render a nice header with image and DVM name from the dvmID + // TODO (Optional) How do we get the event information here?, LocalCache.checkGetOrCreateNote() returns note but event is empty + // TODO (Optional) otherwise we have the NIP89 info in (note.event as AppDefinitionEvent).appMetaData() // Text(text = dvminfo) HorizontalPager(state = pagerState) { RefresheableBox(resultFeedViewModel, false) { SaveableFeedState(resultFeedViewModel, null) { listState -> + // TODO (Optional) Instead of a like reaction, do a Kind 31989 NIP89 App recommendation RenderFeedState( resultFeedViewModel, accountViewModel, @@ -143,7 +144,7 @@ fun RenderNostrNIP90ContentDiscoveryScreen( nav, null, onEmpty = { - // TODO Maybe also show some dvm image/text while waiting for the notes in this custom component + // TODO (Optional) Maybe also show some dvm image/text while waiting for the notes in this custom component FeedEmptywithStatus(status = dvmState) { } },