Add notification inbox, toasts and alert scanner for orders, prints and filament
Deploy HickLab3D Dashboard / Deploy to production (push) Successful in 28s
Deploy HickLab3D Dashboard / Deploy to production (push) Successful in 28s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
04be9802dc
commit
ab1fdb961f
@@ -39,6 +39,7 @@ class RefreshIntegrationCache extends Command
|
||||
$this->refresh('bambuddy queue', fn () => $bambuddy->queue());
|
||||
$this->refresh('bambuddy recent prints', fn () => $bambuddy->recentPrints());
|
||||
$this->refresh('bambuddy stats', fn () => $bambuddy->stats());
|
||||
$this->refresh('bambuddy spools', fn () => $bambuddy->spools());
|
||||
}
|
||||
|
||||
if ($dryer->configured()) {
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Services\AlertScanner;
|
||||
use Illuminate\Console\Attributes\Description;
|
||||
use Illuminate\Console\Attributes\Signature;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
#[Signature('alerts:scan')]
|
||||
#[Description('Publish notifications for new orders, print progress, low filament and due shipments')]
|
||||
class ScanAlerts extends Command
|
||||
{
|
||||
public function handle(AlertScanner $scanner): int
|
||||
{
|
||||
$this->line($scanner->scan().' notification(s) published');
|
||||
|
||||
return self::SUCCESS;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user