feat: add read-only strategy health dashboard#191
Conversation
Co-Authored-By: Codex <noreply@openai.com>
🤖 Codex PR Review✅ Merge allowed: blocking findings were cleared by independent Codex arbitration ⚖️ Codex Review Arbitration✅ clear: The current finding is disproven by the PR’s own contract evidence. In ℹ️ Other Findings1. 🟡 [MEDIUM] Reliability in
|
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a961d4e983
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const status = cleanChoice(payload.data_status || "unavailable", STRATEGY_HEALTH_DATA_STATUSES, `${fieldName}.data_status`); | ||
| const strategies = status === "unavailable" | ||
| ? [] | ||
| : normalizeStrategyHealthStrategies(payload.strategies, fieldName); |
There was a problem hiding this comment.
Reject snapshots that omit data_status
If a publisher sends a snapshot that otherwise contains strategies but omits data_status (or sends it empty), this defaults the status to unavailable; the next branch then skips all strategies, writes a zero-count summary, and returns a successful sync. Since the new schema makes data_status required, malformed publishes should fail fast instead of silently replacing the dashboard with an empty unavailable snapshot.
Useful? React with 👍 / 👎.
Summary
strategy_health_dashboard.v1schema and dedicated Worker sync/read APIs/api/switchSafety
innerHTMLfor dynamic UI contentTest plan