Commit Graph

14 Commits

Author SHA1 Message Date
a6b1cfe498 Add module generator UI and discovery service documentation 2026-03-15 08:59:53 +02:00
dff2cd752c Add ViteHelper fallback for missing frontend assets 2026-03-15 07:47:59 +02:00
ed7055edaa feat: Add frontend menu management system with permission filtering 2026-03-13 14:21:43 +02:00
bcb7997ba0 Fix Filament 403 - add FilamentUser interface and canAccessPanel method 2026-03-12 10:22:49 +02:00
1d83a3c830 Add make:admin artisan command for creating admin users 2026-03-12 09:51:00 +02:00
e380721938 Add central Audit Trail viewer in Filament admin
Features:
- AuditResource with table listing all audit logs
- ViewAudit page showing detailed changes with diff table
- Filters: date range, user, model type, event type
- Search by user name
- Auto-refresh every 60 seconds
- Dark mode support for changes view
- Fixed audits migration with proper schema
- Added audit.view permission (admin only by default)

Files:
- src/app/Models/Audit.php
- src/app/Filament/Resources/AuditResource.php
- src/app/Filament/Resources/AuditResource/Pages/
- src/resources/views/filament/infolists/entries/audit-changes.blade.php
- Updated audits migration with full schema
2026-03-11 09:10:38 +02:00
f903914c2b Add auto-loading of module permissions in RolePermissionSeeder
RolePermissionSeeder now automatically scans app/Modules/*/Permissions.php
files and registers all permissions found. No manual registration required.

- Added loadModulePermissions() method to scan module directories
- Changed givePermissionTo() to syncPermissions() for idempotency
- Updated Modules README to document auto-loading
- Updated CLAUDE.md to reflect auto-loading behavior
2026-03-11 08:42:06 +02:00
2b153f1759 Upgrade make:module command with full ServiceProvider structure
Enhanced make:module command:
- Added --model flag for creating model + migration + Filament resource
- Added --api flag for including API routes
- Added --no-filament flag to skip Filament resource
- Creates full ServiceProvider structure with auto-registration
- Creates Config, Permissions, Routes, Views, Tests
- Module migrations stored in module folder
- Filament resources stored in module folder
- Auto-registers ServiceProvider in bootstrap/providers.php

Also added:
- ModuleAuditable trait for audit trail support
- Updated Modules README to document new command options
2026-03-11 08:12:54 +02:00
e4c7d09109 Add User Management features (Users, Roles, Permissions)
Added Filament Resources:
- UserResource: Enhanced with role assignment, password confirmation
- RoleResource: Manage roles with permission assignment
- PermissionResource: Manage individual permissions

Features:
- Users can be assigned multiple roles
- Roles can be assigned multiple permissions
- Color-coded badges for roles/permissions
- Filter users by role
- Prevent deletion of admin role
- User Management navigation group
2026-03-11 07:48:43 +02:00
cf6079d58c Redirect landing to login, add registration toggle
Changes:
- Landing page (/) now redirects to /login
- Added 'Enable User Registration' setting (off by default)
- Created CheckRegistrationEnabled middleware
- Registration routes blocked when setting is disabled
- Admin can toggle registration in Settings > System
2026-03-11 07:43:25 +02:00
4b2ff91ac4 Add global site settings view composer with database fallback
Implemented view composer in AppServiceProvider to share site settings across all views:
- Loads site name, logo, colors (primary/secondary/accent), and description from Setting model
- Falls back to config/defaults if database unavailable (prevents errors during migrations)
- Made siteSettings available to all Blade templates

Updated layouts and components to use dynamic settings:
- app.blade.php and guest.blade.php now use siteSettings for
2026-03-11 07:37:27 +02:00
ae410ca4da Add complete feature suite: Permissions, Audit Trail, API Auth, Error Tracking, Module System, and Site Settings
- Install spatie/laravel-permission v6.24 with 3 roles (admin, editor, viewer) and 5 base permissions
- Install owen-it/laravel-auditing v14.0 for tracking model changes
- Install laravel/sanctum v4.3 for API token authentication
- Install spatie/laravel-ignition v2.11 and spatie/flare-client-php v1.10 for enhanced error tracking
- Add Module System with make:module artisan command for scaffolding features
- Create Site Settings page in Filament admin for logo, colors, and configuration
- Add comprehensive debugging documentation (DEBUGGING.md, AI_CONTEXT.md updates)
- Create FEATURES.md with complete feature reference
- Update User model with HasRoles and HasApiTokens traits
- Configure Redis cache and OPcache for performance
- Add RolePermissionSeeder with pre-configured roles and permissions
- Update documentation with debugging-first workflow
- All features pre-installed and production-ready
2026-03-09 09:34:10 +02:00
c5260e652b Expand .gitignore for Laravel, update README with one-command setup, simplify env configs 2026-03-09 03:48:40 +02:00
17dbdad28b templave v1 2026-03-06 08:57:05 +02:00