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
56 lines
1.6 KiB
Markdown
Executable File
56 lines
1.6 KiB
Markdown
Executable File
---
|
|
name: Mono
|
|
colors:
|
|
primary: "#37F712"
|
|
secondary: "#00A6F4"
|
|
success: "#00A63D"
|
|
warning: "#FE9900"
|
|
danger: "#FF2157"
|
|
surface: "#E7E5E4"
|
|
text: "#78716B"
|
|
neutral: "#E7E5E4"
|
|
typography:
|
|
h1:
|
|
fontFamily: "Space Mono"
|
|
fontSize: 3rem
|
|
body-md:
|
|
fontFamily: "Space Mono"
|
|
fontSize: 1rem
|
|
label-caps:
|
|
fontFamily: "JetBrains Mono"
|
|
fontSize: 0.75rem
|
|
sourceScale: "desktop-first expressive scale"
|
|
weights: "100, 200, 300, 400, 500, 600, 700, 800, 900"
|
|
rounded:
|
|
sm: 4px
|
|
md: 8px
|
|
spacing:
|
|
sm: 4px
|
|
md: 8px
|
|
sourceScale: "compact density mode"
|
|
---
|
|
|
|
## Overview
|
|
|
|
Monospace-driven, matrix-inspired design with high-contrast elements, compact density, and a hacker-chic aesthetic.
|
|
|
|
## Style Foundations
|
|
|
|
- **Visual style:** minimal, clean, high-contrast, playful, matrix
|
|
- **Typography scale:** desktop-first expressive scale
|
|
- **Typography fonts:** primary=Space Mono, display=Space Mono, mono=JetBrains Mono
|
|
- **Typography weights:** 100, 200, 300, 400, 500, 600, 700, 800, 900
|
|
- **Color palette:** primary, secondary, success, warning, danger, info
|
|
- **Spacing scale:** compact density mode
|
|
|
|
## Colors
|
|
|
|
- **Primary (#37F712):** Token from style foundations.
|
|
- **Secondary (#00A6F4):** Token from style foundations.
|
|
- **Success (#00A63D):** Token from style foundations.
|
|
- **Warning (#FE9900):** Token from style foundations.
|
|
- **Danger (#FF2157):** Token from style foundations.
|
|
- **Surface (#E7E5E4):** Token from style foundations.
|
|
- **Text (#78716B):** Token from style foundations.
|
|
- **Neutral (#E7E5E4):** Derived from the surface token for official format compatibility.
|