Skip to content

fix(frontend): allow administrators to edit shared dashboards - #149

Merged
VibeSWE merged 2 commits into
mainfrom
fix/dashboard-admin-edit
Nov 11, 2026
Merged

VibeSWE merged 2 commits into
mainfrom
fix/dashboard-admin-edit

Conversation

@VibeSWE

@VibeSWE VibeSWE commented Nov 11, 2026 •

Copy link
Copy Markdown

Description

Administrators could delete another user's dashboard but could not edit its tiles, rename it, or add SQL charts to it. The frontend checked ownership alone even though the backend supports administrator edits.

Allow dashboard owners and administrators to use these editing flows consistently, including the fresh-document permission check before adding a SQL chart. Wait for role lookup before showing a read-only notice, while preserving owner editing when role lookup fails. Favourites and the Mine filter retain their ownership rules.

This PR is based on current main, which already authorizes administrator writes and preserves the original owner and storage path. No backend changes or ownership transfers are needed.

Validation

  • Production build and Storybook build passed.
  • Unit suite: 2,437 passed, 14 skipped.
  • Dashboard/SQL E2E: 80/82 passed initially; the two Chromium ERR_NETWORK_CHANGED startup failures passed on a focused rerun (4/4 including related admin cases).
  • Layout/sections E2E: 9 passed.
  • Production dashboard editing Storybook tests: 5 passed.
  • TypeScript, formatting for changed files, and git diff --check passed.

Regressions cover direct, superadmin and group admin roles; Percent fill edit/save/reload; list rename; repaired tile IDs; delayed/failed role lookups; SQL chart append; and unchanged owner/tenant fields. Non-admin non-owners remain read-only.

Review

Opus 5.5 approved the patch. Sol 6.1 agreed with the implementation and requested one read-only fixture correction; that correction is included and all nine tests in its file pass.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@VibeSWE
VibeSWE merged commit cc1670a into main Nov 11, 2026
11 of 14 checks passed
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.

1 participant