Skip to content

Commit 15691de

Browse files
committed
Filament 4
1 parent 867622f commit 15691de

83 files changed

Lines changed: 5014 additions & 3283 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app/Filament/Pages/Board.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
namespace App\Filament\Pages;
4+
use BackedEnum;
45

56
use App\Models\Project;
67
use Filament\Forms\Components\Section;
@@ -15,9 +16,9 @@ class Board extends Page implements HasForms
1516
{
1617
use InteractsWithForms;
1718

18-
protected static ?string $navigationIcon = 'heroicon-o-view-columns';
19+
protected static string | BackedEnum | null $navigationIcon = 'heroicon-o-view-columns';
1920

20-
protected static string $view = 'filament.pages.board';
21+
protected string $view = 'filament.pages.board';
2122

2223
protected static ?string $slug = 'board';
2324

app/Filament/Pages/Dashboard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Dashboard extends BasePage
1717
{
1818
protected static bool $shouldRegisterNavigation = false;
1919

20-
public function getColumns(): int | string | array
20+
public function getColumns(): int | array
2121
{
2222
return 6;
2323
}

app/Filament/Pages/JiraImport.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
namespace App\Filament\Pages;
4+
use BackedEnum;
45

56
use App\Helpers\JiraHelper;
67
use App\Jobs\ImportJiraTicketsJob;
@@ -23,9 +24,9 @@ class JiraImport extends Page implements HasForms
2324
{
2425
use InteractsWithForms, JiraHelper;
2526

26-
protected static ?string $navigationIcon = 'heroicon-o-cloud-arrow-down';
27+
protected static string | BackedEnum | null $navigationIcon = 'heroicon-o-cloud-arrow-down';
2728

28-
protected static string $view = 'filament.pages.jira-import';
29+
protected string $view = 'filament.pages.jira-import';
2930

3031
protected static ?string $slug = 'jira-import';
3132

app/Filament/Pages/Kanban.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
namespace App\Filament\Pages;
4+
use BackedEnum;
45

56
use App\Helpers\KanbanScrumHelper;
67
use App\Models\Project;
@@ -15,11 +16,11 @@ class Kanban extends Page implements HasForms
1516
{
1617
use InteractsWithForms, KanbanScrumHelper;
1718

18-
protected static ?string $navigationIcon = 'heroicon-o-view-columns';
19+
protected static string | BackedEnum | null $navigationIcon = 'heroicon-o-view-columns';
1920

2021
protected static ?string $slug = 'kanban/{project}';
2122

22-
protected static string $view = 'filament.pages.kanban';
23+
protected string $view = 'filament.pages.kanban';
2324

2425
protected static bool $shouldRegisterNavigation = false;
2526

app/Filament/Pages/ManageGeneralSettings.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
namespace App\Filament\Pages;
4+
use BackedEnum;
45

56
use App\Models\Role;
67
use App\Settings\GeneralSettings;
@@ -17,7 +18,7 @@
1718

1819
class ManageGeneralSettings extends SettingsPage
1920
{
20-
protected static ?string $navigationIcon = 'heroicon-o-cog-6-tooth';
21+
protected static string | BackedEnum | null $navigationIcon = 'heroicon-o-cog-6-tooth';
2122

2223
protected static string $settings = GeneralSettings::class;
2324

app/Filament/Pages/RoadMap.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
namespace App\Filament\Pages;
4+
use BackedEnum;
45

56
use App\Models\Epic;
67
use App\Models\Project;
@@ -15,9 +16,9 @@ class RoadMap extends Page implements HasForms
1516
{
1617
use InteractsWithForms;
1718

18-
protected static ?string $navigationIcon = 'heroicon-o-calendar';
19+
protected static string | BackedEnum | null $navigationIcon = 'heroicon-o-calendar';
1920

20-
protected static string $view = 'filament.pages.road-map';
21+
protected string $view = 'filament.pages.road-map';
2122

2223
protected static ?string $slug = 'road-map';
2324

app/Filament/Pages/Scrum.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
namespace App\Filament\Pages;
4+
use BackedEnum;
45

56
use App\Helpers\KanbanScrumHelper;
67
use App\Models\Project;
@@ -15,11 +16,11 @@ class Scrum extends Page implements HasForms
1516
{
1617
use InteractsWithForms, KanbanScrumHelper;
1718

18-
protected static ?string $navigationIcon = 'heroicon-o-view-columns';
19+
protected static string | BackedEnum | null $navigationIcon = 'heroicon-o-view-columns';
1920

2021
protected static ?string $slug = 'scrum/{project}';
2122

22-
protected static string $view = 'filament.pages.scrum';
23+
protected string $view = 'filament.pages.scrum';
2324

2425
protected static bool $shouldRegisterNavigation = false;
2526

app/Filament/Pages/TimesheetDashboard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class TimesheetDashboard extends Page
1313

1414
protected static ?int $navigationSort = 2;
1515

16-
protected static string $view = 'filament::pages.dashboard';
16+
protected string $view = 'filament::pages.dashboard';
1717

1818
public function getColumns(): int | array
1919
{

app/Filament/Pages/TimesheetExport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class TimesheetExport extends Page implements HasForms
2121

2222
protected static ?int $navigationSort = 2;
2323

24-
protected static string $view = 'filament.pages.timesheet-export';
24+
protected string $view = 'filament.pages.timesheet-export';
2525

2626
public static function getNavigationGroup(): ?string
2727
{

app/Filament/Resources/ActivityResource.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<?php
22

33
namespace App\Filament\Resources;
4+
use BackedEnum;
45

56
use App\Filament\Resources\ActivityResource\Pages;
67
use App\Filament\Resources\ActivityResource\RelationManagers;
78
use App\Models\Activity;
89
use Filament\Forms;
9-
use Filament\Forms\Form;
10+
use Filament\Schemas\Schema;
1011
use Filament\Resources\Resource;
1112
use Filament\Tables\Table;
1213
use Filament\Tables;
@@ -15,7 +16,7 @@ class ActivityResource extends Resource
1516
{
1617
protected static ?string $model = Activity::class;
1718

18-
protected static ?string $navigationIcon = 'heroicon-o-clipboard';
19+
protected static string | BackedEnum | null $navigationIcon = 'heroicon-o-clipboard';
1920

2021
protected static ?int $navigationSort = 1;
2122

@@ -34,7 +35,7 @@ public static function getNavigationGroup(): ?string
3435
return __('Referential');
3536
}
3637

37-
public static function form(Form $form): Form
38+
public static function form(Schema $form): Schema
3839
{
3940
return $form
4041
->schema([

0 commit comments

Comments
 (0)