Commit Graph

2 Commits

Author SHA1 Message Date
Vasyka f885c04f90 fix: rework labor tree/list toggle — use Livewire wire:click not Alpine
Previous approach wrapped {{ $this->table }} in x-show which caused
Livewire/Alpine conflicts and broken toggling. New approach:
- viewMode is a Livewire #[Url] property (persisted in URL as ?view=)
- wire:click="setViewMode('list/tree')" triggers a clean Livewire render
- Only one view is rendered at a time (@if, not x-show)
- Tree: Alpine manages per-category open/close state client-side via
  indexed array; Open/Close all buttons use setAll() helper
- Visual overhaul: tighter cards, chevron arrows, proper hover states

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-09-11 05:08:53 +00:00
Vasyka 0180f29023 feat: tree/list view toggle for labor catalog
ListLabors now has a toggle button (persistat în localStorage) care
comută între:
- Listă: tabelul Filament grupat pe categorii (existent)
- Arbore: accordion cu toate categoriile ca noduri colapsabile,
  fiecare cu tabelul manoperelor sale (Manoperă, Mod, Ore, Preț,
  Cost, link Editează); butoane Deschide tot / Închide tot

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-09-11 05:03:03 +00:00