feat(location): render the search field's open and searching state from the tray

LocationControls presents whether the search field is open and whether a
lookup runs, and the dock renders its expanded and searching classes and
calls toggleSearch(). The lookup, the navigation's settle, Escape and the
location tray's collapse reach the field through the controls
(setSearching, settleSearch, closeSearch) instead of writing its classes.
LocationControls no longer takes searchToggle, LocationSearch takes
setSearching and NavigationController takes settleSearch in place of
searchInput.
This commit is contained in:
Sameh Khamis committed 2026-11-01 13:53:31 -08:00
1 parent b4ee2321cf
commit 0949f6a776
18 files changed
+238 -83

No files matched your search

+9 -2
View File
@@ -113,8 +113,15 @@
landmark pills or writes the mini status: it presents the tray, including
the search error (`setSearchError()`), and hands it to its `publish`
option, and Core's dock renders it and calls `chooseCity()` and
`choosePoi()`. Its `elements` are now only `search` and `searchToggle`:
`resetButtons` is gone, and the reset buttons call its new `reset()`.
`choosePoi()`. Its `elements` are now only `search`: `resetButtons` and
`searchToggle` are gone, and the reset buttons and the search toggle call
its new `reset()` and `toggleSearch()`. It presents the search field's
open and searching state too (`searchExpanded`, `searching`; a
`searchExpanded` option starts it open), set through `setSearching()`,
`settleSearch()` and `closeSearch()`, and a host renders the field's
`expanded` and `searching` classes from it; `LocationSearch`
takes a `setSearching` option in place of writing the field's class, and
`NavigationController` a `settleSearch` option in place of `searchInput`.
`createOrbitIndicator()` is replaced by
`showOrbit(active)`, which adds the ORBIT indicator to the presented tray
as `orbit: { active }` (null until offered) (samehkhamis).