Modern Apps git

← Modern-Apps.git

taxi: mark inline origin/destination pair with scaffold exception

Commit
9a441f90f20d26bbdfe84030bf14e47e20239c7d
Author
Vayun Mathur <[email protected]>
When
2026-12-01 22:10 UTC (4 days ago)
Parents
8b42f04
RideInputs.RouteInputs renders a stacked pickup + destination
pair on the Ride booking screen. RideScreen is hosted by
Route.Ride, a SiblingPage (not a DialogPage — Navigation.kt
registers it with SiblingPage() metadata, and the terminal-label
work in 3dc6ef77b touched RideTrackingCards, not this route),
inside AppScaffold(title = ...).

The destination OutlinedTextField was flagged [ScaffoldSearch]
at RideInputs.kt:171 (search placeholder + IconSearch).
Migrating to the scaffold search slot is not behaviour-identical
here: ScaffoldSearch is a single String field rendered as the
top app bar title, while this UI is an inline two-field pair.
Both fields share one debounced (300 ms) suggestion list keyed
by the active RouteField, per-field focus tracking, leading
dots/icons, clear/reset affordances, and a selection callback
that fills whichever field is active and then triggers quoting.
Moving only the destination into the top bar would split the
pair, drop the pickup field from that slot, and break the
active-field suggestion flow in both the narrow column and the
wide TaxiRideWideLayout panel.

So this adds the verbatim file-level marker after the package
line, following web/BrowserChrome.kt and
weather/SearchLocationPage.kt:

  // SCAFFOLD SEARCH EXCEPTION: inline two-field
  origin/destination pair on the Ride booking screen
  (Route.Ride SiblingPage, not a DialogPage); ScaffoldSearch
  is a single top-bar field and cannot host both pickup and
  destination fields sharing one active-field suggestion list

No lint config, detector, or baseline was touched, and no
behaviour changed.

Also regenerates the marker registry with
python3 tools/structure_check.py exceptions --regen, as the
structure ratchet requires parity. The regen additionally
records six pre-existing unregistered markers already present
in source on this base (appstore PACKAGE_JNI, arrows/wordmaker
RAW_ANIMATION, music RAW_SCAFFOLD); structure_check exceptions
now passes with 81 markers.

Verified (all green, BUILD SUCCESSFUL in 2m 7s):
  ./gradlew :taxi:lint :taxi:lintVitalRelease
            :taxi:testDevUnitTest :taxi:compileReleaseKotlin
Lint explicitly: :taxi:lint green and
:taxi:lintVitalRelease green (the originally failing task).

Diff

docs/structure/exceptions.tsv
diff --git a/docs/structure/exceptions.tsv b/docs/structure/exceptions.tsvindex 8be060da5c..75c6e32330 100644--- a/docs/structure/exceptions.tsv+++ b/docs/structure/exceptions.tsv@@ -1,6 +1,7 @@ # type	file	reason	count # Generated by: python3 tools/structure_check.py exceptions --regen # A new/changed marker requires regenerating this file and reviewing the diff; the reason column is copied verbatim from the source marker.+PACKAGE_JNI	appstore/src/main/java/com/vayunmathur/appstore/data/accrescent/SignifyNative.kt	JNI (verbatim marker; no free-text reason)	1 PACKAGE_JNI	code/src/main/java/com/vayunmathur/code/util/TreeSitterNative.kt	JNI (verbatim marker; no free-text reason)	1 PACKAGE_JNI	euicc/src/main/java/com/vayunmathur/euicc/EuiccNative.kt	JNI (verbatim marker; no free-text reason)	1 PACKAGE_JNI	games/kart/src/main/java/com/vayunmathur/games/kart/platform/KartNative.kt	JNI (verbatim marker; no free-text reason)	1@@ -18,6 +19,11 @@ PACKAGE_JNI	share/src/main/java/com/vayunmathur/share/protocol/ShareNativeDiscov PACKAGE_JNI	vpn/src/main/java/com/vayunmathur/vpn/util/VpnNative.kt	JNI (verbatim marker; no free-text reason)	1 PACKAGE_JNI	web/src/main/java/com/vayunmathur/web/shields/ShieldsNative.kt	JNI (verbatim marker; no free-text reason)	1 PACKAGE_JNI	youpipe/src/main/java/com/vayunmathur/youpipe/nativeext/YouPipeNative.kt	JNI (verbatim marker; no free-text reason)	1+RAW_ANIMATION	games/arrows/src/main/java/com/vayunmathur/games/arrows/ui/components/ArrowsBoard.kt	an arrow travelling its route is imperative motion - one Animatable	1+RAW_ANIMATION	games/arrows/src/main/java/com/vayunmathur/games/arrows/ui/components/ArrowsBoardDrawing.kt	an arrow travelling its route is imperative motion - one Animatable	1+RAW_ANIMATION	games/wordmaker/src/main/java/com/vayunmathur/games/wordmaker/ui/WordGameOverlays.kt	the letter-flight is an imperative motion - letters fly from the	1+RAW_ANIMATION	games/wordmaker/src/main/java/com/vayunmathur/games/wordmaker/ui/components/WordComponents.kt	AnimatedLetter carries the in-flight Animatable that WordGameScreen	1+RAW_SCAFFOLD	music/src/main/java/com/vayunmathur/music/ui/NowPlayingScreen.kt	nested now-playing scaffold	1 SCAFFOLD_SEARCH	astronomy/src/main/java/com/vayunmathur/astronomy/ui/SearchScreen.kt	full-bleed sky-map screen with TopAppBarOverlay chrome; no scaffold host for the catalog search field	1 SCAFFOLD_SEARCH	calendar/src/main/java/com/vayunmathur/calendar/ui/HolidayCalendarsScreen.kt	language-picker dialog-local search filter in this file; the screen's country search uses the scaffold search parameter	1 SCAFFOLD_SEARCH	calendar/src/main/java/com/vayunmathur/calendar/ui/dialogs/TimezonePickerDialog.kt	dialog-local timezone filter inside a picker dialog; no scaffold host	1@@ -29,6 +35,7 @@ SCAFFOLD_SEARCH	launcher/src/test/java/com/vayunmathur/launcher/ui/LauncherDrawe 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	taxi/src/main/java/com/vayunmathur/taxi/ui/RideInputs.kt	inline two-field origin/destination pair on the Ride booking screen (Route.Ride SiblingPage, not a DialogPage); ScaffoldSearch is a single top-bar field and cannot host both pickup and destination fields sharing one active-field suggestion list	1 SCAFFOLD_SEARCH	weather/src/main/java/com/vayunmathur/weather/ui/SearchLocationPage.kt	dialog-local location search inside a DialogPage route's Surface; no scaffold host	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
taxi/src/main/java/com/vayunmathur/taxi/ui/RideInputs.kt
diff --git a/taxi/src/main/java/com/vayunmathur/taxi/ui/RideInputs.kt b/taxi/src/main/java/com/vayunmathur/taxi/ui/RideInputs.ktindex a2c5333b7e..0642747097 100644--- a/taxi/src/main/java/com/vayunmathur/taxi/ui/RideInputs.kt+++ b/taxi/src/main/java/com/vayunmathur/taxi/ui/RideInputs.kt@@ -1,5 +1,6 @@ package com.vayunmathur.taxi.ui +// SCAFFOLD SEARCH EXCEPTION: inline two-field origin/destination pair on the Ride booking screen (Route.Ride SiblingPage, not a DialogPage); ScaffoldSearch is a single top-bar field and cannot host both pickup and destination fields sharing one active-field suggestion list import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement