From 800bdafb1d7dbb3e78f60ed877a032dcff4c86e8 Mon Sep 17 00:00:00 2001 From: ISMAIL MASSERAN Date: Wed, 23 Sep 2026 12:06:48 +0800 Subject: [PATCH] DONE: add two voice fallback where there is no malay voicepack, update to display horizontally for number in queue in tv display --- .../BranchDisplayPage/BranchDisplayPage.css | 23 +++-- .../BranchDisplayPage/BranchDisplayPage.jsx | 4 +- fe/web/teller-app/src/utils/queueCallSound.js | 3 +- .../teller-app/src/utils/queueCallSpeech.js | 89 ++++++++++++++++--- 4 files changed, 96 insertions(+), 23 deletions(-) diff --git a/fe/web/teller-app/src/pages/BranchDisplayPage/BranchDisplayPage.css b/fe/web/teller-app/src/pages/BranchDisplayPage/BranchDisplayPage.css index 1a3a72a..cf50fa6 100644 --- a/fe/web/teller-app/src/pages/BranchDisplayPage/BranchDisplayPage.css +++ b/fe/web/teller-app/src/pages/BranchDisplayPage/BranchDisplayPage.css @@ -280,31 +280,36 @@ margin: 0; padding: 0; display: flex; - flex-direction: column; - gap: 0.45em; + flex-direction: row; + flex-wrap: nowrap; + align-items: stretch; + gap: 0.55em; flex: 1; min-height: 0; - overflow: auto; + overflow: hidden; } .branch-display__waiting-item { display: flex; align-items: center; - justify-content: space-between; - gap: 0.75em; - padding: 0.55em 0.85em; + justify-content: center; + flex: 1 1 0; + min-width: 0; + padding: 0.55em 0.45em; border-radius: 0.4em; background: var(--bd-surface); border: 1px solid var(--bd-border); - border-left: 0.2em solid var(--bd-green); - flex-shrink: 0; + border-bottom: 0.2em solid var(--bd-green); } .branch-display__waiting-number { - font-size: clamp(1.35em, 2.4vw, 2.5em); + font-size: clamp(1.2em, 2vw, 2.25em); font-weight: 700; letter-spacing: -0.02em; color: var(--bd-accent); + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } .branch-display__waiting-service { diff --git a/fe/web/teller-app/src/pages/BranchDisplayPage/BranchDisplayPage.jsx b/fe/web/teller-app/src/pages/BranchDisplayPage/BranchDisplayPage.jsx index 57c632a..a23df48 100644 --- a/fe/web/teller-app/src/pages/BranchDisplayPage/BranchDisplayPage.jsx +++ b/fe/web/teller-app/src/pages/BranchDisplayPage/BranchDisplayPage.jsx @@ -214,6 +214,8 @@ export default function BranchDisplayPage() { [tickets] ); + const waitingPreview = useMemo(() => waiting.slice(0, 5), [waiting]); + const sortedStations = useMemo( () => [...stations].sort((a, b) => String(a.name).localeCompare(String(b.name))), [stations] @@ -285,7 +287,7 @@ export default function BranchDisplayPage() {

Tiada nombor dalam giliran.

) : (