From d6d5a72e49cd0e9e16da1480cc77e40221fc9dd2 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 31 Aug 2026 20:41:48 +0000 Subject: [PATCH] fix(nav): stop labelling the mixed media feed "Shorts" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two different destinations in the bottom-bar picker showed the same "Shorts" label with different icons and different content: - Main > NavBarItem.VIDEO (Route.Video, VideoFeedFilter) is the combined media feed: NIP-68 pictures, NIP-94 file headers and every NIP-71 video kind (normal, horizontal, vertical, short), scoped by the "stories" follow list. This is the one that also shows images. - Feeds > NavBarItem.SHORTS (Route.Shorts, ShortsFeedFilter) is vertical video only (kinds 22 and 34236), scoped by the "shorts" follow list. Relabel the first one "Media", which is accurate for its contents and doesn't collide with the neighbouring Pictures / Videos / Shorts feed entries. The FAB on that screen was described as "New Shorts: images or videos" for the same reason, so it becomes "New Media: image or video". Both are new string keys rather than edits in place: all 47 locales had translated the old keys as "Shorts", and those translations would be wrong for the new meaning. Crowdin drops the retired keys on its next sync and the label falls back to English until retranslated. The NavBarItem enum constants are serialized into user settings by name, so VIDEO keeps its name — only the display label changes. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01Ya9C9GkvkRHLRqrPCAa4WA --- .../amethyst/ui/navigation/bottombars/NavBarItem.kt | 7 ++++++- .../ui/screen/loggedIn/video/NewVideoFeedButton.kt | 4 ++-- amethyst/src/main/res/values/strings.xml | 6 ++++-- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/bottombars/NavBarItem.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/bottombars/NavBarItem.kt index 5959cb5c25..3c4fcef1d3 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/bottombars/NavBarItem.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/navigation/bottombars/NavBarItem.kt @@ -119,10 +119,13 @@ val NavBarCatalog: Map = icon = MaterialSymbols.Mail, resolveRoute = { Route.Message }, ), + // The combined media feed (VideoFeedFilter): pictures, NIP-94 files and every NIP-71 + // video kind. Deliberately *not* labelled "Shorts" — NavBarItem.SHORTS below is the + // vertical-video-only feed, and the two used to share that label. NavBarItem.VIDEO to NavBarItemDef( id = NavBarItem.VIDEO, - labelRes = R.string.route_video, + labelRes = R.string.route_media, icon = MaterialSymbols.Subscriptions, resolveRoute = { Route.Video() }, ), @@ -315,6 +318,8 @@ val NavBarCatalog: Map = icon = MaterialSymbols.AutoMirrored.FormatListBulleted, resolveRoute = { Route.CalendarCollections }, ), + // Vertical/short video only (ShortsFeedFilter: kinds 22 + 34236). The broader + // picture-and-video feed is NavBarItem.VIDEO ("Media") above. NavBarItem.SHORTS to NavBarItemDef( id = NavBarItem.SHORTS, diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/video/NewVideoFeedButton.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/video/NewVideoFeedButton.kt index fb92d80055..9f45cd0b11 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/video/NewVideoFeedButton.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/video/NewVideoFeedButton.kt @@ -225,7 +225,7 @@ fun NewVideoFeedButton( ) { Icon( symbol = MaterialSymbols.Close, - contentDescription = stringRes(id = R.string.new_short), + contentDescription = stringRes(id = R.string.new_media), modifier = Size26Modifier, tint = MaterialTheme.colorScheme.onPrimary, ) @@ -238,7 +238,7 @@ fun NewVideoFeedButton( ) { Icon( painter = painterRes(R.drawable.ic_compose, 5), - contentDescription = stringRes(id = R.string.new_short), + contentDescription = stringRes(id = R.string.new_media), modifier = Size26Modifier, tint = MaterialTheme.colorScheme.onPrimary, ) diff --git a/amethyst/src/main/res/values/strings.xml b/amethyst/src/main/res/values/strings.xml index 857ca34039..5afa83b120 100644 --- a/amethyst/src/main/res/values/strings.xml +++ b/amethyst/src/main/res/values/strings.xml @@ -3201,7 +3201,9 @@ Discover Messages Notifications - Shorts + + Media Calendars Calendar lists Chess @@ -3474,7 +3476,7 @@ Import Follows New Post - New Shorts: images or videos + New Media: image or video New Community Note New Product New Article