mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 17:41:51 +00:00
refactor(server): keep the grown files at their size baselines; centre the inbox dialog
- auth.service: how an admin form value is stored (validated, encrypted, a masked echo kept) moves to the app settings registry as storedAdminValue and isMaskEcho. - reservations.service: a booking's origin (withoutOrigin, originColumns) moves to reservation-origin.ts, its input shapes to reservation-inputs.ts, exported on from the service so importers stay as they were. - Reservations.repository: the joined projection, the origin lookup and the origin columns move to _shared/, like the Wallet pass context before. - test-sql: MailIngestApplyService.prepare is marked as no SQL statement. - The pending bookings dialog opens centred, and says 'nothing waiting' once.
This commit is contained in:
@@ -198,19 +198,13 @@ export default function MailInboxDialog(): ReactElement | null {
|
||||
labelId={titleId}
|
||||
onClose={inbox.close}
|
||||
title={t('mailInbox.title')}
|
||||
sub={inbox.pending > 0 ? t('mailInbox.pendingCount', { count: inbox.pending }) : t('mailInbox.empty')}
|
||||
// The empty state below says it already; the head only counts what waits.
|
||||
sub={inbox.pending > 0 ? t('mailInbox.pendingCount', { count: inbox.pending }) : undefined}
|
||||
/>
|
||||
);
|
||||
|
||||
return (
|
||||
<DialogShell
|
||||
onClose={inbox.close}
|
||||
labelledBy={titleId}
|
||||
width="editor"
|
||||
align="top"
|
||||
header={header}
|
||||
blocked={!!inbox.picking}
|
||||
>
|
||||
<DialogShell onClose={inbox.close} labelledBy={titleId} width="editor" header={header} blocked={!!inbox.picking}>
|
||||
{inbox.picking ? (
|
||||
<TripPicker trips={inbox.trips} onPick={inbox.pick} onCancel={inbox.cancelPick} />
|
||||
) : inbox.preview ? (
|
||||
|
||||
Reference in New Issue
Block a user