[Feature] Added home nav item (#921)

This commit is contained in:
Alex Justesen authored and GitHub committed 2023-11-22 08:38:52 -05:00
1 parent 0a94c552a7
commit 2cbace6c1b
4 files changed
+12

No files matched your search

+4
View File
@@ -16,6 +16,10 @@ class Dashboard extends BasePage
{
protected static ?string $pollingInterval = null;
protected static ?string $navigationIcon = 'heroicon-o-chart-bar';
protected static ?int $navigationSort = 1;
protected static string $view = 'filament.pages.dashboard';
protected function getHeaderActions(): array
@@ -26,6 +26,8 @@ class ResultResource extends Resource
protected static ?string $navigationIcon = 'heroicon-o-table-cells';
protected static ?int $navigationSort = 2;
public static function form(Form $form): Form
{
$settings = new GeneralSettings();
+2
View File
@@ -21,6 +21,8 @@ class UserResource extends Resource
protected static ?string $navigationIcon = 'heroicon-o-users';
protected static ?int $navigationSort = 3;
public static function form(Form $form): Form
{
return $form
@@ -80,6 +80,10 @@ class AdminPanelProvider extends PanelProvider
->collapsible(false),
])
->navigationItems([
NavigationItem::make('Home')
->url('/')
->icon('heroicon-o-home')
->sort(0),
NavigationItem::make('Documentation')
->url('https://docs.speedtest-tracker.dev/', shouldOpenInNewTab: true)
->icon('heroicon-o-book-open')