Skip to content

feat: scope project view to dashboards while View As is active#9365

Open
royendo wants to merge 1 commit intomainfrom
royendo/scope-view-as-to-dashboards
Open

feat: scope project view to dashboards while View As is active#9365
royendo wants to merge 1 commit intomainfrom
royendo/scope-view-as-to-dashboards

Conversation

@royendo
Copy link
Copy Markdown
Contributor

@royendo royendo commented May 1, 2026

While impersonating a user via "View As", scope the project view to the dashboards experience only. Other project tabs (Home, AI, Reports, Alerts, Status, Settings) are hidden, and direct URL access to those routes redirects to /-/dashboards.

  • ProjectTabs.svelte collapses to a single Dashboards tab when viewAsUserStore is set.
  • The project layout adds a redirect effect that bounces non-dashboard project pages to /-/dashboards while View As is active.
  • Per-resource access policies on dashboards are already enforced via the impersonated user's runtime JWT — no change needed there.

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

Developed in collaboration with Claude Code

Hide non-dashboard tabs (Home, AI, Reports, Alerts, Status, Settings)
and redirect direct URL access to /-/dashboards while impersonating.
Access policies on dashboards are already enforced via the runtime JWT.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@royendo royendo requested a review from a team as a code owner May 1, 2026 21:34
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