notes: remove showing one tag indicator
- Commit
88712c17e186c651faec261a80a0fe6021d2130d- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-02 02:11 UTC (4 days ago)
- Parents
67969fe
Remove the tag-hint list item shown under the tag filter row when a single tag was selected, together with its now-unused tag_filter_reorder_hint string (present only in the default locale; no values-* locale carried it). The unused padding import in NotesListScreen goes with it. Tag filtering itself is unchanged: selecting a tag still filters the list and still suppresses reorder drag handles, and selecting All still restores the full list. NoteTagsComposeTest's filter test now pins that filtering still works and the reorder handles stay hidden while the indicator text is absent, in both filtered and unfiltered states. Verified: ./gradlew :notes:lint :notes:lintVitalRelease :notes:testDevUnitTest green (BUILD SUCCESSFUL), plus a standalone :notes:lintVitalRelease re-run green.
Diff
notes/src/main/java/com/vayunmathur/notes/ui/NotesListScreen.kt
diff --git a/notes/src/main/java/com/vayunmathur/notes/ui/NotesListScreen.kt b/notes/src/main/java/com/vayunmathur/notes/ui/NotesListScreen.ktindex 5df20de6ae..a383311a33 100644--- a/notes/src/main/java/com/vayunmathur/notes/ui/NotesListScreen.kt+++ b/notes/src/main/java/com/vayunmathur/notes/ui/NotesListScreen.kt@@ -6,7 +6,6 @@ import androidx.activity.compose.BackHandler import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.combinedClickable import androidx.compose.foundation.layout.Column-import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.RowScope@@ -228,16 +227,6 @@ fun NotesListScreen( ) } }- if (activeTag != null) {- item(key = "tag-hint") {- Text(- stringResource(R.string.tag_filter_reorder_hint),- modifier = Modifier.padding(horizontal = 16.dp, vertical = 2.dp),- style = MaterialTheme.typography.labelMedium,- color = MaterialTheme.colorScheme.onSurfaceVariant,- )- }- } if (!state.hasLoaded && filtered.isEmpty()) { item(key = "loading") { androidx.compose.foundation.layout.Box(Modifier.fillParentMaxSize())
notes/src/main/res/values/strings.xml
diff --git a/notes/src/main/res/values/strings.xml b/notes/src/main/res/values/strings.xmlindex a35249931e..f2c7a4e6f4 100644--- a/notes/src/main/res/values/strings.xml+++ b/notes/src/main/res/values/strings.xml@@ -30,8 +30,6 @@ </plurals> <!-- NotesList filter row: accessibility action for long-pressing a tag chip (opens Rename / Delete). --> <string name="tag_options">Tag options</string>- <!-- NotesList: hint under the tag filter row; dragging to reorder is off while a tag is selected. -->- <string name="tag_filter_reorder_hint">Showing one tag. Select All to reorder notes.</string> <!-- NotesList: empty state when a search matches nothing. %1$s is the query. --> <string name="no_results_for">No results for \"%1$s\"</string> <!-- NotesList: clears the current search from the no-results empty state. -->
notes/src/test/java/com/vayunmathur/notes/ui/NoteTagsComposeTest.kt
diff --git a/notes/src/test/java/com/vayunmathur/notes/ui/NoteTagsComposeTest.kt b/notes/src/test/java/com/vayunmathur/notes/ui/NoteTagsComposeTest.ktindex 67cb6c3aff..0a9528408a 100644--- a/notes/src/test/java/com/vayunmathur/notes/ui/NoteTagsComposeTest.kt+++ b/notes/src/test/java/com/vayunmathur/notes/ui/NoteTagsComposeTest.kt@@ -159,9 +159,9 @@ class NoteTagsComposeTest { rule.onNode(hasText("Work") and hasText("2")).assertIsSelected() assertTrue(shown("Standup") && shown("Roadmap")) assertTrue(!shown("Groceries") && !shown("Loose"))- // Filtered: no reorder handles, and the hint says why.+ // Filtered: still no reorder handles, but no "showing one tag" indicator. assertTrue(rule.onAllNodesWithContentDescription("Reorder").fetchSemanticsNodes().isEmpty())- rule.onNodeWithText("Showing one tag. Select All to reorder notes.").assertIsDisplayed()+ assertTrue(!shown("Showing one tag. Select All to reorder notes.")) rule.onNodeWithText("All").performClick() rule.waitForIdle()