diff --git a/frontend/messages/en.json b/frontend/messages/en.json index fecb28e..d45ec16 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -725,6 +725,7 @@ "noAppointment": "No appointment", "walkIn": "Walk-in", "newTreatment": "New treatment", + "mobileOpenRail": "Patient / history", "newTreatmentPatientPrompt": "Who is this visit for?", "newTreatmentUseCurrent": "Use {name}", "newTreatmentUseCurrentHint": "Start a new visit for the patient already open on this page.", diff --git a/frontend/messages/fa.json b/frontend/messages/fa.json index 4fa6ab4..976a4fa 100644 --- a/frontend/messages/fa.json +++ b/frontend/messages/fa.json @@ -726,6 +726,7 @@ "noAppointment": "بدون نوبت", "walkIn": "بدون نوبت (مراجع)", "newTreatment": "درمان جدید", + "mobileOpenRail": "بیمار / سابقه", "newTreatmentPatientPrompt": "این ویزیت برای چه کسی است؟", "newTreatmentUseCurrent": "استفاده از {name}", "newTreatmentUseCurrentHint": "ویزیت جدیدی برای بیماری که همین حالا در این صفحه باز است شروع کنید.", diff --git a/frontend/messages/nl.json b/frontend/messages/nl.json index d466274..dd17cb3 100644 --- a/frontend/messages/nl.json +++ b/frontend/messages/nl.json @@ -725,6 +725,7 @@ "noAppointment": "Geen afspraak", "walkIn": "Inloop", "newTreatment": "Nieuwe behandeling", + "mobileOpenRail": "Patiënt / geschiedenis", "newTreatmentPatientPrompt": "Voor wie is dit bezoek?", "newTreatmentUseCurrent": "{name} gebruiken", "newTreatmentUseCurrentHint": "Start een nieuw bezoek voor de patiënt die al op deze pagina openstaat.", diff --git a/frontend/src/components/ui/lab/CaseCreatePanel.tsx b/frontend/src/components/ui/lab/CaseCreatePanel.tsx index 0a6947d..155a2f3 100644 --- a/frontend/src/components/ui/lab/CaseCreatePanel.tsx +++ b/frontend/src/components/ui/lab/CaseCreatePanel.tsx @@ -320,7 +320,7 @@ export function CaseCreatePanel({ const disabled = !canEdit || starting || deleting; return ( -
+

{t('addCaseTitle')}

@@ -478,6 +478,7 @@ export function CaseCreatePanel({ detailClientId={activeLine.clientId} catalog={prosthesisOptions} disabled={disabled} + className="w-full min-w-0" onToggleLink={(a, b) => { if (disabled) return; const currentGroups = diff --git a/frontend/src/components/ui/lab/CaseDetailPanel.tsx b/frontend/src/components/ui/lab/CaseDetailPanel.tsx index cf9b410..13a9ef9 100644 --- a/frontend/src/components/ui/lab/CaseDetailPanel.tsx +++ b/frontend/src/components/ui/lab/CaseDetailPanel.tsx @@ -158,8 +158,8 @@ export function CaseDetailPanel({ } return ( -
-
+
+

@@ -194,9 +194,9 @@ export function CaseDetailPanel({

-
+
{canEditImportant ? ( -
+
{labCase.externalCode.trim()}

) : null} -
+
{showCommentsButton && onCommentsClick ? (
{labCase.shareUrl || (previewAttachment && labCase.attachments.length > 0) ? ( -
+
{previewAttachment && labCase.attachments.length > 0 ? ( - + {t('pageSummary', { page: pagination.page, totalPages: pagination.totalPages, @@ -599,7 +599,7 @@ export function CasesPage() {
diff --git a/frontend/src/components/ui/lab/LabCaseProsthesisGroupsList.tsx b/frontend/src/components/ui/lab/LabCaseProsthesisGroupsList.tsx index a6f46d9..1f5dcd5 100644 --- a/frontend/src/components/ui/lab/LabCaseProsthesisGroupsList.tsx +++ b/frontend/src/components/ui/lab/LabCaseProsthesisGroupsList.tsx @@ -35,7 +35,7 @@ export function LabCaseProsthesisGroupsList({ {groups.map((group) => (
  • void }) { +/** Hide from this breakpoint up (Cases = lg, Treatment = xl). */ +type HideFrom = 'lg' | 'xl'; + +const HIDE_FROM_CLASS: Record = { + lg: 'lg:hidden', + xl: 'xl:hidden', +}; + +export function MobileDetailBackButton({ + onClick, + hideFrom = 'lg', +}: { + onClick: () => void; + hideFrom?: HideFrom; +}) { const t = useTranslations('common'); return (
  • @@ -683,19 +762,37 @@ export function FdiToothChart({ style={numberStyle(fdi, selected.has(fdi))} interactive={interactive} disabled={isDisabled} - onActivate={(keys) => { - if (onAssignPointer) { - onAssignPointer(fdi, { - shiftKey: keys.shiftKey, - ctrlKey: keys.ctrlKey, - paint: keys.ctrlKey, + onActivate={(keys) => { + if (onAssignPointer) { + onAssignPointer(fdi, { + shiftKey: keys.shiftKey, + ctrlKey: keys.ctrlKey, + paint: keys.ctrlKey, + }); + return; + } + onToggle?.(fdi, { shiftKey: keys.shiftKey }); + }} + onBeginPointer={(e) => { + const shiftKey = e.shiftKey; + const ctrlKey = e.ctrlKey || e.metaKey; + beginToothPointer(e, { + startPaint: false, + activate: () => { + if (onAssignPointer) { + onAssignPointer(fdi, { + shiftKey, + ctrlKey, + paint: ctrlKey, + }); + return; + } + onToggle?.(fdi, { shiftKey }); + }, }); - return; - } - onToggle?.(fdi, { shiftKey: keys.shiftKey }); - }} - /> - ))} + }} + /> + ))}
    -
    +
    +

    {compact || embedded ? t('toothChartTitleCompact') : t('toothChartTitle')} @@ -769,7 +866,7 @@ export function FdiToothChart({ ) : null}

    ) : null} -

    +

    {t('selectedLabel')}{' '} {selectedSummary ?? (selected.size === 0 ? t('selectedEmpty') : [...selected].sort().join(', '))} diff --git a/frontend/src/components/ui/treatment/ProsthesisJobPopover.tsx b/frontend/src/components/ui/treatment/ProsthesisJobPopover.tsx index 0e49275..68f09a1 100644 --- a/frontend/src/components/ui/treatment/ProsthesisJobPopover.tsx +++ b/frontend/src/components/ui/treatment/ProsthesisJobPopover.tsx @@ -508,12 +508,12 @@ export function ProsthesisJobPopover({ ); const body = ( -

    -
    +
    +

    {title}

    {scope === 'arch' && onLockedArchChange ? (
    @@ -541,13 +541,13 @@ export function ProsthesisJobPopover({ {tileRow}
    -
    -
    +
    +
    +
    {showSearchedPatientLoading ? (

    {t('loading')}