diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 2f87aae1db..3be9e4c9e4 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,2 +1,2 @@ -github: [danharrin, zepfietje] +github: [danharrin] polar: filamentphp diff --git a/packages/notifications/docs/02-database-notifications.md b/packages/notifications/docs/02-database-notifications.md index 0f9d79a55d..9fc6890911 100644 --- a/packages/notifications/docs/02-database-notifications.md +++ b/packages/notifications/docs/02-database-notifications.md @@ -142,19 +142,16 @@ DatabaseNotifications::pollingInterval(null); Alternatively, the package has a native integration with [Laravel Echo](https://laravel.com/docs/broadcasting#client-side-installation). Make sure Echo is installed, as well as a [server-side websockets integration](https://laravel.com/docs/broadcasting#server-side-installation) like Pusher. -Once websockets are set up, after sending a database notification you may dispatch a `DatabaseNotificationsSent` event, which will immediately fetch new notifications for that user: +Once websockets are set up, you can automatically dispatch a `DatabaseNotificationsSent` event by setting the `isEventDispatched` parameter to `true` when sending the notification. This will trigger the immediate fetching of new notifications for the user: ```php -use Filament\Notifications\Events\DatabaseNotificationsSent; use Filament\Notifications\Notification; $recipient = auth()->user(); Notification::make() ->title('Saved successfully') - ->sendToDatabase($recipient); - -event(new DatabaseNotificationsSent($recipient)); + ->sendToDatabase($recipient, isEventDispatched: true); ``` ## Marking database notifications as read diff --git a/packages/panels/resources/css/base.css b/packages/panels/resources/css/base.css new file mode 100644 index 0000000000..c0aa252bc2 --- /dev/null +++ b/packages/panels/resources/css/base.css @@ -0,0 +1,10 @@ +@layer base { + :root.dark { + color-scheme: dark; + } + + /* When scrolling to validation error, do not hide element behind the top bar */ + [data-field-wrapper] { + scroll-margin-top: 8rem; + } +} diff --git a/packages/panels/resources/css/index.css b/packages/panels/resources/css/index.css index 32a7b84c76..2f0da59230 100644 --- a/packages/panels/resources/css/index.css +++ b/packages/panels/resources/css/index.css @@ -1,15 +1,6 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; -@tailwind variants; +@import 'tailwindcss/base'; +@import 'tailwindcss/components'; +@import 'tailwindcss/utilities'; +@import 'tailwindcss/variants'; -@layer base { - :root.dark { - color-scheme: dark; - } - - /* When scrolling to validation error, do not hide element behind the top bar */ - [data-field-wrapper] { - scroll-margin-top: 8rem; - } -} +@import 'base.css'; diff --git a/packages/support/src/Commands/MakeIssueCommand.php b/packages/support/src/Commands/MakeIssueCommand.php index 787e4db11e..86014bd8cc 100644 --- a/packages/support/src/Commands/MakeIssueCommand.php +++ b/packages/support/src/Commands/MakeIssueCommand.php @@ -26,25 +26,37 @@ class MakeIssueCommand extends Command public function handle(): void { - $this->openUrlInBrowser('https://github.com/filamentphp/filament/issues/new?' . http_build_query([ + $url = 'https://github.com/filamentphp/filament/issues/new?' . http_build_query([ 'template' => 'bug_report.yml', 'package-version' => InstalledVersions::getPrettyVersion('filament/support'), 'laravel-version' => InstalledVersions::getPrettyVersion('laravel/framework'), 'livewire-version' => InstalledVersions::getPrettyVersion('livewire/livewire'), 'php-version' => PHP_VERSION, - ])); + ]); + + $result = $this->openUrlInBrowser($url); + + if ($result !== 0) { + $this->components->error('An error occurred while trying to open the issue page in your browser.'); + $this->output->writeln(' Please open the following URL in your browser:'); + $this->output->writeln(' ' . $url . ''); + } } - public function openUrlInBrowser(string $url): void + public function openUrlInBrowser(string $url): int { + $result = -1; + if (PHP_OS_FAMILY === 'Darwin') { - exec('open "' . $url . '"'); + exec('open "' . $url . '"', result_code: $result); } if (PHP_OS_FAMILY === 'Linux') { - exec('xdg-open "' . $url . '"'); + exec('xdg-open "' . $url . '"', result_code: $result); } if (PHP_OS_FAMILY === 'Windows') { - exec('start "" "' . $url . '"'); + exec('start "" "' . $url . '"', result_code: $result); } + + return $result; } } diff --git a/packages/tables/resources/views/components/summary/row.blade.php b/packages/tables/resources/views/components/summary/row.blade.php index ac0b74a7a7..9a8556a468 100644 --- a/packages/tables/resources/views/components/summary/row.blade.php +++ b/packages/tables/resources/views/components/summary/row.blade.php @@ -44,7 +44,7 @@ - + {{ $heading }} @@ -92,7 +92,7 @@ > @if ($loop->first && (! $extraHeadingColumn) && (! $groupsOnly)) {{ $heading }}