clupilot/app/resources/views/livewire
Boban Blaskovic a30d5a711a Toggles: visual fix (inline-block) + wire:click bindings via settings array
Bug 1 (visual): .clu-toggle is a <span> which is inline by default;
width:36px height:20px were being ignored so toggles rendered as zero-
width inline bars. Added display:inline-block + vertical-align:middle.

Bug 2 (no state): toggle-rows in vhost / ssl / access / plugins /
redirects / staging tabs were pure static markup with no wire:click.
Clicking did nothing.

Fix: generic $settings array on the Volt component (one key per toggle)
+ toggleSetting(key) action + isOn(key) helper. All toggle-rows now
emit wire:click=toggleSetting('namespace.key') and read the live state
via @if($this->isOn('namespace.key')) on @endif.

Per-plugin auto-update toggles read settings['plugin.<slug>.auto'] so
each row flips independently.

Tabs covered: vHost (server_tokens, http2_push), SSL (ocsp/auto_renew/
caa_check/ct_log), SSH-FTP access policy (password_auth/no_root/
fail2ban/ip_allowlist/ssh_2fa), Plugins (per-plugin auto + 5 policy
toggles), Redirects (keep_qs/case_insens), Staging (robots_block/
email_sandbox/payments_test).

Browser-verified: clicking Yoast SEO auto-update toggle flips from
blue ON to grey OFF instantly via Livewire. 0 console errors. 5/5
SiteDetailsTest still green.
2026-06-01 00:29:13 +02:00
..
layout Initial CluPilot stack setup 2026-05-27 23:00:14 +02:00
modals Fix: chart.js race, burger desktop visibility, modal glass-themed 2026-05-31 23:33:07 +02:00
pages Toggles: visual fix (inline-block) + wire:click bindings via settings array 2026-06-01 00:29:13 +02:00
profile Initial CluPilot stack setup 2026-05-27 23:00:14 +02:00
welcome Initial CluPilot stack setup 2026-05-27 23:00:14 +02:00
.gitkeep Initial CluPilot stack setup 2026-05-27 23:00:14 +02:00