Files
JeremyandClaude Opus 4.8 2be7a37c81 fix: address code review for per-product scheduling and notifications
- 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>
2026-06-03 11:20:23 +10:00

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()])),
];
}
}