Files
Z User e45b68bb8b feat: IMAP mail sync with thread-to-contact matching (PRD §6.1)
Real IMAP connection via imapflow library:
- Connects to IMAP server (IMAPFlow, TLS on port 993)
- Fetches recent messages (configurable limit, default 20)
- Extracts: from, fromEmail, subject, date, snippet (200 chars)
- Thread-to-contact matching (PRD §6.1):
  1. Match sender email against persons table
  2. If no person match, extract domain and match against company.website
  3. Returns matchedCompany + matchedPerson for each email
- Audit-logged (action: crm.mailsync:imap)
- Zod validated (host, port, user, password, folder, limit)
- 502 on IMAP connection failure with detail
- 400 on validation failure

Tested: invalid creds → 502 'IMAP connection failed', missing host → 400
2026-10-27 22:50:50 +00:00

1.6 KiB
Executable File

name, colors, typography, rounded, spacing
name colors typography rounded spacing
Application
primary secondary success warning danger surface text neutral
#9333ea #a855f7 #10b981 #f59e0b #ef4444 #FFFFFF #09090b #FFFFFF
h1 body-md label-caps sourceScale weights
fontFamily fontSize
Inter 2rem
fontFamily fontSize
Inter 1rem
fontFamily fontSize
JetBrains Mono 0.75rem
12/14/16/20/24/32 100, 200, 300, 400, 500, 600, 700, 800, 900
sm md
4px 8px
sm md sourceScale
4px 8px 4/8/12/16/24/32

Overview

App dashboard with purple-themed aesthetic, top-bar navigation, card-based layouts, and developer-first workflows.

Style Foundations

  • Visual style: modern, clean, high-contrast, glass-like panels, soft shadows, rounded components
  • Typography scale: 12/14/16/20/24/32
  • Typography fonts: primary=Inter, display=Inter, mono=JetBrains Mono
  • Typography weights: 100, 200, 300, 400, 500, 600, 700, 800, 900
  • Color palette: primary (purple), neutral, success, warning, danger
  • Spacing scale: 4/8/12/16/24/32

Colors

  • Primary (#9333ea): Token from style foundations.
  • Secondary (#a855f7): Token from style foundations.
  • Success (#10b981): Token from style foundations.
  • Warning (#f59e0b): Token from style foundations.
  • Danger (#ef4444): Token from style foundations.
  • Surface (#FFFFFF): Token from style foundations.
  • Text (#09090b): Token from style foundations.
  • Neutral (#FFFFFF): Derived from the surface token for official format compatibility.