Skip to content

Simplify customer license UI for expired licenses#393

Merged
simonhamp merged 1 commit into
mainfrom
hide-expired-license-banners
May 28, 2026
Merged

Simplify customer license UI for expired licenses#393
simonhamp merged 1 commit into
mainfrom
hide-expired-license-banners

Conversation

@simonhamp
Copy link
Copy Markdown
Member

@simonhamp simonhamp commented May 28, 2026

Summary

Cleans up the customer license dashboard by removing status/expiry "noise", particularly for expired licenses, and removes the sub-key creation button (functionality is kept in place).

Changes

  • Expired license banners removed — dropped the "License Expired" warning banner on the individual license screen and the "Keys cannot be created for expired licenses" notice in the sub-license manager. Suspended-license messaging is retained.
  • Hide sub-key limit when expired — the key count no longer shows the plan limit (e.g. x/9) once a license has expired. Added an isExpired() helper on License.
  • Removed Status column & Expires detail — from both the licenses index (main + assigned sub-licenses tables) and the individual license screen. The shared status-badge component is untouched as it's used elsewhere.
  • Removed the "Create Key" button — the create modal and openCreateModal/createSubLicense methods remain, so the flow still works; there's just no UI entry point.

Test plan

  • Updated CustomerLicenseManagementTest and CustomerSubLicenseManagementTest to reflect the removed UI; full license/sub-license suites pass.
  • Verify an expired license shows no expired banners and no key limit.
  • Verify a suspended license still shows its suspended messaging.
  • Verify the licenses index and detail screens no longer show Status/Expires.

🤖 Generated with Claude Code

Hide status/expiry noise from the customer license dashboard:
- Drop the "License Expired" banner and the "keys cannot be created for
  expired licenses" notice (suspended messaging is retained).
- Hide the sub-key limit (e.g. x/9) once a license is expired.
- Remove the Status column and Expires detail from the licenses index
  and individual license screens.
- Remove the "Create Key" button while leaving the creation flow intact.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@simonhamp simonhamp marked this pull request as ready for review May 28, 2026 05:56
@simonhamp simonhamp merged commit 4a631a3 into main May 28, 2026
2 checks passed
@simonhamp simonhamp deleted the hide-expired-license-banners branch May 28, 2026 05:56
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