Repository navigation
Conversation
The health report was a long notebook of text and tables. The Database Health action now opens a webview with status tiles, a short "What to do" list and one card per check. "Open as notebook" keeps the step-by-step report available. - HealthSQL.summary() returns typed numbers; unusedIndexes() also returns bytes - features/health: pure view model (thresholds, findings) and HTML renderer - providers/DatabaseHealthPanel: per-check queries, so one failure does not blank the page - Status uses a word and a symbol as well as colour Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018mXPvRzbydoRmsdiPdRqZH
|
The "IP Guardrail — No Premium Leakage" check is red here for the same reason it is red on Generated by Claude Code |
|
"Free VSIX builds without packages/pro" fails with the same root cause as the guardrail check. Generated by Claude Code |
What
The Database Health action used to open a long notebook of text and tables. It now opens a dashboard panel:
VACUUM,DROP INDEX CONCURRENTLY,CREATE INDEX,pg_cancel_backend). "How to read this" folds hold the guidance that used to be notebook text.How it is built
HealthSQL.summary()returns one row of typed numbers (the oldoverview()returns pre-formatted text).unusedIndexes()also returnsindex_bytes.src/features/health/healthModel.ts: pure view model. Thresholds and every sentence the dashboard shows live here and are unit tested.src/features/health/healthHtml.ts: pure HTML renderer. Nonce-based CSP, all database text escaped.src/providers/DatabaseHealthPanel.ts: runs each check separately, so a missing permission shows "Could not load" for that card and the rest still render. One panel per connection and database, Refresh re-runs the checks.Testing
npm run test:unit: 849 passing, including newHealthDashboard.test.ts(thresholds, findings, escaping, partial failure).Not verified here (needs VS Code): how it looks with real theme colours in light and high-contrast themes, and the Refresh, Copy SQL and Open as notebook buttons inside the webview.
Changelog
Added under Unreleased.
Generated by Claude Code