mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 01:32:19 +00:00
Add the Omnibar: one field above the footer for places, layers and commands
On desktop the dock becomes one search bar (Omnibar.vue) that shows the rows the line-reading pipeline makes: places with nearby suggestions, coordinates, map items, layers, commands, plans such as "go to Austin and show flights", guided walks through the real controls, and Ask GEV for questions. Enter runs only what the line asks for outright. The map credits move below the bar onto the Power Up row, the voice waveform shows in the bar while voice is on, and the dock's Location and Visual trays are hidden in this layout. The phone layout is unchanged. Long place names are kept out of automatic Ask GEV. Co-authored-by: Sameh Khamis <[email protected]>
This commit is contained in:
1 parent
6e0baacd57
commit
a3f4af91f8
36 files changed
+4741
-75
No files matched your search
@@ -5,11 +5,14 @@ import { markRaw, shallowRef } from 'vue';
|
||||
* The top-bar omnibar's link to the shell. The shell connects the actions
|
||||
* the omnibar offers: `layers()` lists the data layers as `{id, name,
|
||||
* enabled}`, and `setLayer(id, enabled)` turns one on or off as a user click
|
||||
* would. Place search runs through the location controls and Ask GEV through
|
||||
* the voice controls, so neither is repeated here.
|
||||
* would. `creditPlaces()`, optional, credits the bundled Wikidata place
|
||||
* packs once a name from them is shown, and `creditSuggestions(shown)`,
|
||||
* optional, shows the OpenStreetMap credit while Photon's suggestions are. Place search runs through the
|
||||
* location controls and Ask GEV through the voice controls, so neither is
|
||||
* repeated here.
|
||||
*/
|
||||
export const useOmnibarStore = defineStore('gev-omnibar', () => {
|
||||
/** `{layers(), setLayer(id, enabled)}`, or null while disconnected. */
|
||||
/** `{layers(), setLayer(id, enabled), creditPlaces?()}`, or null while disconnected. */
|
||||
const controls = shallowRef(null);
|
||||
|
||||
/** @param {?object} next The shell's omnibar actions, or null. */
|
||||
|
||||
Reference in new issue
Block a user