From 53833fd2126960a66b389982a523c4a3147e09cf Mon Sep 17 00:00:00 2001 From: Maurice Date: Fri, 13 Nov 2026 18:58:55 +0100 Subject: [PATCH] fix(mail-ingest): server gates after joining dev, and smaller admin buttons - lint:tx: the mail transports and the intake document why their writes stand alone (@txIndependent, network I/O between them, one copy per address); the JSDoc of NotificationsService.respond is back above it after the response actions were registered in between. - lint:boundaries: booking-import asks McpToolGuardsService whether the person may edit the trip's bookings instead of reading the Users table; its unit test builds the service through one named factory. - lint:query-api: findIdByExternal reads through Kysely. - lint:test-mocks: the mail e2e hands its own snapshot db to the ORM instead of mocking the database module. - Entities regenerated (index order only). - Client: the review row reads the live booking, the shells share useMailInboxShell, and the admin card's buttons are one size down. --- .../Admin/mailIngest/MailIngestAdminCard.tsx | 9 +- client/src/components/Layout/Navbar.tsx | 14 +- .../MailIngest/useMailInboxShell.ts | 24 +++ .../mobile/screens/mail/MMailInboxHost.tsx | 19 +-- .../screens/trip/sheets/MTransportSheet.tsx | 4 +- .../db/entities/MailIngestAddresses.entity.ts | 5 +- .../entities/MailIngestCandidates.entity.ts | 8 +- .../db/entities/MailIngestMessages.entity.ts | 8 +- .../repositories/Reservations.repository.ts | 11 +- .../booking-import/booking-import.module.ts | 13 +- .../booking-import/booking-import.service.ts | 12 +- .../mail-ingest/mail-ingest-apply.service.ts | 6 +- .../nest/mail-ingest/mail-ingest-imap.job.ts | 2 + .../mail-ingest/mail-ingest-intake.service.ts | 8 +- .../nest/mail-ingest/mail-ingest-relay.job.ts | 6 +- .../notifications/notifications.service.ts | 10 +- server/tests/e2e/mail-ingest.e2e.test.ts | 8 +- .../booking-import.service.test.ts | 146 +++++++++--------- 18 files changed, 169 insertions(+), 144 deletions(-) create mode 100644 client/src/components/MailIngest/useMailInboxShell.ts diff --git a/client/src/components/Admin/mailIngest/MailIngestAdminCard.tsx b/client/src/components/Admin/mailIngest/MailIngestAdminCard.tsx index e2c658957..f28c50dab 100644 --- a/client/src/components/Admin/mailIngest/MailIngestAdminCard.tsx +++ b/client/src/components/Admin/mailIngest/MailIngestAdminCard.tsx @@ -29,6 +29,9 @@ import { useMailIngestAdmin, type MailIngestAdmin } from './useMailIngestAdmin'; type T = TranslationFn; +/** The card's buttons sit inside the form, one size below the page's: caption type, tighter padding. */ +const SMALL = 'px-3 py-1.5 text-caption'; + /** The address a mail service posts to, shown so the admin can paste it into the sender's settings. */ function InboundUrl({ t }: { t: T }) { const toast = useToast(); @@ -39,7 +42,7 @@ function InboundUrl({ t }: { t: T }) { {url}