Skip to content

[docs] Document browser-stored dashboard tags, order and metric pins - #2074

Merged
Sébastien Ros (sebastienros) merged 6 commits into
release/17.0from
docs/pr-21840-42173829757-1-ebdd45ff98c1b360
Nov 13, 2026
Merged

Sébastien Ros (sebastienros) merged 6 commits into
release/17.0from
docs/pr-21840-42173829757-1-ebdd45ff98c1b360

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Documents changes from microsoft/aspire#21840

Author: @davidfowl-unknown

Targeting release/17.0, the latest release branch on microsoft/aspire.dev. The source PR milestone 17.1 has no matching branch there (latest_release_fallback).

Why: The source PR moves resource tags, resource and group order, and pinned metrics from the SQLite settings database to browser local storage. The dashboard docs didn't describe where these settings live.

Changes (updated page):

  • src/frontend/src/content/docs/dashboard/data-persistence.mdx: added a "Browser-stored settings" section covering the storage keys, per-browser and per-origin scope, unprotected storage, multi-tab merging, and the _Unreadable backup.

Triggered signals: dashboard_user_facing_page_changed and new_public_type.

Generated by PR Documentation Check for #21840 · copilot · auto · 27.2 AIC · ⌖ 1.16 AIC · ⊞ 7.4K · ◷

@aspire-repo-bot

Copy link
Copy Markdown
Contributor Author

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #2074. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #2074 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The documentation mischaracterizes AppHost-declared tags and display orders as browser preferences and overstates backup recovery guarantees without documenting read-failure and existing-backup limitations.

2 open issues
What changed in this PR

This PR updates the dashboard persistence guide to describe browser-local settings following microsoft/aspire#21840.

Changes:

  • Adds storage keys for resource tags, resource and group order, and pinned metrics.
  • Explains browser and origin boundaries, unprotected storage, multi-tab merging, and unreadable-value backups.
File Description
src/​frontend/​src/​content/​docs/​dashboard/​data-persistence.mdx Adds a “Browser-stored settings” section alongside the existing disk-persistence guidance.

Review effort: Balanced


## Browser-stored settings

Resource tags, resource and group order, and pinned metrics aren't stored in the data directory. The dashboard saves them in the browser's local storage, like its other preferences, under keys scoped to the application name:
- `Aspire_Resources_Order_<app>`
- `Aspire_Metrics_Pins_<app>`

Because these settings live in the browser, they aren't shared between browsers or users, and they're tied to the browser origin, including the port. If the dashboard is served on a different port, its tags, order, and pins don't carry over. Settings are stored unprotected, so don't put secrets in resource tags. If several tabs are open, each tab merges its changes with the saved value rather than overwriting changes from other tabs. If a stored value can't be read, the dashboard copies it to a `<key>_Unreadable` entry before replacing it.
The unknown-arguments example ran 'aspire destroy --force' in a bash block,
which the pipeline command options unit test flags as an undocumented option.
Describe the invalid option in prose and keep the error output.
@sebastienros
Sébastien Ros (sebastienros) merged commit e768b17 into release/17.0 Nov 13, 2026
16 checks passed
@sebastienros
Sébastien Ros (sebastienros) deleted the docs/pr-21840-42173829757-1-ebdd45ff98c1b360 branch November 13, 2026 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-from-code Copilot initiated issue from dotnet/aspire repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants