ENG-9279: Add status to reflex.dev footer#6351
Conversation
Greptile SummaryThis PR adds a live service-status badge to both the reflex.dev site footer and the docs site footer, backed by a Checkly polling loop that updates a global
Confidence Score: 4/5Safe to merge after addressing the credentials guard and module-level component-instance sharing. Two P1 findings remain: unconfigured environments will silently fire failing HTTP requests every minute, and shared module-level component instances may cause Reflex rendering anomalies when the badge appears in multiple pages. Neither is data-loss or a security issue, but both should be fixed before shipping. backend/status.py (credentials guard) and components/server_status.py (module-level component instances). Important Files Changed
Sequence DiagramsequenceDiagram
participant App as Reflex App (lifespan)
participant Mon as monitor_checkly_status()
participant Checkly as Checkly API
participant State as StatusState (@rx.var interval=60s)
participant Client as Browser
App->>Mon: register_lifespan_task()
loop Every 60 seconds
Mon->>Checkly: GET /v1/check-groups/{id}/checks
Checkly-->>Mon: [check IDs]
par For each check_id
Mon->>Checkly: GET /v1/check-statuses/{check_id}
Checkly-->>Mon: {hasFailures, isDegraded}
end
Mon->>Mon: Update CURRENT_STATUS global
end
loop Every 60 seconds (client poll)
Client->>State: poll StatusState.status
State-->>Client: CURRENT_STATUS value
Client->>Client: Re-render server_status badge
end
Reviews (1): Last reviewed commit: "ENG-9279: Add status to reflex.dev foote..." | Re-trigger Greptile |
No description provided.