docs: search hints say Search unless valuable
- Commit
f0150eff03d4eef5e49ec35489363f67ed4d025f- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-02 03:07 UTC (4 days ago)
- Parents
b8e355c
Root AGENTS.md section 2 now states the search-hint convention in one line: hints say "Search" unless they convey valuable info such as the active search engine in web. This is the rule the per-app hint cleanups in this stack apply.
Diff
AGENTS.md
diff --git a/AGENTS.md b/AGENTS.mdindex 065dfc3dac..41e5333be3 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -69,6 +69,7 @@ The backend (relay server for findfamily/everysync/office/voxels) lives outside - Never `Icon()`/`painterResource()`/`androidx.compose.material.icons.*` in app. Icons are generated from `library/ui/icons.tsv` by `GenerateIconsTask` (build-logic) at build time: add an icon = one manifest line + rebuild; never hand-edit the generated file. A wrapper not in the manifest does not exist, so a missing icon is a compile error. - Never raw `Scaffold`. Use `AppScaffold` family. Refresh/loading indication goes through the scaffold's pull-to-refresh box (`isRefreshing`/`onRefresh`/`refreshEnabled` on `AppScaffold` family; TV: `TvAppFrame.isRefreshing`/`TvLoading` top indicator), never a standalone `LoadingState`/`LoadingIndicator`/`CircularProgressIndicator`/`ContainedLoadingIndicator` or hand-rolled pull-to-refresh in app UI (fatal `ScaffoldLoading` lint). Truly local progress is a non-icon affordance (disabled state, progress text); real determinate progress is a `LinearProgressIndicator(progress=...)` bar. Exception marker only for library-internal helpers and genuinely non-screen contexts. Never raw `androidx.compose.animation` at call site — use `library.ui` helpers. Never `imePadding()/navigationBarsPadding()/systemBarsPadding()` in `library.ui`. - Screen-level search goes through the scaffold's `search` parameter (`search = ScaffoldSearch(query, onQueryChange, placeholder)` on `AppScaffold`/`DetailScaffold`/`DetailLazyColumn`/`LazyListScaffold`; the field renders AS the top app bar in its title slot, title replaced, above the refresh box), never a standalone `CommonSearchBar`/`SearchBar`/`SearchBarInputField` or search-identified `TextField`/`OutlinedTextField` in app UI (fatal `ScaffoldSearch` lint). The `AppScaffold(topBar=...)` overload, `SetupScaffold`, and `TabbedPagerScaffold` (pages own their scaffolds) have no search slot by design; TV uses its own text field. Dialog/sheet/drawer-local filters and expandable overlay search with no scaffold host use the exception marker only.+- Search hints say "Search" unless they convey valuable info such as the active search engine in web. - Room 3 only. Literal `androidx.room.` flagged even in comments. Never `buildDatabase()` at call site — subclass `library.room.RoomRepository`. - Network only via `library.network.NetworkClient` + `TrustBundle` narrowest (`FIRST_PARTY/STANDARD/EXTENDED/SYSTEM/ESIM`). - Package roots closed set: `ui data domain platform network intents service provider widget notifications sync telephony`. No `util/`. One public `@Composable` per file, named as file. `domain/` pure (no Android/Compose).