nimuli/app/Livewire/Modals
boban fa9985cc33 feat: modal infrastructure + 11 modals (links, team, settings, workspace)
wire-elements/modal v3 integration:
- Replace custom Alpine modal-container with <livewire:livewire-ui-modal />
- Customize vendor modal view with design tokens (bg-s1, dark overlay, smooth transitions)
- All modals extend ModalComponent, use $this->closeModal()

Modals built (PHP + Blade view + tests):
- ConfirmAction — reusable danger confirm with custom event dispatch
- CreateLink, EditLink, DeleteLink — full CRUD with workspace isolation
- InviteMember, EditMemberRole, RemoveMember — team management
- CreateApiToken, RevokeApiToken — Sanctum token lifecycle
- CreateWebhook, DeleteWebhook — webhook CRUD
- CreateWorkspace (uses CreateWorkspaceAction), DeleteWorkspace (confirmation input)

Fixes:
- Remove SoftDeletes from Webhook model (table has no deleted_at column)
- Auto-generate webhook secret when user leaves field empty
- Use correct role enum: owner/admin/editor/viewer (not member)
- Protected Livewire model properties replaced with re-query pattern
- Sidebar "New Workspace" button now dispatches openModal

Tests: 105/105 passing, 211 assertions

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-16 12:41:14 +02:00
..
ConfirmAction.php feat: modal infrastructure + 11 modals (links, team, settings, workspace) 2026-05-16 12:41:14 +02:00
CreateApiToken.php feat: modal infrastructure + 11 modals (links, team, settings, workspace) 2026-05-16 12:41:14 +02:00
CreateLink.php feat: modal infrastructure + 11 modals (links, team, settings, workspace) 2026-05-16 12:41:14 +02:00
CreateWebhook.php feat: modal infrastructure + 11 modals (links, team, settings, workspace) 2026-05-16 12:41:14 +02:00
CreateWorkspace.php feat: modal infrastructure + 11 modals (links, team, settings, workspace) 2026-05-16 12:41:14 +02:00
DeleteLink.php feat: modal infrastructure + 11 modals (links, team, settings, workspace) 2026-05-16 12:41:14 +02:00
DeleteWebhook.php feat: modal infrastructure + 11 modals (links, team, settings, workspace) 2026-05-16 12:41:14 +02:00
DeleteWorkspace.php feat: modal infrastructure + 11 modals (links, team, settings, workspace) 2026-05-16 12:41:14 +02:00
EditLink.php feat: modal infrastructure + 11 modals (links, team, settings, workspace) 2026-05-16 12:41:14 +02:00
EditMemberRole.php feat: modal infrastructure + 11 modals (links, team, settings, workspace) 2026-05-16 12:41:14 +02:00
InviteMember.php feat: modal infrastructure + 11 modals (links, team, settings, workspace) 2026-05-16 12:41:14 +02:00
RemoveMember.php feat: modal infrastructure + 11 modals (links, team, settings, workspace) 2026-05-16 12:41:14 +02:00
RevokeApiToken.php feat: modal infrastructure + 11 modals (links, team, settings, workspace) 2026-05-16 12:41:14 +02:00