Filament moderne (groupes nav, 4 charts, filtres/badges) + Filament Shield (rôles/permissions) + noms exos localisés dans routines
Build & Deploy / build (push) Successful in 19s

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-19 05:09:29 +02:00
co-authored by Claude Opus 4.8
parent 3ec14f219b
commit 52fab9fbe5
47 changed files with 1644 additions and 292 deletions
@@ -1,35 +0,0 @@
<?php
namespace App\Filament\Resources\Streaks\Schemas;
use Filament\Forms\Components\DatePicker;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Schema;
class StreakForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
Select::make('user_id')
->relationship('user', 'name')
->required(),
TextInput::make('current_count')
->required()
->numeric()
->default(0),
TextInput::make('longest_count')
->required()
->numeric()
->default(0),
DatePicker::make('last_active_date'),
TextInput::make('freezes_available')
->required()
->numeric()
->default(0),
DatePicker::make('freeze_last_granted_on'),
]);
}
}
@@ -0,0 +1,44 @@
<?php
namespace App\Filament\Resources\Streaks\Schemas;
use Filament\Infolists\Components\TextEntry;
use Filament\Schemas\Schema;
/**
* Fiche de consultation d'un streak (modal "Voir") : calculé par StreakService,
* jamais créé ni modifié à la main depuis le back-office.
*/
class StreakInfolist
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
TextEntry::make('user.name')
->label('Utilisateur'),
TextEntry::make('current_count')
->label('Streak courant')
->badge()
->color('warning'),
TextEntry::make('longest_count')
->label('Record')
->numeric(),
TextEntry::make('freezes_available')
->label('Freezes disponibles')
->numeric(),
TextEntry::make('last_active_date')
->label('Dernière activité')
->date()
->placeholder('—'),
TextEntry::make('freeze_last_granted_on')
->label('Dernier freeze accordé')
->date()
->placeholder('—'),
TextEntry::make('last_reminded_on')
->label('Dernier rappel envoyé')
->date()
->placeholder('—'),
]);
}
}