Skip to content

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

Merged
d4mation merged 11 commits into
release/1.5.1from
cons-628-add-activate-link-beside-the-unactivated-badge-in-the
Jul 21, 2026
Merged

Add Activate link beside the Unactivated badge in the product header#178
d4mation merged 11 commits into
release/1.5.1from
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.

estevao90
estevao90 previously approved these changes Jul 15, 2026
pauloiankoski
pauloiankoski previously approved these changes Jul 15, 2026
@d4mation
d4mation changed the base branch from main to release/1.5.1 July 21, 2026 15:52
@d4mation
d4mation dismissed stale reviews from pauloiankoski and estevao90 July 21, 2026 15:52

The base branch was changed.

…he-unactivated-badge-in-the

# Conflicts:
#	build-dev/index.asset.php
#	build-dev/index.css.map
#	build-dev/index.js
#	build-dev/index.js.map
#	build/index.asset.php
#	build/index.js
#	resources/js/components/organisms/ProductSection.tsx
@d4mation

Copy link
Copy Markdown
Collaborator Author

Changed the base to a release bucket. It is based on main, so I'm going to merge this as-is.

@d4mation
d4mation merged commit e5d5d2e into release/1.5.1 Jul 21, 2026
@d4mation
d4mation deleted the cons-628-add-activate-link-beside-the-unactivated-badge-in-the branch July 21, 2026 16:01
@d4mation d4mation mentioned this pull request Jul 21, 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.

3 participants