feat: add knowledge stats, discourse sync, and tools to dashboard#240
Conversation
- Add "discourse" to sync types so Discourse sync status appears - Add KnowledgeStats model with item counts to sync status response - Add available_tools_list to community public metrics - Update dashboard with knowledge base grid and tool badges Closes #239
Dashboard Preview
This preview will be updated automatically when you push new commits. |
- Add "discourse" to trigger_sync validation whitelist - Add else branch for available_tools_list (always present in response) - Wrap tool derivation in try/except matching config_health pattern - Simplify FAQ condition (remove redundant bool() wrapper) - Replace inline styles with CSS classes for dark mode support - Add dark mode rules for tool badges, section headings, config banners
PR Review SummaryReviewed by: code-reviewer, silent-failure-hunter, code-simplifier (run in parallel) Critical Issues (2 found) -- FIXED
Important Issues (2 found) -- FIXED
Suggestions (2 found) -- FIXED
Not addressed (out of scope, pre-existing)
Strengths
|
Summary
discourseto sync types so Discourse sync status appears on dashboardKnowledgeStatsmodel to/sync/statusresponse with item counts per category (GitHub, papers, docstrings, discourse, FAQ, mailing list)available_tools_listto community public metrics endpointTest plan
uv run pytest tests/test_api/test_sync.py -v-- 18/18 passeduv run pytest tests/test_api/test_community.py -v-- passeduv run ruff check-- cleancurl "https://api.osc.earth/osa-dev/sync/status?community_id=mne"showsdiscoursein syncs andknowledgecountscurl "https://api.osc.earth/osa-dev/mne/metrics/public"showsavailable_tools_listCloses #239