From 6746e44dba5c22fa4c052c314f84ea5233c4a13e Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Sat, 25 Oct 2025 10:53:25 +0200 Subject: [PATCH] fix: make system-wide warning reactive in Create view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The system-wide warning callout was not appearing when the checkbox was toggled because it was only evaluated on initial render. Changes: - Wrapped checkbox and warning in Alpine.js x-data scope - Used @entangle to bind showWarning to the is_system_wide Livewire property - Added x-show directive to reactively show/hide warning based on checkbox state - Added x-transition for smooth appearance/disappearance - Added style="display: none;" to prevent flash of content on load Now the warning appears immediately when the System Wide checkbox is checked and disappears when unchecked. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../livewire/source/github/create.blade.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/resources/views/livewire/source/github/create.blade.php b/resources/views/livewire/source/github/create.blade.php index 7681e0fd9..108c243e1 100644 --- a/resources/views/livewire/source/github/create.blade.php +++ b/resources/views/livewire/source/github/create.blade.php @@ -9,15 +9,17 @@ placeholder="If empty, your GitHub user will be used." id="organization" label="Organization (on GitHub)" /> @if (!isCloud()) -
- +
+
+ +
+
+ + System-wide GitHub Apps are shared across all teams on this Coolify instance. This means any team can use this GitHub App to deploy applications from your repositories. For better security and isolation, it's recommended to create team-specific GitHub Apps instead. + +
- @if ($is_system_wide) - - System-wide GitHub Apps are shared across all teams on this Coolify instance. This means any team can use this GitHub App to deploy applications from your repositories. For better security and isolation, it's recommended to create team-specific GitHub Apps instead. - - @endif @endif