Data seeding, filter overhaul, UI scaling fixes, sanitized AlarmAnalysis copy
Data & simulation: - simulation_tags.json: re-prioritize 10 tags to Medium so all four priorities appear in live data (backfilled journal history to match) - SimHarness probe P2: ack-user/includeData ground truth + filtered-bundle verification against the live journal Data layer (PrimeControls.calc/alarms): - filters now drive every metric: queryStatus rows (Active Now/Unacked/ Standing) filtered via calc.apply_status_filters; event_count counts only filtered instances (per-instance n_events); dropdown options enumerate unfiltered data so choices never collapse - build_bundle refactored into _assemble(); when filters are active an unfiltered mirror is attached as bundle.overview - the Overview tab stays a plant-wide summary while all other consumers bind filtered sections - _fetch_journal now honors includeData (required for ackUserName; without it ack attribution is always None); enabled for journal rows + source detail so Top Ack Users and the Ack By column populate FilterBar/Dashboard: - root-cause fix: bidirectional bindings never wrote dropdown selections back to session props, so filters silently did nothing; Apply now pulls values directly from the sibling controls, Clear resets both - multi-select dropdowns cap at 280px and wrap chips; filter bar row is auto-height so wrapped chips push tabs down instead of overlapping - filter bar hidden on the Overview tab (not applicable there) UI scaling: - Header: Prime logo added; KpiCard compacted to fit the 71px KPI row (basis-95% overflow fix, chip hugs text, embeds clipped) - no scrollbars - Overview timeline: thinned x labels (minDistance 140), labels anchored below the axis, smaller legend markers - Bad Actors focus chip shows the full source string with the clear X - popup repeaters (Daily Activity, ScoreBars) no longer overflow (useDefaultViewWidth/Height off, taller strip); 5px table cell padding Tooling/tests: - lint_project.py: accept propConfig params.* as param declarations (Designer saves strip null params entries) - tests: 31 -> 34 (status-filter semantics, overview mirror, filtered event counts) - .gitignore: runtime churn (valueStore.idb, local-system-properties, migration logs, thumbnails, .schemas) New project: AlarmAnalysis - submission copy of PrimeBAT with client-visible Prime Controls branding removed (logo, subtitle, project title, shift report heading); PrimeControls organizational namespaces retained per spec. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
"label": "Intake Pump 2 Fault",
|
||||
"mode": "Equality",
|
||||
"setpointA": 1.0,
|
||||
"priority": "High"
|
||||
"priority": "Medium"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -50,7 +50,7 @@
|
||||
"label": "Intake Screen Diff Press High",
|
||||
"mode": "Equality",
|
||||
"setpointA": 1.0,
|
||||
"priority": "Low"
|
||||
"priority": "Medium"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -264,7 +264,7 @@
|
||||
"label": "Fuel Gas Pressure Low",
|
||||
"mode": "Equality",
|
||||
"setpointA": 1.0,
|
||||
"priority": "Low"
|
||||
"priority": "Medium"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -280,7 +280,7 @@
|
||||
"label": "Economizer Diff Press High",
|
||||
"mode": "Equality",
|
||||
"setpointA": 1.0,
|
||||
"priority": "Low"
|
||||
"priority": "Medium"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -398,7 +398,7 @@
|
||||
"label": "Conveyor Motor Overload",
|
||||
"mode": "Equality",
|
||||
"setpointA": 1.0,
|
||||
"priority": "High"
|
||||
"priority": "Medium"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -430,7 +430,7 @@
|
||||
"label": "Date Coder Ink Low",
|
||||
"mode": "Equality",
|
||||
"setpointA": 1.0,
|
||||
"priority": "Low"
|
||||
"priority": "Medium"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -580,7 +580,7 @@
|
||||
"label": "Glycol Supply Temp High",
|
||||
"mode": "Equality",
|
||||
"setpointA": 1.0,
|
||||
"priority": "Low"
|
||||
"priority": "Medium"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -596,7 +596,7 @@
|
||||
"label": "Nitrogen Pressure Low",
|
||||
"mode": "Equality",
|
||||
"setpointA": 1.0,
|
||||
"priority": "Low"
|
||||
"priority": "Medium"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -698,7 +698,7 @@
|
||||
"label": "Tank 103 Temp High",
|
||||
"mode": "Equality",
|
||||
"setpointA": 1.0,
|
||||
"priority": "Low"
|
||||
"priority": "Medium"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -714,7 +714,7 @@
|
||||
"label": "Transfer Pump Fault",
|
||||
"mode": "Equality",
|
||||
"setpointA": 1.0,
|
||||
"priority": "High"
|
||||
"priority": "Medium"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user