release: bump version to 0.84.0
ci / backend (push) Canceled after 0s
ci / frontend (push) Canceled after 0s
ci / delivery (push) Canceled after 0s

This commit is contained in:
linkong committed 2026-12-04 07:07:19 +08:00
1 parent 3b1b9ef68c
commit e1cc27f13d
241 files changed
+42779 -6027

No files matched your search

@@ -92,6 +92,14 @@ The Admin datasource page routes single-source trigger, table-selected trigger,
This queue is a user-perception layer. Backend task status remains the only source of truth for running, completion, failure, and skipped decisions.
## Collected Data Layer Ledger
`/data` ([DataList.tsx](/home/ray/dev/linkong/planet/frontend/src/admin/pages/DataList.tsx) and `pages/data-ledger/`) organizes review around Earth layer categories (synced with `?layer=`, defaulting to `compute`) backed by `/api/v1/data-ledger/*`:
- Left-pane [LayerNav.tsx](/home/ray/dev/linkong/planet/frontend/src/admin/pages/data-ledger/LayerNav.tsx) reuses backend `PRODUCT_DEFINITIONS` counts across Earth layers while preserving `Raw Collected Records` (`?layer=raw`) for legacy `/api/v1/collected` filtering, dimension toggle, and export.
- `layer=compute` mounts [ComputeLedger.tsx](/home/ray/dev/linkong/planet/frontend/src/admin/pages/data-ledger/ComputeLedger.tsx) with 5 facility-type filters, 4 location status buckets (`located`, `needs_confirmation`, `terminal`, `pending`), country/keyword search, 28px `TableActionButton` actions (`Relocate` with `force: true` and `Edit coordinates` dialog reusing `/api/v1/visualization/compute-centers/{source_id}/collect-location` and coordinate save endpoints), plus row details with sanitized reasoning and `/advisor/runs` links.
- Other layers (`satellites`, `cables`, `vessels`, `bgp`, `news`, `weather`, `geo`) render read-only paginated views via [LayerItemsLedger.tsx](/home/ray/dev/linkong/planet/frontend/src/admin/pages/data-ledger/LayerItemsLedger.tsx) inside the single-screen internal-scroll layout.
## Admin Theme Slider
The Admin sidebar theme switcher still reuses shared [SegmentedControl.tsx](/home/ray/dev/linkong/planet/frontend/src/components/SegmentedControl/SegmentedControl.tsx), while [styles.css](/home/ray/dev/linkong/planet/frontend/src/admin/styles.css) overrides the segment variables by `data-theme`:
@@ -465,6 +473,14 @@ The image library supports upload/URL entry, attribution, licensing, enabled sta
Under `/earth/card-images`, configuration GET/PUT, upload POST, targets GET and preview POST require administrators. Resolve and content-addressed files are public read-only routes. Configuration writes use revision checks and audit transactions.
## Multi-metric compute ledger and candidate review queue
## Multi-metric compute ledger, candidate review queue, and revision history
`ComputeComparisonSettings.tsx` powers `/earth-content?section=compute_comparison` within the Admin single-screen height chain (`height: 100%` + `min-height: 0`), keeping the header and six workspace tabs (Observations, AI structure, Innovation gap, Milestones & 8 Hubs, Sources, and Candidate queue) pinned while only the inner `Scrollbar` scrolls. Saves use optimistic revision locking and round-trip `structures`, `milestones`, and `national_hubs` intact; the Candidate queue connects to `/api/v1/situational-awareness/candidates` for excerpt extraction, manual approval/rejection, and one-click import into the draft.
`ComputeComparisonSettings.tsx` powers `/earth-content?section=compute_comparison` within the Admin single-screen height chain (`height: 100%` + `min-height: 0`), keeping the header, publish-note bar, and seven workspace tabs (Observations, AI structure, Innovation gap, Milestones & 8 Hubs, Sources, Candidate queue, and Revision history) pinned while only the inner `Scrollbar` scrolls. Saves use optimistic `publish_id` locking, preserve `structures`, `milestones`, `national_hubs`, and per-country `value_sources` (requiring a `publish_note` explaining same-denominator comparability whenever a share row mixes multiple sources), and append to the immutable revision ledger. The Candidate queue connects to `/api/v1/situational-awareness/candidates` with revision/new/period-conflict/duplicate badges, per-country old→new→delta comparison tables, mandatory matched reason codes and rationale on approve/reject, non-destructive per-country draft imports, and explicit confirmation dialogs on `period_label` conflicts; Revision history lists `/api/v1/data-products/compute/revisions` entries with diff summaries, actor metadata, publish notes, and presentation delivery status.
## Global Real-Time Cloud & High-Res Basemap Workbenches (`weather` / `geo`)
`EarthCloudMapSettings.tsx` mounts at `/earth-content?section=cloud_map` under the shared Admin single-screen (`height: 100%` + `min-height: 0`) shell and focuses strictly on live preview and Earth presentation controls: a 2:1 starry preview with SVG graticule and convective-cluster overlay, history frame scrubbing, global/regional KPIs, display toggles (live IR enablement, daytime GeoColor compositing, DIS optical-flow advection, cloud-top relief strength, timelapse playback, convective markers, opacity, reset), plus a read-only weather collector summary linking to `/datasources?product=weather` (`global_cloud_map`, `cloud_hd_tiles`, `global_wind_gfs`) and `/collection-management` (`采集器配置`). `EarthBasemapSettings.tsx` mounts at `/earth-content?section=basemap` to preview and configure the managed tile pyramid sources (`earth_imagery_sentinel2`, `earth_imagery_viirs_daily` under the new `geo` / `地理/底图` product domain, plus `cloud_hd_tiles`), disk LRU cache caps, per-source cache clearing, and viewport LOD switch altitude thresholds.
## Bundled Built-in Preview Assets for Admin-Only Builds
Production `planet_admin` images are built with `PLANET_FRONTEND_TARGET=admin` (`publicDir: false` in `frontend/vite.config.mts`, keeping `dist/earth/` strictly excluded), while backend default brand and static cloud configurations retain `/earth/assets/...` paths for the desktop offline Earth contract. To prevent Admin preview `<img>` tags from falling through Nginx SPA `index.html` fallback as broken images, `earthBuiltinAssetsPlugin` in `frontend/vite.config.mts` maps `@earth-builtin-asset/*` imports directly to hashed files under `/assets/*.png` (`brand/earth-logo.png`, `brand/title-zh.png`, `brand/title-en.png`, `brand/lim-logo.png`, `earth_clouds_2048.png`). `resolveEarthPreviewAssetUrl()` in `frontend/src/admin/lib/earthBuiltinAssets.ts` resolves those built-in paths only at preview render time in `EarthBrandPreview` and `EarthCloudMapSettings`, leaving persisted `/earth/assets/...` config values, form inputs, and user-uploaded `/earth-brand-assets/...` URLs untouched.