corvix.web.app¶
Litestar app serving Corvix dashboard data and UI.
Attributes¶
Functions¶
|
|
|
Serve the dashboard single-page UI. |
|
Serve the dashboard SPA for bookmarkable dashboard URLs. |
|
Health endpoint for container checks. |
|
Return available theme presets. |
|
List configured dashboard names. |
|
Return the selected dashboard data from cache. |
|
Dismiss a notification thread (removes it from the GitHub inbox). |
Backward-compatible dismiss endpoint for default account. |
|
|
Mark a notification thread as read in GitHub and local storage. |
Backward-compatible mark-read endpoint for default account. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Run app with uvicorn. |
Module Contents¶
- corvix.web.app.dashboard_index(dashboard_name: str) litestar.Response[str][source][source]¶
Serve the dashboard SPA for bookmarkable dashboard URLs.
- corvix.web.app.snapshot(dashboard: str | None = None) dict[str, object][source][source]¶
Return the selected dashboard data from cache.
- corvix.web.app.dismiss_notification(account_id: str, thread_id: str) litestar.Response[None][source][source]¶
Dismiss a notification thread (removes it from the GitHub inbox).
Calls DELETE /notifications/threads/{id} on GitHub, then marks the record as dismissed in local storage. Returns 204 No Content on success.
- corvix.web.app.dismiss_notification_default_account(thread_id: str) litestar.Response[None][source][source]¶
Backward-compatible dismiss endpoint for default account.
- corvix.web.app.mark_notification_read(account_id: str, thread_id: str) litestar.Response[None][source][source]¶
Mark a notification thread as read in GitHub and local storage.
- corvix.web.app.mark_notification_read_default_account(thread_id: str) litestar.Response[None][source][source]¶
Backward-compatible mark-read endpoint for default account.
- corvix.web.app._dismiss_notification_impl(account_id: str, thread_id: str) litestar.Response[None][source][source]¶
- corvix.web.app._mark_notification_read_impl(account_id: str, thread_id: str) litestar.Response[None][source][source]¶
- corvix.web.app._require_account(config: corvix.config.AppConfig, account_id: str) corvix.config.GitHubAccountConfig[source][source]¶
- corvix.web.app._default_account_id(config: corvix.config.AppConfig) str[source][source]¶
- corvix.web.app._load_runtime_config() corvix.config.AppConfig[source][source]¶
- corvix.web.app._select_dashboard(dashboards: list[corvix.config.DashboardSpec], selected_name: str | None) corvix.config.DashboardSpec[source][source]¶