Skip to content

Commit

Permalink
feat: implemented spotlight and various updates, bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CS76 committed Apr 9, 2024
1 parent 4ae8f18 commit d05d231
Show file tree
Hide file tree
Showing 10 changed files with 185 additions and 269 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace App\Filament\Dashboard\Resources\CollectionResource\RelationManagers;

use App\Filament\Imports\EntryImporter;
use App\Filament\Dashboard\Imports\EntryImporter;
use Filament\Forms;
use Filament\Forms\Form;
use Filament\Infolists\Components\ImageEntry;
Expand Down
4 changes: 3 additions & 1 deletion app/Filament/Pages/Dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@

class Dashboard extends \Filament\Pages\Dashboard
{
protected static ?string $navigationIcon = 'heroicon-o-home';
protected static ?string $navigationIcon = 'heroicon-s-cog';

protected static string $view = 'filament.pages.dashboard';

protected static ?string $title = 'Control Panel';

public function getHeaderWidgets(): array
{
return [
Expand Down
9 changes: 2 additions & 7 deletions app/Providers/Filament/AdminPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
use Illuminate\Session\Middleware\AuthenticateSession;
use Illuminate\Session\Middleware\StartSession;
use Illuminate\View\Middleware\ShareErrorsFromSession;
use pxlrbt\FilamentEnvironmentIndicator\EnvironmentIndicatorPlugin;
use ShuvroRoy\FilamentSpatieLaravelBackup\FilamentSpatieLaravelBackupPlugin;
use Stephenjude\FilamentDebugger\DebuggerPlugin;
use pxlrbt\FilamentSpotlight\SpotlightPlugin;

class AdminPanelProvider extends PanelProvider
{
Expand All @@ -46,12 +46,7 @@ public function panel(Panel $panel): Panel
FilamentExceptionsPlugin::make(),
DebuggerPlugin::make(),
FilamentSpatieLaravelBackupPlugin::make(),
EnvironmentIndicatorPlugin::make()
->color(fn () => match (app()->environment()) {
'production' => null,
'staging' => Color::Orange,
default => Color::Red,
}),
SpotlightPlugin::make(),
])
->middleware([
EncryptCookies::class,
Expand Down
4 changes: 4 additions & 0 deletions app/Providers/Filament/DashboardPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use Illuminate\Session\Middleware\AuthenticateSession;
use Illuminate\Session\Middleware\StartSession;
use Illuminate\View\Middleware\ShareErrorsFromSession;
use pxlrbt\FilamentSpotlight\SpotlightPlugin;

class DashboardPanelProvider extends PanelProvider
{
Expand All @@ -33,6 +34,9 @@ public function panel(Panel $panel): Panel
->pages([
Pages\Dashboard::class,
])
->plugins([
SpotlightPlugin::make()
])
->discoverWidgets(in: app_path('Filament/Dashboard/Widgets'), for: 'App\\Filament\\Dashboard\\Widgets')
->widgets([
Widgets\AccountWidget::class,
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@
"livewire/livewire": "^3.0",
"owen-it/laravel-auditing": "^13.6",
"predis/predis": "^2.2",
"pxlrbt/filament-environment-indicator": "^2.0",
"pxlrbt/filament-spotlight": "^1.2",
"shuvroroy/filament-spatie-laravel-backup": "^2.1",
"spatie/laravel-backup": "^8.6",
"spatie/laravel-cookie-consent": "^3.3",
"spatie/laravel-permission": "^6.3",
"spatie/laravel-support-bubble": "^1.5",
"stechstudio/filament-impersonate": "*",
"stephenjude/filament-debugger": "^3.0",
"tapp/filament-auditing": "^3.0"
Expand Down
Loading

0 comments on commit d05d231

Please sign in to comment.