Go to file
Boban Blaskovic da90b39085 Fix: chart.js race, burger desktop visibility, modal glass-themed
User-reported issues + browser-verified:

1. **Chart.js race condition** — inline @push('scripts') ran before
   the @vite type=module script that imports Chart. Wrapped Chart init
   in a poll loop that retries every 30ms until window.Chart resolves.
   Re-fires on livewire:navigated for SPA navigation.

2. **Hamburger always visible on desktop** — .clu-icon-btn defined
   display:grid AFTER .clu-burger {display:none}. Chained selector
   '.clu-burger.clu-icon-btn' (specificity 0,2,0) now wins both at
   default and inside the <920px media query.

3. **Modal in CluPilot glass style** —
   - app/Livewire/Modals/ConfirmDelete.php (class extends ModalComponent)
     with title/message/confirmLabel/confirmEvent/payload props,
     confirm() dispatches the named event + closes the modal.
   - resources/views/livewire/modals/confirm-delete.blade.php
     renders clu-modal-card with icon + title/message head + foot
     containing cancel (clu-ghost-btn) + delete (clu-btn-primary
     clu-btn-danger with red gradient).
   - CSS overrides for the wire-elements default Tailwind v2 markup:
     bg-gray-500 backdrop dimmer, transparent modal-container, z-index
     bumped to 100 so it sits above sticky topbar + sidebar.
   - @source hints in app.css so Tailwind v4 scans
     vendor/wire-elements/modal blade templates and generates the
     sm:inline-block / sm:h-screen utilities the modal needs to center.
   - Demo: Settings → Danger Zone → 'Workspace löschen' opens modal.

4. **AppServiceProvider Vite::usePreloadTagAttributes(false)** kept.

5. Browser console clean across dashboard / sites / sites/{id} /
   settings + open modal (verified via Chrome MCP).
2026-05-31 23:33:07 +02:00
app Fix: chart.js race, burger desktop visibility, modal glass-themed 2026-05-31 23:33:07 +02:00
docker Skip composer scripts during build; defer package:discover to entrypoint 2026-05-31 18:05:05 +02:00
templates Foundation + Login Glass page from template 2026-05-31 22:18:51 +02:00
.dockerignore Bake app into multi-stage image; drop bind mounts for Portainer remote endpoint 2026-05-31 17:44:35 +02:00
.gitignore nginx: extra_hosts host-gateway for vite HMR upstream; gitignore root .env 2026-05-31 21:01:28 +02:00
Dockerfile Skip composer scripts during build; defer package:discover to entrypoint 2026-05-31 18:05:05 +02:00
docker-compose.portainer.yml Add image-only compose for Portainer Repository deploys (no buildkit) 2026-05-31 21:40:46 +02:00
docker-compose.yml Dev: bind-mount ./app + vite dev mode + drop asset preload tags 2026-05-31 22:58:45 +02:00
stack.env.example Version-pin images: APP_VERSION for own builds, MARIADB/REDIS for services 2026-05-31 18:17:09 +02:00