Skip to content

Add license key rotation and hide licenses for users without any#333

Merged
simonhamp merged 1 commit intomainfrom
rotate-license-key
Apr 7, 2026
Merged

Add license key rotation and hide licenses for users without any#333
simonhamp merged 1 commit intomainfrom
rotate-license-key

Conversation

@simonhamp
Copy link
Copy Markdown
Member

Summary

  • Add a "Rotate Key" button on the license detail page (/dashboard/licenses/{key}) that creates a new Anystack license, updates the local record in place, and suspends the old Anystack license
  • Follows the same UI pattern as the existing plugin access key rotation (modal with confirmation + warnings)
  • Button is hidden for suspended/expired licenses
  • Hide the Licenses sidebar nav item and dashboard card for users who have no licenses (since licenses are no longer sold)

Test plan

  • RotateLicenseKeyTest — action creates new Anystack license, suspends old, updates local record, preserves attributes, handles API failure
  • CustomerLicenseManagementTest — Livewire rotation happy path, blocked for suspended/expired, rotate button visibility, dashboard card hidden when no licenses

🤖 Generated with Claude Code

…licenses

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@simonhamp simonhamp marked this pull request as ready for review April 7, 2026 14:39
@simonhamp simonhamp merged commit 5c637a0 into main Apr 7, 2026
2 checks passed
@simonhamp simonhamp deleted the rotate-license-key branch April 7, 2026 23:12
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