Commit Graph
3600 Commits
Author SHA1 Message Date
Sameh Khamis 1ef0aaa5cd Merge remote-tracking branch 'origin/main' into samehkhamis/kit-sweep-omnibar 2026-11-19 03:14:23 -08:00
Sameh Khamis c99c87d1f2 Merge remote-tracking branch 'origin/main' into samehkhamis/sfc-omnibar-guide
# Conflicts:
#	docs/VUE-MIGRATION.md
2026-11-19 02:54:56 -08:00
Sameh Khamis 1985a22180 Merge remote-tracking branch 'origin/main' into samehkhamis/sfc-quebec-cctv
# Conflicts:
#	docs/VUE-MIGRATION.md
2026-11-19 02:34:23 -08:00
Sameh KhamisandManjunath Paparaju 7dd27d4ff7 The Omnibar guard test pins its glyphs' own sizing
Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-19 02:33:39 -08:00
Sameh KhamisandManjunath Paparaju be9d772b4d Vue kit: the Omnibar's mic and strip chips are UiButtons and its glyphs UiIcons
The mic is a ghost UiButton pressed with the active class, and the
suggestion strip's chips are ghost UiButtons that keep their option role
and aria-current. The search, row and chip glyphs are UiIcons sized by
the Omnibar's own rules. The mic and chat row glyphs stay inline SVG,
since no loaded Material symbol draws them. A guard test pins it.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-19 02:29:52 -08:00
Sameh KhamisandManjunath Paparaju 4a6f185d07 The guided walk finds its elements in the rendered tree
Template refs are filled after a render returns, and later still when the
walk starts inside one of Vue's own post-render updates, where the walk
would have failed with its listeners already in place.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-19 02:16:38 -08:00
Sameh Khamis d6439ce3f0 Merge remote-tracking branch 'origin/main' into samehkhamis/sfc-credits
# Conflicts:
#	docs/VUE-MIGRATION.md
2026-11-19 02:14:22 -08:00
Sameh KhamisandManjunath Paparaju 10a26e15ce Vue: the Omnibar's guided walk is a single-file component
OmnibarGuide renders the walk's spotlight ring and callout, teleported to the
end of the body as before, with the kit's UiCloseButton for its close and
UiButtons for Not now, the offer and Next. startGuide() keeps its signature
and every decision and word: it renders the view synchronously from what it
computes for each step and keeps the parts the template never binds: the
guide's visible class and the callout's entrance replay (in the same order,
so the first step still fades in), the callout's place and side and the
rings' boxes each frame, focus and its return, Escape and the checks for a
screen another surface owns.

The ids, roles, aria attributes, hidden attributes, tabindex, text and focus
order are unchanged. The buttons gain the kit's classes, which carry no
rules, so they look as before. The close drops the aria-hidden span around
its glyph: its name is still its aria-label, "End guide", and its tip the
same words. Progress segments are new elements each step, as before, so a
segment's colour does not animate across steps, and the status line changes
once per step.

New tests: the walk is the last of the body, takes focus and gives it back,
announces each step once and draws new progress each step, and a new walk
ends the one in progress.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-19 02:10:49 -08:00
Sameh KhamisandManjunath Paparaju 121d11d3ff Vue: the Quebec CCTV overlay is a single-file component
QuebecCctvOverlay renders the Québec 511 player window and its map preview,
teleported to the end of the body as before, with the kit's UiCloseButton
and UiButtons. createQuebecCctvOverlay() keeps its API and every decision:
it renders the view synchronously from the state it computes on each change,
and keeps the parts the template never binds (each video's source, playback
and refresh timer, the window's drag, and the marker's per-frame visibility
and place). The markup is unchanged apart from the kit's button classes.

The overlay test renders in the registered document, which Vue binds when
it loads, and adds Escape closing the window until the camera is picked
again.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-19 02:02:26 -08:00
Sameh KhamisandManjunath Paparaju 0b06bc6645 Vue: the credits line and its Data attribution list are a single-file component
mountCreditsView() keeps its signature and stays the owner: it computes the
credits shown once each, keeps the list's open state and its focus, takes the
expand and close clicks and Escape, and renders CreditsView synchronously
(as the weather readout is rendered), so focus moves as soon as a change
returns. The view teleports the line and the list to the end of the body, as
the script appended them, so the page's rules that select them as children
of the body still apply; CreditItem draws one credit (its logo or its text,
only its linked words linked, links and logos kept only for a safe scheme).

The ids, classes, roles, aria attributes and text are unchanged. The list's
close button is a UiCloseButton with bare, keeping the browser's padding, so
it only gains the kit's classes, which carry no rules. The expand button
stays a plain button: its words are its content, which a UiButton slot would
not word again when the owner renders a new locale. The list's items are
keyed by credit, so a link that keeps its place keeps focus through a
redraw; one that goes still hands focus to the close button.

New tests: the line and list follow the locale, and they are the last of the
body with the kit's close button.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-19 01:58:47 -08: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 1f34210f71 Vue kit: a late close event no longer shuts a reopened dialog; a scene sharing dialog the browser closes closes through its owner; the opened timing test can fail
Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-19 01:21:10 -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 c1e58b72b9 fix(ui): any positive room counts when a midpoint band asks for no minimum
Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 23:26:22 -08:00
Sameh KhamisandManjunath Paparaju fd64a78aca test(ui): pin the midpoint band's exact minimum, and correct a test comment
Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 23:26:10 -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 378df7b613 fix(ui): neighbours exactly two gaps from a midpoint obstacle join its block, and the band beside it stays inside the rail's own edges
Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 23:02:10 -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 50824c9a65 test(places): pin the pack build-date rule and a nearer village beating a namesake inside a wide search
Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 22:54:53 -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 75e345aa07 fix(places): small places stop at 500 km even in tiles that reach past it
Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 22:44:36 -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 a2c86c0fed fix(places): a rebuild writes its files before removing stale tiles, and keeps the build date when nothing changed
Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 22:34:59 -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 b5018b8cc2 Let the cockpit focus test reach its check
The test's camera and rendering doubles now carry what focusing a mission
uses, so without the cockpit guard the test fails on the camera flight
rather than on a missing double.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 21:25:05 -08:00
Sameh Khamis 14bf0de2a2 Merge branch 'main' into fix-delayed-clock-test 2026-11-18 21:22:35 -08:00
Sameh Khamis 06aff17004 test(flights): hold the clock still while the delayed-live icon test compares drawn and read positions
The contact moves about half a metre per millisecond, and the drawn and read
positions each read Date.now(); on a busy machine the two readings landed far
enough apart to fail 'same place'.
2026-11-18 21:09:42 -08:00
Sameh Khamis 6a86102336 fix(render): icons drawn over depth no longer flicker
An icon drawn over depth set its log depth to exactly the near plane (1.0).
Interpolated across the quad, that value can arrive a rounding step or two
under czm_writeLogDepth's 0.9999999 cut, which discards the fragment, so a
moving icon vanished for a frame now and then, most visibly far away in dense
clusters. It now sits 1e-4 m past the near plane, still in front of
everything.
2026-11-18 21:09:42 -08:00
Sameh KhamisandManjunath Paparaju b363f9b09b Catch a recovery phrase quoted »like this« or ‚like this‘
Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 20:58:22 -08:00
Sameh KhamisandManjunath Paparaju 6f959fc3cc Read "clear … except" from the map only when it clears every other layer
"clear all flights except ships from the map" no longer offers to turn
Ships on.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 20:58:18 -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 bf1e313301 Catch a recovery phrase in curly or angle quotes
Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-18 20:39:01 -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