Fix public display not showing queue stats and ticket data.
Deploy Ladill Queue / deploy (push) Successful in 43s

Server-render initial payload, poll with same-origin relative URLs, fall back to branch queues when none assigned, and improve contrast so stats remain visible if custom CSS is missing.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-29 22:51:29 +00:00
co-authored by Cursor
parent 2243ccf95a
commit 326769204d
5 changed files with 125 additions and 44 deletions
+25 -1
View File
@@ -81,7 +81,31 @@ class DisplayVoiceTest extends TestCase
$response = $this->getJson(route('qms.display.data', $screen->access_token));
$response->assertOk()
->assertJsonPath('announcements.0.message', 'Ticket A001, please proceed to Counter 1.');
->assertJsonPath('announcements.0.message', 'Ticket A001, please proceed to Counter 1.')
->assertJsonPath('waiting_count', 0)
->assertJsonPath('now_serving.0.ticket_number', 'A001');
}
public function test_display_falls_back_to_branch_queues_when_none_assigned(): void
{
[$user, , $branch, $queue] = $this->setUpOrg();
$screen = DisplayScreen::create([
'owner_ref' => $user->public_id,
'organization_id' => $queue->organization_id,
'branch_id' => $branch->id,
'name' => 'Lobby',
'layout' => 'standard',
'service_queue_ids' => [],
'is_active' => true,
]);
app(QueueEngine::class)->issueTicket($queue, $user->public_id);
$this->getJson(route('qms.display.data', $screen->access_token))
->assertOk()
->assertJsonPath('waiting_count', 1)
->assertJsonPath('queues.0.name', 'Reception');
}
public function test_display_marks_announcement_played(): void