mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
Merge main into feat/shipwrecks; move shipwrecks to token 00
Main's wildlife-sightings layer took share-link token 9, so shipwrecks takes the next free token, 00. Locale, docs, format-scope and voice manifest conflicts keep both sides. Ledger and registry tests now model the ledger before shipwrecks took 00, and layer counts include both new layers. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
commit
096b3c85bf
202 files changed
+29339
-622
No files matched your search
@@ -36,6 +36,7 @@ export const LAYER_NAME_KEYS = Object.freeze({
|
||||
'fire-perimeters': msg('Fire Perimeters'),
|
||||
'gnss-integrity': msg('GNSS Integrity'),
|
||||
'drone-airspace': msg('Prohibited & Restricted Airspace'),
|
||||
'wildlife-sightings': msg('Wildlife Sightings'),
|
||||
's2-ghostmaps': msg('S2 GhostMaps'),
|
||||
shipwrecks: msg('Shipwrecks'),
|
||||
wind: msg('Wind'),
|
||||
@@ -142,3 +143,17 @@ export function sourceLabel(source) {
|
||||
? source.split(' · ').map(translateKnown).join(' · ')
|
||||
: translateKnown(source);
|
||||
}
|
||||
|
||||
/**
|
||||
* A provider name with the feed state it answered in, so a fallback or stale
|
||||
* snapshot does not read as the live primary feed.
|
||||
* @param {string} source English source name.
|
||||
* @param {'fallback'|'stale'|null} status Feed state from `layerFeedState`.
|
||||
* @returns {string}
|
||||
*/
|
||||
export function sourceStatusLabel(source, status) {
|
||||
const name = sourceLabel(source);
|
||||
if (status === 'fallback') return `${name} · ${t('FALLBACK')}`;
|
||||
if (status === 'stale') return `${name} · ${t('STALE')}`;
|
||||
return name;
|
||||
}
|
||||
Reference in new issue
Block a user