Commit Graph
2454 Commits
Author SHA1 Message Date
Sameh Khamis 918435ddc7 A voice or chat selection shows its card in the Context panel (#1890)
* fix(voice): a selection steps a docked assistant panel down so Context shows; the panel keeps the last reply

A voice or chat action that selects an entity (select_nearest_aircraft,
track_entity) now minimizes a voice or chat panel docked in the right rail's
lane, so the rail and its Context panel show as after a click. The voice
card inside the panel no longer hides 14 s after its last update: the reply
stays until the next turn, Stop or a dismissal. The floating card keeps its
idle deadline.

* fix(voice): a voice or chat selection opens its card in the Context panel

A successful select_nearest_aircraft or track_entity now selects the entity
in the Context panel's entity card store the same way a click does, so the
panel opens on its details; the docked assistant panel then steps down so it
shows. track_entity reports the id it tracked. Nothing opens in Cockpit,
where Context is hidden.

* fix(voice): a slow selection never replaces a card picked since; Cockpit is read from its own state

The entity card store counts selections and clears. A voice or chat
selection notes that count when it is asked and opens its card only if no
other card was picked or cleared before it finished. Whether Cockpit is
running is read from the style manager's Cockpit state when it has one.

* Add the changelog entry

* fix(voice): the app hands voice its Context card opener

The voice package no longer imports the entity card store. The app builds
the opener (createContextCardOpener) and passes it to the voice commands as
contextCard, which keeps the voice package inside its own boundary.
2026-11-20 22:19:16 -08:00
Sameh Khamis fbbe6cd91f Voice Cockpit entry no longer switches Contacts on (#1889)
* fix(voice): voice Cockpit entry no longer turns Contacts on

Voice entry now changes no Context mode or detection setting, as the COCKPIT
button does not. An entry that names a layer or class searches that layer's
own aircraft, nearest first from the followed aircraft or the ground under
the camera, and follows the nearest match before entering; the followed
aircraft counts when it matches. A military request while Military Flights
is off switches that layer on as a plain layer. The class filter is shared
with Contacts navigation.

* fix(voice): a military Cockpit entry waits for the layer's first data and leaves no layer behind

A military entry that switched Military Flights on waits for that layer to
report its first data before searching it, bounded by that update, the
layer failing or going off, and the request's cancellation. If entry then
fails, the layer is switched off again; a layer that was already on stays
on. The search covers only the aircraft the person's filters show.

* Add the changelog entry
2026-11-20 22:01:03 -08:00
Sameh Khamis 5608b12a25 Show JTWC cyclones: western Pacific, Indian Ocean and Southern Hemisphere (#1891)
* Show JTWC warnings in Cyclone advisories

Cyclone advisories now also read the Joint Typhoon Warning Center (keyless,
public domain) for the western North Pacific, North Indian Ocean and Southern
Hemisphere, beside NHC and CPHC.

- server/providers/jtwc.js reads JTWC's warnings feed, each storm's JMV 3.0
  warning (.tcw) and its overlay (.kmz). /api/cyclones merges them with NHC's:
  one storm per id, NHC's advisory where NHC lists the storm. A failed JTWC
  read keeps its last storms, marked stale, and never hides NHC's.
- Storms carry an agency. A JTWC warning has no cone; its 34-knot wind danger
  area is drawn as its own dashed area and named for the selected storm.
- A JTWC storm's card notes that the regional centre's warning is official
  and that JTWC winds are 1-minute averages. Source and coverage wording names
  both agencies.
- Each storm is served while its own advisory is usable (12 hours for NHC,
  13 for JTWC).

* Keep one JTWC failure from affecting other storms or NHC

- A storm whose JTWC warning cannot be read or parsed is left out and the
  others are shown; the read fails only when every listed storm's does.
- JTWC is read under its own 8-second deadline. A failed or slow JTWC read
  keeps JTWC's last good storms and never delays, fails or stales the NHC
  answer.
- Danger-swath longitudes past ±180 (a ring crossing the antimeridian) are
  wrapped into -180..180 instead of dropping the ring.

* Add the changelog entry for JTWC cyclones
2026-11-20 21:48:15 -08:00
German Khokhlov b94e556693 Merge branch 'main' into byrdit/cctv-visible-only-fetch 2026-11-20 19:26:40 +04:00
German Khokhlov 40d567893e Merge branch 'main' into codex/fix-cctv-session-admission 2026-11-20 17:58:30 +04:00
German Khokhlov 23efd3b343 Merge main into codex/fix-cctv-session-admission
Main's Street View budget tests in the media feed-type file now mount the
provider through the shared CCTV test harness, which also resets the Google
rate-limit setting.
2026-11-20 17:39:46 +04:00
German Khokhlov 20647f6549 Merge origin/main into byrdit/cctv-visible-only-fetch
# Conflicts:
#	src/layers/cctv/frames.test.mjs
2026-11-20 17:33:48 +04:00
German Khokhlov c00c272bd8 Merge branch 'main' into codex/fix-annotation-height-culling 2026-11-20 17:26:36 +04:00
German Khokhlov f54d612aab Merge branch 'main' into codex/fix-annotation-height-culling 2026-11-20 17:24:08 +04:00
German Khokhlov 1a57469fd1 Merge branch 'main' into german/recent-imagery-auto-successor 2026-11-20 17:10:30 +04:00
German Khokhlov 4262829e27 Merge branch 'main' into german/recent-imagery-auto-successor 2026-11-20 17:03:24 +04:00
German Khokhlov 5b1c1ede29 Merge branch 'main' into feat/blender-camera-interchange-submit 2026-11-20 16:53:45 +04:00
Denis Groshev 050e0a3a7a Merge main into denis/iss-live-telemetry 2026-11-20 13:12:36 +01:00
Denis Groshev dac8738b80 Installations: a label takes a click only where nothing else is drawn
An interactive overlay entry is a card that takes every click from what is
drawn under it, so a base's label kept an aircraft or vessel under it from
being selected. The labels are no longer interactive entries. The layer
claims a click on a label box through the pick registry's click claim, as
CCTV counts do, only where nothing another layer draws is under it; over
the map or the layer's own dots and fills the label takes it, and another
layer's card painted over the label keeps its click. The label box is read
from the box the overlay painted for it (overlayHost.paintRect).
2026-11-20 13:12:21 +01:00
Denis Groshev 7b7eb2318a LIVE: a YouTube API that does not load offers Try again
A blocked or slow (over 5 s) IFrame API load reads as offline, reason
`api`, so both LIVE views show "Stream is offline" with Try again, which
loads the API afresh: the loader keeps no failed load. Embedding refused
by the video's owner (errors 101 and 150) stays unavailable. Tests cover
the loader's reuse and its retry after an error or a timeout.
2026-11-20 13:12:14 +01:00
German Khokhlov a5d6963d41 Merge branch 'main' into codex/cctv-shared-batch-20261019 2026-11-20 14:20:48 +04:00
German Khokhlov 812cff85df Merge branch 'main' into codex/cctv-shared-batch-20261019 2026-11-20 14:07:54 +04:00
German Khokhlov c2a4ad44cc Merge branch 'main' into fix/places-no-store-on-errors 2026-11-20 14:06:05 +04:00
German Khokhlov 4e03e82987 Merge main 2026-11-20 13:51:17 +04:00
Denis Groshev edbf3a234d Merge main into denis/iss-live-telemetry
Conflicts: the locale catalogs and package boundaries are three-way merges
(no message changed differently on both sides); zh-Hant is regenerated
from zh-CN. bhoteKoshiEmbeddedMedia.js keeps main's card counter and the
branch's shared YouTube loader (youtubeApi.js), so the media file builds
one script element fewer. The Cockpit briefing's LIVE tab and the orbital
NADIR/RESET button are main's UiButton.
2026-11-20 10:50:16 +01:00
German Khokhlov b2f746cdb2 Merge remote-tracking branch 'origin/main' into fix/places-no-store-on-errors 2026-11-20 13:48:55 +04:00
German Khokhlov e9c6071cb8 Merge remote-tracking branch 'origin/main' into german/cctv-nearest-same-camera 2026-11-20 13:48:51 +04:00
German Khokhlov a08cf7a2cd Merge main 2026-11-20 13:35:15 +04:00
German Khokhlov a12cf91070 Merge remote-tracking branch 'origin/main' into fix/cctv-streetview-fallback-catalog 2026-11-20 13:30:58 +04:00
German Khokhlov f10ea2e6b4 Merge main and keep both sets of CCTV rendering tests 2026-11-20 13:24:48 +04:00
German Khokhlov 2017ce27ee Merge remote-tracking branch 'origin/main' into fix/places-no-store-on-errors 2026-11-20 13:17:50 +04:00
German Khokhlov ab33ac5332 Merge remote-tracking branch 'origin/main' into german/cctv-nearest-same-camera
# Conflicts:
#	src/layers/cctv/selection.test.mjs
2026-11-20 13:17:49 +04:00
German Khokhlov 081c0b561d Merge remote-tracking branch 'origin/main' into fix/cctv-streetview-fallback-catalog 2026-11-20 13:17:05 +04:00
German Khokhlov 1b78f86b17 Merge remote-tracking branch 'origin/main' into fix/cockpit-utility-phone-row 2026-11-20 13:14:11 +04:00
German Khokhlov 09588b98bf Commit the shown CCTV camera with FOCUS, not a hidden picker option
The picker no longer keeps a hidden, disabled copy of the opening camera.
That copy could be re-picked with ArrowDown on a closed list, could show
twice in the iOS picker, and left Firefox without an accessible value.
The list now selects the camera's own option, as before. A native list
sends no change for the option it already shows, so FOCUS (or NEAREST,
when that camera is the nearest) keeps the shown camera. Closing the list
without a choice keeps automatic selection.
2026-11-20 12:55:52 +04:00
German Khokhlov 06dccdb00f Recent Imagery: hand a deferred slot over when the pick gives way to an empty card
While a user pick kept first claim on the slot of an empty automatic
day, a click or an arrow key onto a card already confirmed empty dropped
that pick but left the hand-over waiting for the next probe result. Until
then the map stayed blank and the Esri lease stayed held, where main
showed the next ranked day.

focus() and preview() now hand the slot over at once when no pick is
left. An arrow key onto an empty card no longer follows that day, as a
click already did, so focus stays on the card the user chose.
2026-11-20 12:35:22 +04:00
German Khokhlov 58d2c23860 fix(cctv): label a refused viewer's frame fallback instead of the live row
/frame now keeps a pullable HLS camera's shared health, so a viewer
refused for capacity saw its placeholder or Street View frame under the
live row's LIVE · OK badge and "Live HLS connected". When a video camera
is shown on its frame fallback while the row says live, the panel badge
now reads FALLBACK · DEGRADED and the meta line drops the live message;
the shared row stays as it is for the other viewers.
2026-11-20 12:29:50 +04:00
German Khokhlov 11175cc867 Merge branch 'main' into fix/places-no-store-on-errors 2026-11-20 12:26:59 +04:00
German Khokhlov 17cec5a8bb Merge branch 'main' into feat/paraguay-acaray-yacyreta 2026-11-20 12:19:38 +04:00
German Khokhlov 8eac8bd545 Recent Imagery: defer the hand-over to a waiting pick instead of skipping it
The previous change skipped the hand-over for good while a user pick was
pending. When that pick then probed empty, failed with a terminal error,
or lost its source, nothing previewed and the slot stayed blank, where
main would have draped the next ranked day. During the arrow-key
debounce the empty slot also handed the Esri lease back and took it
again 250 ms later.

The hand-over is now deferred: the pick keeps first claim on the slot
while its probe can still settle, and the next ranked day takes over as
soon as the pick turns out empty, errors or loses its source. Turning a
source off also drops a followed pick of that source. The layer keeps
the current basemap while a deferred pick waits, and Escape releases it.
Six tests cover both answer orders, the source toggle, a terminal error,
the debounce and the lease.
2026-11-20 11:57:55 +04:00
German Khokhlov 0bebd59b69 Merge main into codex/fix-cctv-session-admission 2026-11-20 11:48:38 +04:00
German Khokhlov ed38a1ab3f fix(cctv): keep an HLS camera's health through the refused viewer's frame
A viewer refused for capacity falls back to /frame after hls.js gives up.
For a pullable HLS camera without a snapshot, /frame only has a
placeholder or a Street View frame, which says nothing about the stream,
yet it wrote degraded over the health that /media owns. /frame now
leaves that health as it is; a dead upstream is still reported through
/media.

Tests: the middleware suite covers both fallbacks, a real upstream
failure that still degrades, and cross-site segment and release refusals
on a live HLS lease; capacity checks use HLS_LIMITS and HlsCapacityError;
the three CCTV suites share one provider harness in src/testSupport.
CURRENT-STATE and the changelog fragment describe the refusal.
2026-11-20 11:48:22 +04:00
German Khokhlov 49785e423d fix(cockpit): scope the centred phone row and keep Stories unread in Cockpit
The centred Display/Radio row now applies only inside the phone shell
(720 px and below) on flight and bridge views; satellite and provider
cockpits, narrow short windows (under 390x450) and very short windows
(under 240 px) keep main's right-anchored place, so the row no longer
lands on the desktop rail, orbital zoom, LOOK AHEAD, Reset or the Stories
button. The row sizes to its launchers instead of spanning the width.

The first-visit Stories announcement stays hidden and unread while
Cockpit is open: a Stories tap that Cockpit refuses no longer marks it
seen, so it shows again after Exit.

The unit tests and the Cockpit QA cover the phone boundary, glyph and
side taps, the destination cue, short and narrow windows and the
announcement's return.
2026-11-20 11:39:45 +04:00
German Khokhlov 01d4a3f454 CCTV Street View budget: key the client before the camera wait, share the default
- The /frame handler reads the client's network key (IPv6 /64) before it
  awaits the camera, so a client that drops the connection is still
  charged to its own window instead of the shared fallback key.
- The budget is charged only after the Google key and finite catalog
  coordinates are confirmed, and the key is read once.
- Places and the CCTV window share one default (GOOGLE_DEFAULT_PER_MIN).
- Tests: the catalog-only test checks heading/fov/pitch from the query at
  the catalog location; the budget test covers unknown ids, forwarded
  requests and /64 grouping; a real-socket test covers a dropped
  connection. The duplicate pose test is removed.
- .env.example, SECURITY.md, CURRENT-STATE and the changelog fragment
  describe the separate per-IP window, the catalog position and the
  placeholder for seed cameras.
2026-11-20 11:31:14 +04:00
German Khokhlov 881473cdd2 Merge remote-tracking branch 'origin/main' into german/recent-imagery-auto-successor 2026-11-20 11:15:13 +04:00
Sameh Khamis 893bc5b5f3 The search dock sits above the World Timeline on desktop
The bar takes the dock's floor and the dock, with the search field, rises by
the bar's height while it shows, as the dock does outside the search layout.
The bar no longer hides while search results or the chat and voice panels
open, since they open upward from the dock and no longer cover it.
2026-11-19 20:15:49 -08:00
Sameh Khamis 17bfc203c5 Merge branch 'main' into samehkhamis/find-it 2026-11-19 16:56:33 -08:00
Sameh Khamis eb7d92db66 Merge remote-tracking branch 'origin/main' into samehkhamis/street-level-photo-followups 2026-11-19 16:32:27 -08:00
Sameh Khamis 250a78c0f9 Merge branch 'main' into samehkhamis/start-layers 2026-11-19 15:54:31 -08:00
Sameh KhamisandManjunath Paparaju 33ac0545ef Street Level photo viewer: settle opens, a gapless picker, a stated contract
Follow-ups to the photo viewer's move to a Vue view (#1868):

- A panorama's open waits for a draw of the canvas counted from before it
  is shown, so a view that draws at once inside its listener no longer
  leaves the open pending; and when the last view unsubscribes, an open
  waiting on a draw goes on instead of hanging.
- photoViewers.js supersedes the mounts not drawn on a microtask, after
  the winning presentation has reached every subscriber: a second
  subscriber sees the earlier mount, then the later one, never null
  between.
- A presentation without a mountKey counts as the latest mount (among
  several without, the one that began presenting last), and one without
  actions or supersede is passed over without throwing. Both fields are
  documented on ViewerAdapter.subscribeView in registry.js and in the
  store's comment.
- The guard test also refuses .width, .height, .ariaLabel, .id and .value
  writes in photoViewer.js, and .src writes outside loadImage, where only
  the off-page Image it creates may take one.
- The test fakes draw every viewer through one shared view behind
  photoViewers.js's picker, as the application does, so provider and
  layer tests see supersede.

Nothing changes in the running app.

Co-authored-by: Manjunath Paparaju <[email protected]>
2026-11-19 15:48:50 -08:00
Sameh Khamis 22e9c58d84 Find a selected vessel or aircraft again from its card
While a selected vessel, aircraft or military aircraft is off screen, behind
the globe or out of its layer's feed, its Context card shows Find it. One
still in its feed is flown to (an aircraft followed). One out of its feed is
looked up on its own track at the layer's time (the world clock's while the
layer follows it), the card moves to that reading and says how old it is, and
the camera flies there; once the feed has it again its layer selects it again.
With no reading at or before the time the card says so and the camera stays.

A vessel its layer announces is named by its own id, as a click names it,
not by the context store's.
2026-11-19 15:40:31 -08:00
Sameh Khamis 5258f1b2a4 Merge branch 'main' into samehkhamis/start-layers 2026-11-19 15:39:50 -08:00
German Khokhlov fdf7ed93ce fix(annotations): sample arrow, route and area points outside the view (#1277)
A point of an arrow, route or area outside the view frustum was not
sampled and stood in at 0 m, so a partly visible arrow could hide, point
at the wrong place or vanish behind the eye. Such points are sampled again
within the 32-sample budget and the one-second retry, as on main; lone
points outside the view still skip sampling. The 0 m stand-in exceptions
are removed. Also from review: shared viewPlanes for transit and the
renderer, a −430..9000 m segment test against the view planes, tighter
tests and shorter docs.
2026-11-20 03:39:09 +04:00
German Khokhlov 7db4bb35f7 fix(blender-camera): match Director timing and harden the export CLI
Sample frames with Director's normalized shots and runtime timing, count
frames with a tolerance bounded by float rounding, coerce legacy numeric
text, open the input without blocking, strip a BOM, remove a partial
output on failure, and escape control characters in errors.
2026-11-20 03:38:04 +04:00
German Khokhlov 5d45c2c20b Merge remote-tracking branch 'origin/main' into fix/places-no-store-on-errors 2026-11-20 03:36:50 +04:00