Skip to content

fix(soil-fe): dashboard data wiring + suppression-aware texture + refresh action (P0)#6

Merged
basabot merged 1 commit into
masterfrom
fix/soil-dashboard-p0
May 26, 2026
Merged

fix(soil-fe): dashboard data wiring + suppression-aware texture + refresh action (P0)#6
basabot merged 1 commit into
masterfrom
fix/soil-dashboard-p0

Conversation

@k8-benetis
Copy link
Copy Markdown
Contributor

Three P0 frontend fixes surfaced by the Phase 2 audit:

  1. Entity type: dashboard queried AgriSoil but the worker materializes AgriSoilExtended → parcel list was always empty. Fixed data.entities + useEntities.
  2. Suppression-aware texture: with Phase 2, raw clay/sand/silt are suppressed for JRC-only parcels. TextureTriangle now plots the point only when fractions exist and always shows the backend-derived usdaTextureClass; removed the divergent frontend getTextureClass. Same usdaTextureClass row added to the viewer SoilPanel.
  3. Refresh action: a 'Calcular suelo' button per parcel (→ POST /parcel/{id}/ingest) so users can trigger materialization for existing parcels.

Verified: tsc --noEmit + vite build clean. (The dead inline RasterViewer is intentionally left for Phase 3a removal — see plan.)

…ss when raw suppressed; add refresh-soil action
@basabot basabot merged commit f4fff4c into master May 26, 2026
6 checks passed
@basabot basabot deleted the fix/soil-dashboard-p0 branch May 26, 2026 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants