ENG-9279: Add status to reflex.dev footer#6351
Conversation
Greptile SummaryThis PR adds a live service-status badge to the reflex.dev footer (both the docs page template and the shared footer component). A new Confidence Score: 5/5Safe to merge — all previous P1 concerns are resolved and the two remaining findings are minor P2 style/consistency notes. All blocking issues from prior review rounds are addressed. The only open items are a timeout inconsistency between the outer and inner HTTP clients (P2) and an unusual placement of a global declaration (P2 style). Neither affects correctness or production reliability. No files require special attention. Important Files Changed
Sequence DiagramsequenceDiagram
participant App as reflex_docs App
participant Task as monitor_checkly_status (lifespan)
participant Checkly as Checkly API
participant State as StatusState.status (rx.var)
participant Client as Browser Client
App->>Task: register_lifespan_task()
loop Every 60 seconds
Task->>Checkly: GET /check-groups/{id}/checks
Checkly-->>Task: list of check IDs
par For each check ID
Task->>Checkly: GET /check-statuses/{id}
Checkly-->>Task: hasFailures / isDegraded
end
Task->>Task: Update CURRENT_STATUS global
end
loop Every 60 seconds (client poll)
Client->>State: request StatusState.status
State->>State: read CURRENT_STATUS global
State-->>Client: Success | Warning | Critical
Client->>Client: Render server_status badge in footer
end
Reviews (2): Last reviewed commit: "remove this" | Re-trigger Greptile |
No description provided.