notes: simplify search hint to Search
- Commit
80600a04464eba5ce834670c8790ee0a730933ce- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-02 03:07 UTC (4 days ago)
- Parents
b5c5526
The notes list placeholder was the app name ("Notes"),
which reads as a title, not a search hint. Use the shared
localized UiR.string.search instead, and update the list
test that typed into the old placeholder.
Verified: :notes:lint, :notes:lintVitalRelease and
:notes:testDevUnitTest green (253 tests).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 a383311a33..eb7669ac69 100644--- a/notes/src/main/java/com/vayunmathur/notes/ui/NotesListScreen.kt+++ b/notes/src/main/java/com/vayunmathur/notes/ui/NotesListScreen.kt@@ -51,6 +51,7 @@ import com.vayunmathur.library.ui.ReorderableItem import com.vayunmathur.library.ui.rememberReorderableLazyListState import com.vayunmathur.library.ui.reorderDragHandle import com.vayunmathur.library.ui.animatedDp+import com.vayunmathur.library.ui.R as UiR import com.vayunmathur.notes.R import com.vayunmathur.notes.data.Note import com.vayunmathur.notes.domain.tagCounts@@ -180,7 +181,7 @@ fun NotesListScreen( search = if (isSelectionMode) null else ScaffoldSearch( query = searchQuery, onQueryChange = { actions.setSearchQuery(it) },- placeholder = stringResource(R.string.app_name),+ placeholder = stringResource(UiR.string.search), ), actions = backupButtons, topBar = if (!isSelectionMode) null else {
notes/src/test/java/com/vayunmathur/notes/ui/NotesComposeTest.kt
diff --git a/notes/src/test/java/com/vayunmathur/notes/ui/NotesComposeTest.kt b/notes/src/test/java/com/vayunmathur/notes/ui/NotesComposeTest.ktindex cf0d27ba47..291ad1b806 100644--- a/notes/src/test/java/com/vayunmathur/notes/ui/NotesComposeTest.kt+++ b/notes/src/test/java/com/vayunmathur/notes/ui/NotesComposeTest.kt@@ -136,8 +136,8 @@ class NotesComposeTest { val actions = RecordingListActions() rule.setContent { FilteredList(notes(), actions) } rule.onNodeWithText("Alpha Title").assertIsDisplayed()- // CommonSearchBar is a text field with placeholder = app name "Notes"- rule.onNodeWithText("Notes").performTextInput("gamma")+ // CommonSearchBar is a text field with placeholder "Search"+ rule.onNodeWithText("Search").performTextInput("gamma") rule.waitForIdle() rule.onNodeWithText("Gamma").assertIsDisplayed() assertEquals(0, rule.onAllNodesWithText("Alpha Title").fetchSemanticsNodes().size)