mirror of
https://github.com/jez500/pricebuddy.git
synced 2026-11-24 19:58:13 +01:00
- Product: reschedule next_check_at when refresh_interval changes; cast as int - ScheduleHelper: bound FetchDue withoutOverlapping lock to 5 min - PriceFetcherService: reschedule each chunk only after its job dispatches - StockAlert mail: add alt text to product image - AppSettings: mask Discord webhook URL (password + revealable) - ListNotifications: scope mark-all-read to PriceBuddy notification types Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
29 lines
995 B
PHP
29 lines
995 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\NotificationHistoryResource\Pages;
|
|
|
|
use App\Filament\Resources\NotificationHistoryResource;
|
|
use Filament\Actions\Action;
|
|
use Filament\Resources\Pages\ListRecords;
|
|
|
|
class ListNotifications extends ListRecords
|
|
{
|
|
protected static string $resource = NotificationHistoryResource::class;
|
|
|
|
protected function getHeaderActions(): array
|
|
{
|
|
return [
|
|
Action::make('markAllRead')
|
|
->label(__('Mark all as read'))
|
|
->icon('heroicon-m-check')
|
|
->color('gray')
|
|
->visible(fn () => auth()->user()?->unreadNotifications()
|
|
->whereIn('type', array_keys(NotificationHistoryResource::typeMeta()))
|
|
->exists())
|
|
->action(fn () => auth()->user()?->unreadNotifications()
|
|
->whereIn('type', array_keys(NotificationHistoryResource::typeMeta()))
|
|
->update(['read_at' => now()])),
|
|
];
|
|
}
|
|
}
|