Skip to content

feat(webapp): gate auto-idling banner with PermissionGate#5832

Open
kaposke wants to merge 2 commits intomasterfrom
gui/NAN-5242/feat-auto-idling-permission-gate
Open

feat(webapp): gate auto-idling banner with PermissionGate#5832
kaposke wants to merge 2 commits intomasterfrom
gui/NAN-5242/feat-auto-idling-permission-gate

Conversation

@kaposke
Copy link
Copy Markdown
Contributor

@kaposke kaposke commented Apr 10, 2026

Wrap Restart/Extend buttons in the AutoIdlingBanner with PermissionGate using the canChangePlan permission (same as the backend POST /plans/trial/extension route). Unauthorized roles see the buttons disabled with a tooltip. Also updates Upgrade links to anchor to #plans.

NAN-5242

  • Log in as a role without canChangePlan permission and verify the Restart/Extend buttons are disabled with a tooltip
  • Log in as an admin and verify buttons work as before
  • Verify Upgrade links navigate to the billing page #plans anchor

Wrap Restart/Extend buttons with PermissionGate using canChangePlan
permission to disable them for unauthorized roles. Also update Upgrade
links to anchor directly to the #plans section.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@linear
Copy link
Copy Markdown

linear bot commented Apr 10, 2026

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