Skip to content

feat: step 2 Show project Status tab to editors in Cloud and Developer #9358

Open
royendo wants to merge 3 commits intomainfrom
royendo/show-status-tab-to-editors
Open

feat: step 2 Show project Status tab to editors in Cloud and Developer #9358
royendo wants to merge 3 commits intomainfrom
royendo/show-status-tab-to-editors

Conversation

@royendo
Copy link
Copy Markdown
Contributor

@royendo royendo commented May 1, 2026

requires: #9359

Gate the project Status tab on readProdStatus instead of manageProject so editors can view deployment status.

  • read_prod_status is already true for admin and editor roles and false for viewer (per admin/database/postgres/migrations/0003.sql), matching the access we want.
  • Sub-pages under /-/status (overview, branches, resources, tables, logs) are already permitted for any user who reaches the section.
  • Settings tab is unchanged; still gated on manageProject.

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

@royendo royendo requested review from a team as code owners May 1, 2026 15:12
@royendo royendo changed the title Show project Status tab to editors feat: Show project Status tab to editors in Cloud and Developer May 1, 2026
@royendo royendo changed the title feat: Show project Status tab to editors in Cloud and Developer feat: step 2 Show project Status tab to editors in Cloud and Developer May 1, 2026
@royendo royendo force-pushed the royendo/show-status-tab-to-editors branch from 8c74ffd to 87133eb Compare May 1, 2026 19:30
royendo and others added 3 commits May 1, 2026 15:41
Gate the Status tab on `readProdStatus` instead of `manageProject` so
editors (not just admins) can view deployment status. The
`read_prod_status` permission is already true for admin and editor
roles and false for viewers, matching the desired access.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Map `read_prod_status` / `read_dev_status` to `runtime.ReadInstance` so
non-managers (editors) can call `GetInstance({ sensitive: true })`.
Without this, the Status page's Tables sub-page hangs forever for
editors because it can't resolve the OLAP connector name.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
`status/+layout.ts` (added in #9311) gates direct-URL access on
`manageProject`, which would block editors who can now see the Status
tab. Loosen the gate to `readProdStatus` to match the nav.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@royendo royendo force-pushed the royendo/show-status-tab-to-editors branch from 445d570 to 5ceaa70 Compare May 1, 2026 19:46
}
if readDeplStatus {
// Status visibility: lets non-managers (e.g. editors) view the project Status page.
instancePermissions = append(instancePermissions, runtime.ReadInstance)
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.

This is not quite sufficient; it needs some extra checks, and also needs to update some permission checks on the runtime side. Implemented the correct checks here: #9372

@begelundmuller
Copy link
Copy Markdown
Contributor

This is not quite sufficient; it needs some extra checks, and also needs to update some permission checks on the runtime side. Implemented the correct checks here: #9372

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