pumpingStation template + no-data-duplication rule #39
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type: slice
Depends on: #37
Estimate: M (1–2 days)
Slice — layers touched
templates (
pumpingStation.jsondeclaresemittedFields) → composer (filters parent panels whoseemittedFieldsare covered by children) → integration test.Context
Implements PRD F-5. Adds the third supported node type.
Scope
src/templates/pumpingStation.jsoncovering pumpingStation-level metrics (basin level, total demand, total delivered flow, basin fill %).emittedFieldsfrom all children of a parent and removes any parent panel whoseemittedFieldsis fully covered by children.Out of scope
Acceptance criteria
flow.totalpanel and the composer sees no child emitsflow.total, parent keeps it.Slice #39 shipped on branch
slice/39-pumpingstation-no-dupBranches:
dashboardAPI·EVOLVWhat landed
config/pumpingStation.json: all 11 non-row panels carrymeta.emittedFieldsdeclarations.src/specificClass.js:generateDashboardsForGraphnow runs a parent-panel filter after composing child dashboards. Any non-row panel whoseemittedFieldsset is fully covered by the union of child-panelemittedFieldsis removed from the root.emittedFieldsalways kept (no silent removal);debuglog emitted when panels are deduped.Acceptance criteria (status)
level→ parent's level panels removed; child renders level.Closes #39.