Skip to content

Add Azure Storage backend configuration panel to diagnostics#163

Merged
rajbos merged 7 commits intomainfrom
copilot/add-diagnostics-storage-panel
Feb 1, 2026
Merged

Add Azure Storage backend configuration panel to diagnostics#163
rajbos merged 7 commits intomainfrom
copilot/add-diagnostics-storage-panel

Conversation

Copy link
Contributor

Copilot AI commented Jan 30, 2026

Diagnostics view lacked visibility into Azure Storage backend configuration and sync status. Users had no way to see configuration state, last sync time, or storage statistics without navigating through settings.

Changes

Extension Core (src/extension.ts)

  • Added getBackendStorageInfo() to aggregate backend settings, sync state from global storage, and compute device count from unique workspace IDs
  • Extended diagnostics HTML generation to include backend storage info in initial data payload
  • Wired message handlers for configureBackend and openSettings commands

Diagnostics Webview (src/webview/diagnostics/main.ts)

  • Added "☁️ Azure Storage" tab with renderBackendStoragePanel()
  • Implemented three-state UI based on configuration status:
    • Disabled (gray ⚪): Setup guide with requirements
    • Partial (orange ⚠️): Warning that configuration is incomplete
    • Configured (green ✅): Full configuration details, sync stats, and management actions
  • Statistics cards show device count (from workspace IDs), local session count, cloud record count, and last sync timestamp
  • Configuration details table displays storage account, subscription, resource group, and table names

UI

Backend Disabled
Disabled state

Backend Partially Configured
Partial configuration

Backend Fully Configured
Fully configured

Notes

  • Cloud record count placeholder shows "—" until Azure Storage query implementation is added
  • Device count heuristic: unique workspace IDs extracted from session file paths
  • Configuration button falls back to opening settings if backend configuration command isn't registered
Original prompt

Add a button on the diagnostics to trigger the showing of the azure storage screen so it can be configured. Show the button with a color that indicate if the setting have been configured and show the timestamp of the latest sync, with the amount of records in the storage account for the configured users.

Also show the amount of devices and number of sessions per device.

So perhaps this should become a mini panel or table instead of just a button. Make a sensible proposal and add the changes to implement it.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
Copilot AI changed the title [WIP] Add diagnostics panel for Azure Storage configuration Add Azure Storage backend configuration panel to diagnostics Jan 30, 2026
@rajbos rajbos marked this pull request as ready for review January 31, 2026 20:19
@rajbos rajbos enabled auto-merge January 31, 2026 22:53
@rajbos rajbos merged commit cf0ce85 into main Feb 1, 2026
12 checks passed
@rajbos rajbos deleted the copilot/add-diagnostics-storage-panel branch February 1, 2026 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments