Skip to content

Refine plugin page: collapsible details, condensed price card, masked credentials & Ultra banner#399

Merged
simonhamp merged 1 commit into
mainfrom
collapsible-plugin-details
Jun 16, 2026
Merged

Refine plugin page: collapsible details, condensed price card, masked credentials & Ultra banner#399
simonhamp merged 1 commit into
mainfrom
collapsible-plugin-details

Conversation

@simonhamp

Copy link
Copy Markdown
Member

What & why

A set of UI refinements to the public plugin page (resources/views/plugin-show.blade.php) to tidy up the sidebar and improve clarity.

Plugin Details — collapsible

  • The Plugin Details sidebar section is now collapsible and collapsed by default, using the existing Alpine x-collapse pattern. A chevron in the header rotates to indicate state.

Price card — condensed

  • Removed the redundant "Price" label.
  • When a discount applies, the strike-through regular price now sits inline, before the discounted price (matching the strike-through convention used elsewhere in the app).

"Included with Ultra" card

  • Moved directly under the Add to Cart card.
  • Always visible (no longer hidden behind @auth) on paid first-party (official) plugins, for guests and logged-in users alike.
  • For users with an active Ultra subscription, the copy adapts and the button links to their Ultra dashboard (/dashboard/ultra); everyone else gets the "Learn more" → pricing button.

Masked install credentials

  • The logged-in install command now masks the email and license key by default (e.g. d••••••@example.com and a bulleted key).
  • The copy button still copies the real underlying values to the clipboard.

Tests

Added feature tests:

  • PluginShowPriceCardTest — price label removed, strike-through-before-current ordering, collapsed-by-default details markup.
  • PluginShowUltraCardTest — card shows on paid first-party plugins, hidden on free/third-party, Ultra subscribers get the dashboard link.
  • PluginShowInstallCredentialsTest — credentials render masked while the copy command retains the real values.

All plugin-page tests pass; Pint clean.

Note: a few incidental, pre-existing working-tree changes are included (PHP patch version bump in the Boost guideline files, workspace name in package-lock.json).

🤖 Generated with Claude Code

…dentials, Ultra banner

- Make the Plugin Details sidebar section collapsible (collapsed by default)
- Condense the price card: drop the 'Price' label, show strike-through regular price inline before the discounted price
- Move the 'Included with Ultra' card directly under the Add to Cart card; always visible on paid first-party plugins and links Ultra subscribers to their dashboard
- Mask the install command email/license key, with the copy button still copying the real values

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@simonhamp simonhamp marked this pull request as ready for review June 16, 2026 23:24
@simonhamp simonhamp merged commit 8241747 into main Jun 16, 2026
1 of 2 checks passed
@simonhamp simonhamp deleted the collapsible-plugin-details branch June 16, 2026 23:27
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