fix: scope evolution series to work area
GeoIntel release gates / Compile, test, contracts and builds (push) Canceled after 0s
GeoIntel release gates / Python and npm vulnerability policy (push) Canceled after 0s
GeoIntel release gates / GIS image, SBOM and container scan (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-22 06:55:49 +02:00
parent 5a3e7c679b
commit 65749b1694
3 changed files with 44 additions and 4 deletions
@@ -1,5 +1,6 @@
import { featureCollectionBounds } from '../../lib/geojsonBounds'
import type {
DatasetCreateResponse,
ProjectRead,
VectorSelectionBBox,
VectorSelectionMetric,
@@ -50,6 +51,16 @@ export function isSelectionBoundedDataset(
&& sourceMetadata['bbox_epsg4326'].length === 4
}
export type TemporalAreaMatch = 'exact' | 'unscoped' | 'other'
export function temporalDatasetAreaMatch(
dataset: Pick<DatasetCreateResponse, 'area_id'>,
selectedAreaId: string | null,
): TemporalAreaMatch {
if (!selectedAreaId || !dataset.area_id) return 'unscoped'
return dataset.area_id === selectedAreaId ? 'exact' : 'other'
}
export function operationalScopeProjectLabel(project: ProjectRead): string {
if (project.name === MOL_PROJECT_NAME) {
return 'Mol'