feat(vscode): sidebar home dashboard with freshness and theme switcher#650
Merged
Conversation
…and consolidated trees The activity-bar sidebar previously opened onto a stack of plain tree sections, with the visualization panels reachable only from the command palette. It now leads with a Home webview that makes everything the extension can show discoverable in one click: - Hero card: repo name, current branch, hotspot-health score with trend delta and sparkline (falls back to the average score when hotspot scoring is gated on quiet repos). - Index freshness row comparing the indexed commit against the live checkout, with a one-click incremental update. The update command now returns its promise so the host can ack completion (update-done) and the view can stop its spinner even when the update fails. - Launcher cards for all seven dashboard panels with live micro-stats (open findings, ranked plans, decision count) served by a single aggregated homeSummary RPC that reuses the dashboards' cache entries. - Brand footer with a theme switcher: auto (follow editor), light, or dark, persisted host-side and pushed to every open Repowise webview. Sidebar de-noise: the five tree views collapse into two. A Findings composite nests Health, Hotspots, Ownership, and Dead Code as sections of one tree (badge counts failing health files only), Refactoring stays standalone, and the Decisions tree is retired in favor of the timeline panel. Both trees are contributed collapsed so Home is the face of the sidebar. Live-head resolution and short-sha matching move from the staleness feature into the shared git adapter so the home summary reuses them.
swati510
approved these changes
Jul 2, 2026
joptimus
pushed a commit
to joptimus/repowise
that referenced
this pull request
Jul 3, 2026
…and consolidated trees (repowise-dev#650) The activity-bar sidebar previously opened onto a stack of plain tree sections, with the visualization panels reachable only from the command palette. It now leads with a Home webview that makes everything the extension can show discoverable in one click: - Hero card: repo name, current branch, hotspot-health score with trend delta and sparkline (falls back to the average score when hotspot scoring is gated on quiet repos). - Index freshness row comparing the indexed commit against the live checkout, with a one-click incremental update. The update command now returns its promise so the host can ack completion (update-done) and the view can stop its spinner even when the update fails. - Launcher cards for all seven dashboard panels with live micro-stats (open findings, ranked plans, decision count) served by a single aggregated homeSummary RPC that reuses the dashboards' cache entries. - Brand footer with a theme switcher: auto (follow editor), light, or dark, persisted host-side and pushed to every open Repowise webview. Sidebar de-noise: the five tree views collapse into two. A Findings composite nests Health, Hotspots, Ownership, and Dead Code as sections of one tree (badge counts failing health files only), Refactoring stays standalone, and the Decisions tree is retired in favor of the timeline panel. Both trees are contributed collapsed so Home is the face of the sidebar. Live-head resolution and short-sha matching move from the staleness feature into the shared git adapter so the home summary reuses them.
Open
5 tasks
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.
What
The Repowise activity-bar sidebar now opens onto a Home dashboard instead of a stack of tree sections.
How
contributes.viewswebview (type: webview) resolved by the same manager that owns the editor-tab panels, sharing the HTML/CSP builder, the typed RPC dispatcher, the refresh epoch, and the theme bridge.homeSummary(), aggregates health overview and trend, refactoring plan count (medium-confidence query), decision count, and freshness behindPromise.allSettled, so a failing endpoint degrades one card instead of the view. Sub-fetches reuse the dashboards' cache keys.open-view(validated against the panel table),update-indexwith anupdate-doneack (the update command now returns its promise soexecuteCommandresolves on completion), andset-themebroadcast astheme-changed.Testing
tscclean for both the host and webview programs.