v1.1.2
- Real-time updates (Laravel Reverb): live operator queue, live ticket chat/detail updates for operator and client, periodic fallback refresh with a visible countdown as a backstop for dropped websocket connections. - SLA automation rules (Admin > Automatyzacja SLA): act on a ticket after N minutes of customer silence (change priority/status/team/assignee), evaluated every 15 minutes, reusing TicketService's own setters so automated changes get the same history/notification/broadcast a manual change would. - New notification: every operator on a matching team gets notified when a new ticket lands in one of their subcategories. - BookStack knowledge-base sidebar now also shown on the client's own ticket view (previously operator-only); suggestions everywhere now load in after first paint instead of blocking it. - Client ticket view: shows assigned operator + team; page widened to match the operator's. - Notification bell shows unread only; read notifications disappear instead of just dimming. - Stats dashboard: sectioned layout, new breakdowns (by subcategory, CSAT by team/operator, top clients, client x subcategory cross-tab). - Mobile: nav dropdowns (theme/notifications/profile) now expand full width instead of overflowing off-screen below 640px. - Fixed two bugs that silently disabled all real-time updates (missing CSRF header on Echo's private-channel auth; a script-load-order race that could miss the livewire:init event) and the mariadb healthcheck (world-writable credentials file on this stack's NFS mount). - Assorted test-suite fixes (roles virtual attribute needs the roles table seeded; a few missing seeds/wrong assertions found along the way). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,11 +8,25 @@ use Livewire\Livewire;
|
||||
test('every page renders without error against fully seeded data', function () {
|
||||
$this->seed();
|
||||
|
||||
$client = User::query()->withRole('client')->firstOrFail();
|
||||
$operator = User::query()->withRole('operator')->firstOrFail();
|
||||
// DatabaseSeeder deliberately only seeds one admin fallback account and
|
||||
// no ticket data (see README) — this test needs a client and an operator
|
||||
// plus a ticket to exercise every page, so it creates its own on top of
|
||||
// the seeded reference data (categories/teams/statuses/priorities/etc).
|
||||
$client = User::query()->create(['name' => 'Smoke Client', 'email' => 'smoke-client@example.com', 'roles' => ['client']]);
|
||||
$operator = User::query()->create(['name' => 'Smoke Operator', 'email' => 'smoke-operator@example.com', 'roles' => ['operator']]);
|
||||
$admin = User::query()->withRole('admin')->firstOrFail();
|
||||
$clientTicket = Ticket::query()->where('customer_id', $client->id)->firstOrFail();
|
||||
$anyTicket = Ticket::query()->firstOrFail();
|
||||
$clientTicket = Ticket::query()->create([
|
||||
'number' => '9001',
|
||||
'customer_id' => $client->id,
|
||||
'email' => $client->email,
|
||||
'name' => $client->name,
|
||||
'subject' => 'Smoke test subject',
|
||||
'body' => 'Smoke test body',
|
||||
'status_key' => 'new',
|
||||
'priority_key' => 'high',
|
||||
'custom_fields' => [],
|
||||
]);
|
||||
$anyTicket = $clientTicket;
|
||||
|
||||
$this->get('/')->assertOk()->assertSee('Jak możemy pomóc');
|
||||
$this->get('/login')->assertOk()->assertSee('Nowe zgłoszenie bez logowania');
|
||||
|
||||
Reference in New Issue
Block a user