feat(messages): Phase 1 read-only Messages viewer (email client shell)

New admin "Messages" page — a three-pane mail viewer over the mail picpeak
already stores, feature-flagged behind `messaging` (default off):

- Sidebar account tree: All mail / Customers (hello@) / Accounting (rechnungen@)
  / Automated (no-reply@), matching the agreed IA.
- Automated + All Sent = email_queue (listQueue); Accounting + All Inbox =
  received_emails (listReceived). Customers folders show an explanatory empty
  state pending the hello@ mailbox (Phase 2).
- Reading pane renders the sent body from rendered_html (migration 119) in a
  sandboxed iframe; new GET /admin/email/queue/:id returns body + cc +
  attachment filenames (disk paths never exposed).
- Received supplier invoices: envelope + rasterized PDF viewer reusing the
  accounting inbound blob endpoint, plus "Open in Accounting inbox".
- Context toolbar (Reply/Forward/Create Quote-Contract-Gallery-Invoice /
  Book-as-expense-Re-bill) present but disabled — wired in later phases.

Reuses email.service, accounting inbound blob endpoint, RequireFeature +
PermissionGate (email.view), Tailwind dark: theming. No schema change.
This commit is contained in:
Luca
2026-07-07 03:15:41 +02:00
parent a52317d8a5
commit 26eeb76197
7 changed files with 594 additions and 0 deletions
+1
View File
@@ -197,6 +197,7 @@
"navigation": {
"dashboard": "Dashboard",
"events": "Veranstaltungen",
"messages": "Nachrichten",
"settings": "Einstellungen",
"systemHealth": "Systemzustand",
"archives": "Archive",
+1
View File
@@ -198,6 +198,7 @@
"dashboard": "Dashboard",
"events": "Events",
"archives": "Archives",
"messages": "Messages",
"settings": "Settings",
"systemHealth": "System health",
"eventTypes": "Event Types",