Commit graph

7 commits

Author SHA1 Message Date
Tim Stollberg
837c91019f fix(auth): stop redirecting unauthenticated requests to nonexistent login route
No named 'login' route exists anywhere in this app (it's a pure API
backend for the Nuxt SPA). Authenticate::redirectTo() called
route('login') for any request without an explicit Accept: application/json
header, throwing RouteNotFoundException and surfacing as a 500 instead
of the expected 401.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-18 15:42:33 +07:00
Tim Stollberg
a56c22953c fix(backend): regenerate composer.lock after Filament removal
composer.json dropped filament/*, livewire, and openspout in 71730fe,
but composer.lock was never regenerated. The stale lock still pinned
those packages, and a --no-dev install (as used in the prod Docker
build) failed because filament/support requires ext-intl and
openspout requires ext-zip, neither of which are installed in the
prod PHP image.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-18 15:31:19 +07:00
Tim Stollberg
71730fef06 feat: remove Filament, add user account management
- Remove Filament /admin panel completely (AdminPanelProvider, UserResource, routes)
- Update composer.json to remove filament/filament dependency
- Add User model soft deletes with SoftDeletes trait + migration
- Strengthen UserPolicy::delete to prevent deleting last remaining admin
- Build out User module following pattern: CreateUserAction, UpdateUserAction, GetUsersAction,
  UserResource, UserController, Create/UpdateUserRequest, UserData DTO
- Add /api/users routes (index, store, update, destroy), all admin-gated via policy
- Create frontend Settings > Accounts page (settings/accounts.vue) for admin user management
- Add useUsers composable mirroring useClient pattern
- Add "Benutzer" link to settings dropdown in clients/index.vue
- All tests pass; User soft-delete and last-admin protection verified

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-07-13 13:05:40 +07:00
Tim Stollberg
b948d51b59 feat(user): User model with role, UserPolicy, Filament admin resource 2026-06-23 17:10:28 +07:00
Tim Stollberg
f31739ed43 feat(auth): Sanctum SPA setup with login/logout/user endpoints 2026-06-23 17:01:53 +07:00
Tim Stollberg
23d1baeb2e feat(db): add clients + history_entries migrations and factories 2026-06-23 16:55:04 +07:00
Tim Stollberg
1a831db2c5 chore(backend): install Laravel 10 with Filament, Pest, static analysis 2026-06-23 16:53:19 +07:00