web: exempt the browser omnibox from scaffold search
- Commit
0706fb3fe136f9fcca7d4f2b5f780910ae86ef30- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-01 19:49 UTC (4 days ago)
- Parents
c5b40ba
The two lintVitalRelease ScaffoldSearch errors are the browser omnibox, not screen search: BrowserChrome's read-only address pill in the bespoke movable top/bottom toolbar (no AppScaffold search slot, tap opens the editor overlay) and BrowserOmniboxEditor's editable address field anchored to its suggestions overlay (needs TextFieldValue selection control, Uri IME navigation submit and bottom docking, none of which the String-typed top-title ScaffoldSearch can host). Both carry the verbatim SCAFFOLD SEARCH EXCEPTION marker; exceptions.tsv and web/AGENTS.md record it. Merged manually because BrowserChrome.kt carries another agent's in-flight AppScaffold migration on main — only the marker line was added to its current content. Verified in the fix worktree: :web:lintVitalRelease + :web:lint green, 361 tests pass.
Diff
docs/structure/exceptions.tsv
diff --git a/docs/structure/exceptions.tsv b/docs/structure/exceptions.tsvindex 58762fc3a5..f413bce6b8 100644--- a/docs/structure/exceptions.tsv+++ b/docs/structure/exceptions.tsv@@ -28,6 +28,8 @@ SCAFFOLD_SEARCH launcher/src/main/java/com/vayunmathur/launcher/ui/WidgetPickerC SCAFFOLD_SEARCH library/ui/src/main/java/com/vayunmathur/library/ui/AppScaffold.kt <reason>` marker. 1 SCAFFOLD_SEARCH library/ui/src/main/java/com/vayunmathur/library/ui/CommonSearchBar.kt <reason>` marker (sheet/drawer-local pickers). 1 SCAFFOLD_SEARCH photos/src/main/java/com/vayunmathur/photos/ui/GalleryScreen.kt expandable SearchBar supplied as the AppScaffold topBar; its expanded overlay is the search-results photo grid 1+SCAFFOLD_SEARCH web/src/main/java/com/vayunmathur/web/ui/BrowserChrome.kt browser omnibox is navigation chrome, not screen search; the read-only address pill sits in the bespoke movable top/bottom browser toolbar, which has no AppScaffold search slot, and tapping it opens the omnibox editor overlay — the pill itself never edits or filters 1+SCAFFOLD_SEARCH web/src/main/java/com/vayunmathur/web/ui/BrowserOmniboxEditor.kt browser omnibox is navigation chrome, not screen search; the editable address field is anchored to its suggestions overlay and needs TextFieldValue selection control, Uri IME navigation submit and bottom docking, which the String-typed top-title ScaffoldSearch field cannot host 1 SCAFFOLD_SEARCH youpipe/src/main/java/com/vayunmathur/youpipe/ui/SearchScreen.kt expandable Material3 SearchBar whose expanded overlay is the search-results/suggestions surface (see the raw-scaffold exception below) 1 SCREENSHOT_COVERAGE communicate/src/main/java/com/vayunmathur/communicate/Route.kt Accounts: reads Keystore-sealed DataStore line sessions; no stateless slice for Layoutlib 1 SCREENSHOT_COVERAGE communicate/src/main/java/com/vayunmathur/communicate/Route.kt Call: live WebRTC/telecom call surface (mic/camera); the car in-call template is the renderable in-call capture 1
web/AGENTS.md
diff --git a/web/AGENTS.md b/web/AGENTS.mdindex a46583c12f..0914ed14ba 100644--- a/web/AGENTS.md+++ b/web/AGENTS.md@@ -22,6 +22,7 @@ _Install: ./install web (dev by default)._ - `SYSTEM` trust bundle is intentional here (arbitrary user hosts) — do NOT "fix" it to a narrower bundle - Shields filtering runs on the request path — regressions break all browsing; test with Shields on AND off - PWA windows run outside the browser chrome (`PwaActivity` + `PwaHelper`); window-launch bugs live there, not in `BrowserPage`+- The omnibox is browser navigation chrome, not screen-level search: the read-only address pill (`BrowserChrome`) and the editable address field anchored to its suggestions overlay (`BrowserOmniboxEditor`) carry `// SCAFFOLD SEARCH EXCEPTION:` markers — do not migrate them to `ScaffoldSearch` (String-typed top-title filter field; it cannot host the pill's read-only display, the editor's `TextFieldValue` selection control/Uri IME navigation submit, or bottom docking) ## Key files ### Root — entry + navigation
web/src/main/java/com/vayunmathur/web/ui/BrowserChrome.kt
diff --git a/web/src/main/java/com/vayunmathur/web/ui/BrowserChrome.kt b/web/src/main/java/com/vayunmathur/web/ui/BrowserChrome.ktindex a85c398cc9..4600f4efcf 100644--- a/web/src/main/java/com/vayunmathur/web/ui/BrowserChrome.kt+++ b/web/src/main/java/com/vayunmathur/web/ui/BrowserChrome.kt@@ -1,5 +1,6 @@ package com.vayunmathur.web.ui +// SCAFFOLD SEARCH EXCEPTION: browser omnibox is navigation chrome, not screen search; the read-only address pill sits in the bespoke movable top/bottom browser toolbar, which has no AppScaffold search slot, and tapping it opens the omnibox editor overlay — the pill itself never edits or filters import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Box@@ -28,8 +29,8 @@ import com.vayunmathur.library.ui.IconMoreVert import com.vayunmathur.library.ui.IconButton import com.vayunmathur.library.ui.LinearProgressIndicator import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.AppScaffold import com.vayunmathur.library.ui.OutlinedTextField-import com.vayunmathur.library.ui.Scaffold import com.vayunmathur.library.ui.Surface import com.vayunmathur.library.ui.Text import com.vayunmathur.library.ui.TopAppBar@@ -70,13 +71,6 @@ internal fun BrowserChrome( menu: @Composable () -> Unit = {}, content: @Composable (PaddingValues) -> Unit, ) {- // RAW SCAFFOLD EXCEPTION: bespoke browser toolbar chrome. The bar is a- // Column of a custom TopAppBar (a tappable read-only address pill as the- // title, with tab-count + overflow-menu actions on a surface-colored bar)- // with a page LinearProgressIndicator drawn alongside it, and it can sit- // in either the top or the bottom slot. That composite bar has no- // equivalent in the shared scaffolds, and the content is the full-bleed- // WebView. Back/forward/shields live in the overflow menu instead. val bar: @Composable () -> Unit = { // At the bottom, TopAppBar's hardcoded top inset would be a status bar's // height of dead space, and nothing else applies the navigation bar inset.@@ -136,7 +130,7 @@ internal fun BrowserChrome( if (!atBottom) PageProgress(progress) } }- Scaffold(+ AppScaffold( topBar = { if (!atBottom) bar() }, bottomBar = { if (atBottom) bar() }, content = content,
web/src/main/java/com/vayunmathur/web/ui/BrowserOmniboxEditor.kt
diff --git a/web/src/main/java/com/vayunmathur/web/ui/BrowserOmniboxEditor.kt b/web/src/main/java/com/vayunmathur/web/ui/BrowserOmniboxEditor.ktindex 2f39d3501e..c6ebd003bd 100644--- a/web/src/main/java/com/vayunmathur/web/ui/BrowserOmniboxEditor.kt+++ b/web/src/main/java/com/vayunmathur/web/ui/BrowserOmniboxEditor.kt@@ -1,5 +1,7 @@ package com.vayunmathur.web.ui +// SCAFFOLD SEARCH EXCEPTION: browser omnibox is navigation chrome, not screen search; the editable address field is anchored to its suggestions overlay and needs TextFieldValue selection control, Uri IME navigation submit and bottom docking, which the String-typed top-title ScaffoldSearch field cannot host+ import androidx.compose.foundation.layout.BoxWithConstraints import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.WindowInsets