feat(mail-ingest): admin card, review mark, inbox events and links, translations

- Admin settings (desktop and phone, self-hosted only): the instance switch,
  how mail arrives (IMAP or a signed webhook) with its fields, the address
  template, the AI allowance per person and day, a connection test and the
  status in counts. Changed fields only are saved; secrets stay masked.
- The review mark of an imported booking takes its mark off: the pill in the
  desktop dialog and a row in the phone's transport sheet ('Looks right'),
  through the ordinary booking update. Its hint no longer speaks of airports.
- The inbox follows mailInbox:changed and mailInbox:settings, and
  ?inbox=mail (the 'bookings waiting' notification) opens it.
- mailIngestRepo: the online-only path the views take, answers parsed
  against the shared contracts.
- Dropped 'read with AI' and the unused mail-review contract: the server
  reads a passing AI failure again on its own.
- mailInbox, mailAdmin and the new reservation, settings and notification
  strings in all 28 locales; the pending notice is a plural group.
- The live flight line on the booking cards is one of the card's fields,
  full width on the phone; the phone's live card keeps its map to the middle.
- Admin flight and mail cards sit in the left column.
This commit is contained in:
Maurice
2026-11-13 18:31:07 +01:00
parent bd11cd347d
commit a7adef5353
209 changed files with 5915 additions and 343 deletions
@@ -52,20 +52,19 @@ function entry(
describe('mailInboxModel', () => {
it('FE-MAILINBOX-MODEL-001: a read booking with a suggested trip is added in one tap, with every way out after it', () => {
expect(actionsOf(entry(), false)).toEqual(['add', 'file', 'manual', 'discard']);
expect(actionsOf(entry())).toEqual(['add', 'file', 'manual', 'discard']);
});
it('FE-MAILINBOX-MODEL-002: without a suggestion the person chooses the trip', () => {
expect(actionsOf(entry({ suggested_trip: null }), false)[0]).toBe('choose');
expect(actionsOf(entry({ suggested_trip: null }))[0]).toBe('choose');
});
it('FE-MAILINBOX-MODEL-003: a mail without a booking offers the document, the form, and AI only where it can help', () => {
it('FE-MAILINBOX-MODEL-003: a mail without a booking offers the document and the form', () => {
const none = entry(
{ item: null, reason: 'not_a_booking' },
{ attachments: [{ file_name: 'invoice.pdf', kind: 'pdf', size: 1 }] }
);
expect(actionsOf(none, false)).toEqual(['file', 'manual', 'discard']);
expect(actionsOf(none, true)).toEqual(['file', 'manual', 'readAi', 'discard']);
expect(actionsOf(none)).toEqual(['file', 'manual', 'discard']);
});
it('FE-MAILINBOX-MODEL-004: a forwarding confirmation or a newsletter only informs', () => {