v0.5.2-beta: Add System Status endpoint and UI (operational checks) - #31
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
backend/app/core/system_status.pyimplementingbuild_system_status,get_database_statusandsafe_database_urlto mask secrets and derive DB type, and perform aSELECT 1when an engine is available.GET /api/system/statusinbackend/app/api/routes_system.pywhile keeping/api/system/infocompatible and extended/healthnon-breakingly to includeversionanddatabasestatus.getSystemStatus()infrontend/src/api.ts, new defensive types infrontend/src/types.ts, a new "System" navigation entry and System view infrontend/src/App.tsx/frontend/src/components/Layout.tsx, and a small System card on the Dashboard.README.md,RELEASE_NOTES.md,docs/operations/system-status.md, and version bumps to user-facingv0.5.2-betaand package/runtime0.5.2.backend/tests/test_api_smoke.py) withtest_system_status_endpointandtest_safe_database_urland code organized so routes remain readable.Testing
cd backend && pytest -q, which completed successfully (75 passed).cd frontend && npm run build, which completed successfully.safe_database_urlduring tests.Codex Task