Rename paid plugin badge to Premium and revamp install instructions#413
Merged
Conversation
Change the marketplace plugin card badge from "Paid" to "Premium" (display string only). On the plugin show page, restructure the premium install box into a collapsible "Installation Instructions" section (collapsed by default) containing a nested "Configure Composer" collapsible and a single install command block (vendor:publish, composer require, native:plugin:register), linking to the Using Plugins guide. Extract a reusable x-plugin-command component for the copyable command boxes. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
PluginType::Paidenum, styling, and all other logic are untouched).composer configcommands (masked display for logged-in users, placeholders for guests; the copy button always copies the real values);php artisan vendor:publish --tag=nativephp-plugins-provider,composer require <package>,php artisan native:plugin:register <package>;x-plugin-commandBlade component for the copyable command boxes (previously the markup was duplicated several times). It uses@js()for the clipboard value, which is more robust than the prior manual string interpolation.Why
"Premium" reads better than "Paid" for the marketplace, and the install instructions were growing repetitive and cluttered. Collapsing them keeps the plugin page focused on the README while still giving buyers a clear, copy-paste install path.
Notes
x-show/x-collapse), so all commands/credentials remain in the server-rendered HTML — SEO and feature-test assertions are unaffected.e()before the unescaped{!! !!}render, keeping it XSS-safe.Tests
PluginDirectoryTest— paid plugin card shows the "Premium" badge.PluginShowInstallCredentialsTest— install commands present, credentials masked, copy command carries real values, Configure Composer collapsible renders, links to the Using Plugins guide.PluginShowPaidGuestTest— updated to the new "Installation Instructions" title.All targeted tests pass;
vendor/bin/pintis clean.🤖 Generated with Claude Code