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

+5 -3
View File
@@ -134,11 +134,11 @@ export class StyleManager extends ShellFacade {
this._panelChrome = new PanelChrome({
elements: {
_leftPanelStack: this._leftPanelStack,
_locationSearch: this._locationSearch,
_ppToggles: this._ppToggles,
_rightPanelStack: this._rightPanelStack,
},
operations: {
_closeLocationSearch: () => this._locationNavigation?.closeSearch(),
_syncCctvPanelViewport: (...args) =>
this._syncCctvPanelViewport(...args),
_showToast: (...args) => this._showToast(...args),
@@ -171,7 +171,8 @@ export class StyleManager extends ShellFacade {
militaryAwarenessLayer,
rocketLaunchesLayer: services.rocketLaunchesLayer,
},
searchInput: this._locationSearch,
settleSearch: (options) =>
this._locationNavigation?.settleSearch(options),
interruptCameraMotion: services.interruptCameraMotion,
interruptGlobeRotation: services.interruptGlobeRotation,
isCockpitActive: () => !!this.cockpitView?.active,
@@ -321,7 +322,6 @@ export class StyleManager extends ShellFacade {
},
elements: {
_locationSearch: this._locationSearch,
_searchToggle: this._searchToggle,
},
operations: {
_publishLocation: (view) =>
@@ -528,6 +528,8 @@ export class StyleManager extends ShellFacade {
_locationSearch: this._locationSearch,
},
operations: {
_closeLocationSearch: (options) =>
this._locationNavigation?.closeSearch(options),
setStyle: (...args) => this.setStyle(...args),
_updateHudButtonState: (...args) => this._updateHudButtonState(...args),
_syncShareState: (...args) => this._syncShareState(...args),