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
@@ -22,10 +22,13 @@ class DisplayPublicController extends Controller
$screen->loadMissing(['organization', 'branch']);
$this->displays->touch($screen);
$payload = $this->displays->payload($screen);
return view('qms.display.public', [
'screen' => $screen,
'dataUrl' => route('qms.display.data', $token),
'playedUrl' => route('qms.display.announcement.played', ['token' => $token, 'announcement' => '__ID__']),
'initialPayload' => $payload,
'dataUrl' => '/display/'.$token.'/data',
'playedUrl' => '/display/'.$token.'/announcements/__ID__/played',
'pollMs' => config('qms.display_poll_ms', 1200),
]);
}