openspec: laravel-admin change — Filament admin (users/tags/products/orders/dashboard) on shared Postgres

This commit is contained in:
2026-08-07 20:23:02 +10:00
parent 0ee211d156
commit 224545ac64
11 changed files with 195 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
## ADDED Requirements
### Requirement: Admin login
The system SHALL provide a login for admin users at `/admin/login`. Only users with `is_admin = true` SHALL be able to access the admin panel.
#### Scenario: Admin logs in
- **WHEN** an admin user logs in with valid credentials
- **THEN** they reach the admin dashboard
#### Scenario: Non-admin blocked
- **WHEN** an owner (not admin) tries to access the admin panel
- **THEN** access is denied (403 / redirect)
### Requirement: is_admin flag
The `users` table SHALL have an `is_admin` boolean, default false.
#### Scenario: Promote a user
- **WHEN** an existing user is marked admin
- **THEN** they can log into the admin panel