Commit Graph
2250 Commits
Author SHA1 Message Date
German Khokhlov 2b7a6b0c63 Merge remote-tracking branch 'origin/main' into german/cctv-camera-counts
# Conflicts:
#	src/layers/cctv/lifecycle.test.mjs
2026-11-19 14:34:39 +04:00
Sameh Khamis 7c925f610d Merge remote-tracking branch 'origin/main' into samehkhamis/kit-dialog 2026-11-19 01:54:17 -08:00
Sameh Khamis 29e38b6198 Merge remote-tracking branch 'origin/main' into samehkhamis/kit-checkbox 2026-11-19 01:31:58 -08:00
Sameh KhamisandManjunath Paparaju ec4a5b6afe Vue kit: UiDialog for the Data Library and scene sharing dialogs
UiDialog is a native <dialog> its owner opens and closes with open: true
opens it with showModal() (on mount, for one mounted open), false closes
it, and unmounting closes it. Each change is applied once the content has
rendered and then emitted as opened or closed, so the Data Library still
focuses its search field on open and returns focus to Browse on close.
Escape's cancel is prevented and emitted as dismiss; backdropDismiss makes
a click on the dialog itself a dismiss too, as the Data Library's was. When
the browser closes the dialog on its own while open is still true,
browserClose tells the owner, as the Data Library's close listener did;
closing on unmount reports nothing. A DOM without showModal() leaves it
closed. Attributes, classes, styles and listeners go to the dialog, and
element is exposed.

The two dialogs share no declarations, so there are no kit rules.
dialogs.test.mjs fails if a view writes a <dialog> by hand; the panels drawn
as role="dialog" are other controls.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-19 01:16:46 -08:00
Sameh Khamis 31ed97043a Merge remote-tracking branch 'origin/main' into samehkhamis/kit-search-field
# Conflicts:
#	docs/VUE-MIGRATION.md
2026-11-19 01:10:34 -08:00
Sameh KhamisandManjunath Paparaju 2d7b7be890 Vue kit: UiCheckbox for the Visual, voice, Data Library and welcome checkboxes
UiCheckbox is a label wrapping a native checkbox and its words; trailing
puts the box after them, as the Visual panel's rows have it. v-model shows
the value and emits the checked state, and change is emitted with its event;
without a modelValue the box is the browser's own, as the welcome card's
"Don't show this again" is. restore puts the box back to modelValue once a
change has rendered without the owner taking it, which is what the voice
panel's v-checked directive did for a refused preference. Attributes go to
the label; inputId and inputAttrs to the box.

checkbox.css holds the centred flex row, moved out of the two labels that
hold only a checkbox (first-run.css, library.css) and loaded before them.
Each box keeps its skin's size, margin and accent colour. checkboxes.test.mjs
fails if a view writes a checkbox by hand; Story Explore's filters are not
converted yet.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-19 01:05:12 -08:00
Sameh KhamisandManjunath Paparaju 52dd576769 Vue kit: UiSearchField for the Context and Layer Finder searches
UiSearchField is the search glyph, a search input with v-model and, with
clearLabel, a UiCloseButton shown while text is typed that clears and
refocuses. tag is div or label; attributes go to the frame, and inputId,
inputClass, autocomplete and spellcheck to the input. Escape stops at the
input and is emitted with its event; focus() focuses the input.

search-field.css holds the declarations both skins had in common (the
frame's flex row, the input's min-width, border and background), moved out
of context-dock.css and layer-finder.css and loaded before them. The
browser's cancel button stays each skin's own.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-19 00:42:51 -08:00
Sameh KhamisandManjunath Paparaju 2418e43545 Vue kit: bare is for skins that set their own padding; pin the CCTV and Inspector close load order; changelog for #1840
Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-19 00:26:29 -08:00
Sameh KhamisandManjunath Paparaju 1711b4b456 Vue kit: UiCloseButton for every close button in the views
UiCloseButton is a UiButton with a fixed glyph (× or the Material close
symbol through UiIcon), a required accessible label and no tip unless the
site passes a title. Attributes and classes pass through, so each site keeps
its id, feature class, data and aria attributes, and its look.

