From 7a257b4fbf63f4004f53924286123ade3169866f Mon Sep 17 00:00:00 2001 From: Simon Hamp Date: Fri, 3 Jul 2026 13:53:36 +0100 Subject: [PATCH] Rename paid plugin badge to Premium and revamp install instructions 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) --- .../views/components/plugin-card.blade.php | 2 +- .../views/components/plugin-command.blade.php | 17 ++ resources/views/plugin-show.blade.php | 161 +++++++++++------- tests/Feature/PluginDirectoryTest.php | 9 + .../PluginShowInstallCredentialsTest.php | 34 ++++ tests/Feature/PluginShowPaidGuestTest.php | 2 +- 6 files changed, 158 insertions(+), 67 deletions(-) create mode 100644 resources/views/components/plugin-command.blade.php diff --git a/resources/views/components/plugin-card.blade.php b/resources/views/components/plugin-card.blade.php index d811d66e..d68401e4 100644 --- a/resources/views/components/plugin-card.blade.php +++ b/resources/views/components/plugin-card.blade.php @@ -26,7 +26,7 @@ class="size-12 shrink-0 rounded-xl object-cover" @elseif ($plugin->isPaid()) - Paid + Premium @else diff --git a/resources/views/components/plugin-command.blade.php b/resources/views/components/plugin-command.blade.php new file mode 100644 index 00000000..884c1f1e --- /dev/null +++ b/resources/views/components/plugin-command.blade.php @@ -0,0 +1,17 @@ +@props(['command']) + +
+
+ {{ $slot->isEmpty() ? $command : $slot }} +
+ +
diff --git a/resources/views/plugin-show.blade.php b/resources/views/plugin-show.blade.php index 35d3633c..17b12778 100644 --- a/resources/views/plugin-show.blade.php +++ b/resources/views/plugin-show.blade.php @@ -114,77 +114,108 @@ class="text-2xl font-bold sm:text-3xl" @endif @if ($plugin->isPaid()) -