feat(patching): mark server patching as beta in the sidebar

This commit is contained in:
Andras Bacsai
2026-10-19 15:00:49 +02:00
parent ad6e929a93
commit f6a3071729
2 changed files with 11 additions and 4 deletions
@@ -1,6 +1,10 @@
<span {{ $attributes->merge(['class' => 'inline-flex items-center']) }}>
<span
class="px-2 py-0.5 text-xs font-medium leading-normal rounded-full bg-coollabs/10 text-coollabs border border-coollabs/30 dark:bg-warning/15 dark:text-warning dark:border-warning/30">
Beta
<span role="img" aria-label="Beta" data-tooltip="Beta"
class="inline-flex items-center justify-center p-0.5 rounded-full cursor-help text-coollabs dark:text-warning">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"
class="size-4" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round"
d="M9.75 3.104v5.714a2.25 2.25 0 0 1-.659 1.591L5 14.5M9.75 3.104c-.251.023-.501.05-.75.082m.75-.082a24.301 24.301 0 0 1 4.5 0m0 0v5.714c0 .597.237 1.17.659 1.591L19.8 15.3M14.25 3.104c.251.023.501.05.75.082M19.8 15.3l-1.57.393A9.065 9.065 0 0 1 12 15a9.065 9.065 0 0 0-6.23-.693L5 14.5m14.8.8 1.402 1.402c1.232 1.232.65 3.318-1.067 3.611A48.309 48.309 0 0 1 12 21c-2.773 0-5.491-.235-8.135-.687-1.718-.293-2.3-2.379-1.067-3.61L5 14.5" />
</svg>
</span>
</span>
@@ -187,7 +187,7 @@
'group' => 'Security',
'visible' => auth()->user()?->can('update', $server),
'children' => [
['label' => 'Server Patching', 'route' => 'server.security.patches', 'active' => $activeSubMenu === 'patches', 'icon' => 'bandage'],
['label' => 'Patching', 'route' => 'server.security.patches', 'active' => $activeSubMenu === 'patches', 'icon' => 'bandage', 'beta' => true],
['label' => 'Terminal Access', 'route' => 'server.security.terminal-access', 'active' => $activeSubMenu === 'terminal-access', 'icon' => 'browser-terminal', 'navigate' => false],
],
],
@@ -332,6 +332,9 @@
href="{{ route($child['route'], $serverRouteParameters) }}">
<x-reicon :name="$child['icon']" class="menu-item-icon" />
<span class="menu-item-label">{{ $child['label'] }}</span>
@if ($child['beta'] ?? false)
<x-beta-badge class="ml-auto shrink-0" />
@endif
</a>
@endforeach
</div>