Its kit class, ui-close-button (close-button.css, loaded before the feature
stylesheets), is Core's common look: a bare glyph with no padding, border
or background of its own, and a pointer. The guide's close button shares
the rule, and the copies of those declarations leave the feature rules.
`bare` leaves the look off for Street Level's and the space mission's close
buttons, whose skins keep the browser's padding. UiIcon takes size null to
leave the glyph's size to the stylesheet.

The sixteen hand-written close, dismiss and clear buttons in the SFCs are
now UiCloseButtons; closeButtons.test.mjs pins that none remain.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-19 00:19:33 -08:00
Sameh Khamis c58f9fbdc6 Merge branch 'main' into samehkhamis/kit-styles 2026-11-19 00:17:02 -08:00
Sameh KhamisandManjunath Paparaju 0d3c3325d4 Vue kit: compact styles the action variant only, tone is accent or danger, a disabled icon button dims; pin the inherited type
Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 23:51:16 -08:00
Sameh KhamisandManjunath Paparaju 9f8a4cb39d Vue kit: the kit's classes wear Core's standard looks
UiButton gains styled variants beside the unstyled default ghost:
action (the gev-action-button surface, tone="danger" and size="compact"),
primary (that surface with the scene panel's main-action accent) and icon
(the panel collapse toggle's square glyph button). A pressed styled button
looks as a hovered one does. UiChip wears the read-only chip (now chip.css,
shared with the news chips), UiEmpty the one-line empty state (now
empty-state.css, shared with the news readout), and UiBadge and UiSegmented
carry their skins through the kit's own classes too.

Every kit selector shares one selector list with the Core skin it comes
from, in skins loaded before the feature stylesheets, so no rule is copied
and feature classes still win. The app renders as before: the voice card
chip and the Recent Imagery and Authoring empty states keep their own type
by inheriting it, and the dock pin buttons drop variant="icon", which they
never wore. kitStyles.test.mjs pins the shared rules.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 23:42:55 -08:00
Sameh Khamis 6502028fbe Merge branch 'main' into samehkhamis/rail-and-hud-cleanup 2026-11-18 23:33:51 -08:00
Sameh KhamisandManjunath Paparaju 10dbd2f937 fix(ui): a side of a midpoint block thinner than 8% of the window holds no panel; pin the lower merge edge
Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 23:14:26 -08:00
Sameh KhamisandManjunath Paparaju 81df2c8c42 fix(ui): the left rail's panels use all the room it counted above an obstacle across the middle
Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 23:01:47 -08:00
Sameh KhamisandManjunath Paparaju 98a100ed7e fix(ui): rails count the obstacles beside those across the middle, and read them as before when neither side has room
Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 22:51:42 -08:00
Sameh KhamisandManjunath Paparaju d2797dbad2 fix(places): keep the places index's build date only when every tile is unchanged; say the 500 km cap is for wide lookups
Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 22:44:12 -08:00
Sameh KhamisandManjunath Paparaju feedd88614 fix(ui): rails take obstacles across the middle together, so their order never picks the side
Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 22:39:29 -08:00
Sameh KhamisandManjunath Paparaju 30ec362c13 fix(places): look for small places within 500 km, so a whole-globe view reads only the tiles near its centre
Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 22:34:59 -08:00
Sameh KhamisandManjunath Paparaju f414df97eb fix(places): a small place in view comes before a far bigger namesake
findPlace looked at the detail tiles only when no city had the typed name,
so a village called Paris in view lost to Paris, France. With
includeSmallPlaces it now reads the places near the view as well and takes
the nearest place of the name there, city or not. With none near, the
largest city of the name still wins.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 22:34:59 -08:00
Sameh KhamisandManjunath Paparaju 8b055a1423 fix(ui): panel rails keep clear of an obstacle across the middle of the window
An obstacle that crossed the middle of the window (the World Timeline, the
voice control or a card in a window under about 520px tall) was neither
above nor below it, so neither rail counted it and panels could be laid out
over it. Such an obstacle now puts the panels on whichever side of it has
more room. When neither side has room, the rails keep their existing
minimum (the right rail's empty band, the left rail's minimum lane height).

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 22:32:40 -08:00
Sameh Khamis edf595f69f Merge branch 'main' into samehkhamis/omnibar-reading-fixes 2026-11-18 22:14:08 -08:00
Sameh Khamis f6f1ee2a3a Merge branch 'main' into samehkhamis/place-privacy-2 2026-11-18 22:02:01 -08:00
Sameh Khamis a5b18f3718 Merge branch 'main' into samehkhamis/space-missions-fixes 2026-11-18 21:49:21 -08:00
Sameh KhamisandManjunath Paparaju cdde80f3ad Never fly to a mission while the cockpit holds the camera
Focusing a mission does nothing in the cockpit, so the layer row's arrows
select the next mission without moving the camera, as its label and dot
already do.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 20:58:17 -08:00
Sameh KhamisandManjunath Paparaju 038915bc0b Take "from the map" off after "clear" only when what is left clears the whole map
"clear all flights from the map" no longer offers to turn Flights on, and
"clear the layers from the map" clears the layers.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 20:38:56 -08:00
Sameh KhamisandManjunath Paparaju 6c960eb3c9 Keep the camera still in the cockpit when a mission's dot is clicked or its orbit arrives
The cockpit holds the camera: the mission dot, like its label, selects the
mission there without flying to it, and a mission picked in the cockpit is
not flown to when the active satellite lookup returns.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 20:37:53 -08:00
Sameh KhamisandManjunath Paparaju 813c6b23ea Say that an explicit Satellites action lets the saved state go after a busy restore
Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 20:28:58 -08:00
Sameh KhamisandManjunath Paparaju a29efa12c4 Let a mission label select its mission in the cockpit, and say what the merged click rule does
Under the card-on-top rule a mission label is the card on top for the
cockpit too, so the label no longer steps aside there: it selects its
mission without moving the camera the cockpit holds. Tests and docs no
longer claim a covered click reaches what lies under the label, and the
busy-restore note says an explicit Satellites action lets the saved state
go.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 20:24:16 -08:00
Sameh KhamisandManjunath Paparaju 3a5b10a1f6 Take "from the map" off after "clear" only for the whole map
"clear flights from the map" no longer offers to turn Flights on.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 20:07:18 -08:00
Sameh KhamisandManjunath Paparaju 9b6683a9cd Read requests about a map as requests, catch quoted or dash-joined phrases, and an en dash before "thanks"
Words a request about a map is made of (near, today, open, find …) count
with the map words, so "find good food open now near this area today"
is a request; a phrase is let through about once in a hundred. Phrases
quoted, numbered "1:", "#1" or "[1]", or joined by dashes, pipes,
slashes or dots are caught, and a code before " – thanks" is private.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 20:06:35 -08:00
Sameh KhamisandManjunath Paparaju 0e5c5e624c Merge origin/main into space-missions-fixes
Main's single click rule (the card or label on top takes the click, read
once per click through clickCard and isUnderOtherCard in
src/data/pickRegistry.js) covers a click on a Space Missions label: a
mission marker label is an interactive world-overlay entry, so the
host's hit test names it as the card on top for every other layer. The
per-layer label guards in CCTV, Drone Airspace, FIRMS, Ghost Maps, News,
Perimeters, Shipwrecks, Vessels, Wildlife Sightings, ALPR, Local ADS-B
and the cockpit orbital focus are dropped for main's versions.

The mission-label tests are kept on main's API: fakeInputUnderLabel now
also names the label as the card on top, and each test shows a click on
the label never acts on the card, camera, vessel, fire, reader, aircraft
or report under it, and leaves the selection as it is. A launches test
checks that a mission label is interactive and is the card on top for
every other layer. Docs, changelog and the dispatcher's `overlay` note
describe the merged behaviour.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 20:00:25 -08:00
Sameh KhamisandManjunath Paparaju 71f40c9655 Keep phone and clean-view credits as they were, and lift narrow corners over the World Timeline
The Cesium credit box's width cap and right-to-left placement apply from
1200px as before, and in the Omnibar layout at every width, so the phone
shell, clean view, recording and scene playback keep their own layout.
Narrower than 1120px the coordinates and the Tactical readout sit above
the World Timeline while it shows. The scene format notes that a build
from before `sonar` refuses a project that has it.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 19:45:47 -08:00
Sameh KhamisandManjunath Paparaju 40e2998466 Carry Sonar with the Minimal HUD layout in links and scene shots
A link or scene shot made in Minimal with Sonar on played back with Sonar
off, and turned off the viewer's own. Tactical with Sonar keeps the `cyber`
layout code, which older readers understand; Minimal with Sonar now carries
an explicit mark beside its layout: flag bit 5 (`hudSonar`, default off) of
a compact link, `hs=1` in the long form, and `hud.sonar: true` in a scene
shot. A restore turns Sonar on when the state names Cyber or carries the
mark, so a state made before it restores exactly as it did.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 19:45:47 -08:00
Sameh KhamisandManjunath Paparaju c69a421678 Keep the HUD corners, the dock and a wrapped credit line apart at every width
The credit line now wraps at every width instead of running under the
corner row, and right to left it takes the bottom right at every width. A
small watcher keeps its height in --credit-line-height, so the coordinates
(and, right to left, the Tactical readout) stay above it however many lines
it wraps onto, and the dock and World Timeline rise when it is taller than
their usual clearance. Narrower than 1120px the dock leaves no room between
the bottom corners, so the coordinates and the readout sit above the dock
instead of under it. Outside the Omnibar layout, the coordinate rule meant
for 981 to 1199px no longer overrides the two-row dock's placement at 980px
and below.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 19:45:47 -08:00
Sameh KhamisandManjunath Paparaju 3d31126c72 Read "from the map" only after hide, remove, turn off or clear
"show me the view from the map" is a question again, not a place search.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 19:45:38 -08:00
Sameh KhamisandManjunath Paparaju 94dcadf54f Tell lists of places from recovery phrases by four map words in any twelve, keep " - thanks" codes private, and trim long tails at once
The map words cover 108 BIP39 words for places, buildings, vehicles and
the land; twelve list words in a row with four of them are a list of
places, which a random phrase is about once in three hundred. A code
followed by " - thanks" is private again, and the IPv6 and bearer trims
no longer slow on long runs of commas or brackets.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 19:34:48 -08:00
Sameh KhamisandManjunath Paparaju f75f42d3ca Read lists of places as places, not recovery phrases, and keep code tails fast
Twelve BIP39 words in a row with three words for places or things on a map
("coffee, bar, hotel, museum, park …") are a list, not a phrase; a random
phrase has three of them about once in two hundred. A code's value and the
courtesy word after it no longer overlap, and trailing punctuation is
trimmed from a word's end only, so a long run of hyphens is read at once.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 19:13:04 -08:00
Sameh KhamisandManjunath Paparaju cd5a4443a2 Read "from the map" after any switch or clear verb, before anything else
"clear everything except flights from the map" and "hide everything
from the map" now read as they do without the ending, instead of only
offering Ask GEV or a place search.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 19:10:54 -08:00
Sameh Khamis 35c5ee5deb Merge remote-tracking branch 'origin/main' into fix/earthquake-click-details 2026-11-18 18:58:33 -08:00
Sameh Khamis e87aa5190d Merge main into fix/earthquake-click-details
Resolves conflicts with main: a world focus target's own range past its
framed radius replaces the kind's range (#1832), so a quake asks for its
own range only past M6 and the earthquake framing stays its floor; FIRMS
keeps main's marker stand-in under the card-on-top rule; launches keep
main's label click and also read the card on top through the pick
registry.
2026-11-18 18:58:07 -08:00
Sameh KhamisandManjunath Paparaju 3f5221b837 Withhold an SSN's last four, a code before ", thanks" and a recovery phrase written with commas or numbers
"ssn ending 1234" and "ssn last four 1234" are private again, as before
this change; a code may be followed by a comma, "cheers", "thanks a
lot" or more than one "!"; a recovery phrase is twelve BIP39 words in a
row, so commas, numbering, a closing period or "my seed is" before it no
longer hide it. The spelled-out email patterns start only at a word, which
keeps long inputs fast.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 18:38:13 -08:00
Sameh Khamis 4ee0aba82e Renderer contract: decoded imagery, tiles the application hands over as finished images
A timed source of kind 'decoded' (capability imageryDecoded) names the slot a
time shows (slotAt), the slots to hold ahead (prefetch) and answers each tile
of a slot with an image, missing or defer. The Cesium renderer draws each held
slot as an imagery layer of its own, as it draws frames; the stub shows the
slot. The check globe.imagery.decoded covers it.
2026-11-18 18:37:23 -08:00
Sameh KhamisandManjunath Paparaju 81192cfa50 Keep plans for places that begin with a kind of place, and keep Satellites with Space Missions only while missions are on
A keyword is read as the start of a name only when what follows is one
word for a kind of place alone ("Radio City", "Traffic Island"), so
"traffic city hall" and "earthquakes valley forge" keep their plans.
"except space missions" keeps Satellites only while Space Missions is
on, and "from the map" is read before "except".

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 18:36:26 -08:00
Sameh Khamis bb3bf9858b fix(click): the card or label on top takes the click in every layer
Review fixes for #1781:

- One rule for cards: the world-overlay host hands its hit test to the
  pick registry, and every click handler reads the topmost interactive
  card or label once per click (`clickCard`, `isUnderOtherCard` in
  src/data/pickRegistry.js), so all handlers agree in any listener order.
  A layer whose own card or label is on top acts on it whatever is drawn
  under it; a layer under another layer's card neither acts nor treats
  the click as empty space (a tracked aircraft stays tracked, a selection
  stays selected); Context names nothing under a card. A selected news
  card over a vessel no longer opens the link and selects the vessel.
- With one rule, the per-owner arbitration options are no longer read
  and are removed: `passive`, `expanded` and `declinesClick` pick owners,
  `rememberClickPickActions`, `isActedOnByOtherLayer`, card backgrounds
  and `cardKeepsClick`. The dispatcher is unchanged from main.
- A drag that ends on a quake disc, label or card does nothing; opening
  the USGS page or clearing the selection needs a clean click.
- A click on the map under another layer's card opens no Street Level
  ground image.
- A CCTV card that is going away is still not the scene under it.
- Docs and changelog describe the new rule.
2026-11-18 18:23:41 -08:00
Sameh KhamisandManjunath Paparaju 2487500927 Read recovery phrases against the BIP39 list, and fix four more privacy readings
A recovery phrase is now twelve to twenty-four words that are all on the
BIP39 English list, so a long request ("show every plane over london then
…") reaches Ask GEV while a phrase holding "find" or "please" is still
caught. A time in brackets is no IPv6 address (only a bracketed host after
"//" is), "St 123456 A" is no National Insurance number (spaced in pairs or
not at all), "my, ID 12345" keeps its owner, a partial "ssn 1" stays
private while typed, any CVV value is private, and a code followed by
"thanks" or "now" is still a code. Idaho's reading no longer slows down on
very long lines.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 18:17:22 -08:00
Sameh KhamisandManjunath Paparaju 859aa172e7 Keep Space Missions with Satellites in "except", leave "turn off the screen" alone, and part places after a compound country
"hide everything except space missions" (or "satellites") keeps both, as
switching either off takes the other. "turn off the screen" is no longer
read as a switch with "off the screen" taken off it, which left a place
search. A place joined after a compound country is another place ("near
Trinidad and Tobago and Barbados"), and a compound country after another
place stays whole ("near Paris and Trinidad and Tobago"). Only a word for a
kind of place written after a name ("Island", "City") drops a plan, so
"earthquakes lake tahoe" and "traffic tower bridge" keep theirs. Two doc
comments are back above their code.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 18:11:18 -08:00
Sameh KhamisandManjunath Paparaju 29d0fa6e0b Keep satellite tracking stopped by a place search through the Space Missions restore
A place search or fly-to stops satellite tracking with the tool origin,
which the saved Satellites state did not take in, so a satellite tracked
by voice during the mission was tracked again when Space Missions ended.
The saved state now takes in every deliberate Satellites setting (person,
voice or tool), as the layer state does.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 17:56:36 -08:00
Sameh KhamisandManjunath Paparaju ab01345c7d Keep a Satellites setting the person changes while Space Missions holds its saved state
A setting such as "show orbits" changed by the person or by voice while
Space Missions keeps the Satellites state from before it (while it runs, or
after a restore that found Satellites busy) was overwritten when the mission
ended. It is now kept in that saved state, as their visibility choice is.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 17:36:15 -08:00
Sameh KhamisandManjunath Paparaju 25d33a2e6f Run "everything except" on Enter, keep every layer it names, and keep plans for places
"hide everything except flights" runs on Enter, as asked in so many words.
A layer to keep written with "the" is read ("except flights and the
radio"), and one that is not read switches nothing off: only Ask GEV is
offered. A keyword before the rest of a name only drops its plan when that
rest starts with a word for a kind of place ("Fire Island"), so
"earthquakes japan" and "flights London" keep theirs. "Saint Vincent and
the Grenadines" stays one place with its "the".

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 17:35:10 -08:00