Skip to content

Add Activate link beside the Unactivated badge in the product header#178

Open
d4mation wants to merge 9 commits into
mainfrom
cons-628-add-activate-link-beside-the-unactivated-badge-in-the
Open

Add Activate link beside the Unactivated badge in the product header#178
d4mation wants to merge 9 commits into
mainfrom
cons-628-add-activate-link-beside-the-unactivated-badge-in-the

Conversation

@d4mation

@d4mation d4mation commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

🎫 https://linear.app/nexcess/issue/CONS-628/add-activate-link-beside-the-unactivated-badge-in-the-product-header
📹 https://www.loom.com/share/3538f5584bdc4ac39cd199378dbfea9e
📹 https://www.loom.com/share/fde8d573f033496190e539404c677f2e

Adds an "Activate" button next to the amber "Unactivated" badge in the sticky product header so owned-but-unactivated products expose the activation CTA without expanding a tier row. When a unified key covers more than one owned-but-unactivated tier for a product, the button becomes a dropdown listing each tier (highest first) so the user picks which to activate; single-tier products keep the plain link.

Figma: https://www.figma.com/design/Sjw9LaLeUU1up5qnMO9jqf/Admin?node-id=162-65 (node 162:3940)

d4mation and others added 2 commits July 14, 2026 13:36
Owned-but-unactivated products now surface an Activate CTA next to the
header badge, mirroring the per-tier Activate button so the action is
reachable without expanding a tier row.

Refs CONS-628
@linear

linear Bot commented Jul 14, 2026

Copy link
Copy Markdown

CONS-628

@d4mation d4mation marked this pull request as draft July 14, 2026 17:47
d4mation and others added 3 commits July 14, 2026 17:06
When a unified key owns multiple unactivated tiers for one product, the
header Activate control becomes a dropdown listing each owned tier
(highest first) so the user can choose which to activate, instead of
silently targeting an arbitrary tier. Single-tier products keep the plain
Activate link, and the chevron flips while the menu is open.

- getUnactivatedLicenseProducts selector (plural, reuses the same predicate)
- DropdownMenu UI primitive (radix, no-Portal like select.tsx)
- Button forwards its ref so radix can anchor the menu to the trigger
- Multi-tier and mixed-tier licensing fixtures

Refs CONS-628
The Feature Manager shell used position:absolute with a fixed
h-[calc(100vh-32px)], leaving an empty gray gap below the content when
the WP admin menu was taller than the app. Dropping the fixed height lets
the shell flow and the page scroll naturally.
@d4mation d4mation marked this pull request as ready for review July 14, 2026 21:09
pauloiankoski
pauloiankoski previously approved these changes Jul 14, 2026
estevao90
estevao90 previously approved these changes Jul 15, 2026
@d4mation d4mation dismissed stale reviews from estevao90 and pauloiankoski via 910e99b July 15, 2026 13:51
@d4mation

Copy link
Copy Markdown
Collaborator Author

@pauloiankoski @estevao90 Sorry, I ended up reverting that commit which removed a small gap at the bottom of the page. The drawbacks to that change weren't worth it and I think it would be better to investigate it separately anyway.

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.

3 participants