Skip to content

[UI-5] Create DashboardPanel class (WebviewPanel) #55

@zestones

Description

@zestones

Context

Part of UI-5 – Dashboard — Overview + Sessions — see vscode-ui-implementation-plan.md § UI-5.

What

Create src/webview/dashboard/panel.js with a singleton pattern:

  • DashboardPanel.createOrShow(context) — creates a WebviewPanel in the editor area or focuses the existing one.
  • retainContextWhenHidden: true — preserves JS state across tab switches.
  • Column: vscode.ViewColumn.One (or beside, per plan).
  • HTML shell mirrors the prototype topbar + tab layout (index.html L2100–L2160).

Acceptance criteria

  • Only one DashboardPanel exists at a time.
  • Closing and reopening restores the last active view.
  • Panel title updates to OctoClock Dashboard.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestuiVS Code extension UI/UX implementationvscodeVS Code extension specific

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions