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: Pacman
|
|
colors:
|
|
primary: "#2A3FE5"
|
|
secondary: "#F4B9B0"
|
|
success: "#16A34A"
|
|
warning: "#D97706"
|
|
danger: "#DC2626"
|
|
surface: "#000000"
|
|
text: "#111827"
|
|
neutral: "#000000"
|
|
typography:
|
|
h1:
|
|
fontFamily: "Press Start 2P"
|
|
fontSize: 3rem
|
|
body-md:
|
|
fontFamily: "Press Start 2P"
|
|
fontSize: 1rem
|
|
label-caps:
|
|
fontFamily: "Space 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: 8px
|
|
md: 16px
|
|
sourceScale: "8pt baseline grid"
|
|
---
|
|
|
|
## Overview
|
|
|
|
Retro arcade-inspired design with pixel fonts, dotted borders, playful high-contrast colors, and 8-bit game aesthetics.
|
|
|
|
## Style Foundations
|
|
|
|
- **Visual style:** high-contrast, playful, dotted borders
|
|
- **Typography scale:** desktop-first expressive scale
|
|
- **Typography fonts:** primary=Press Start 2P, display=Press Start 2P, mono=Space Mono
|
|
- **Typography weights:** 100, 200, 300, 400, 500, 600, 700, 800, 900
|
|
- **Color palette:** primary, secondary, success, warning, danger, info, surface/subtle layers
|
|
- **Spacing scale:** 8pt baseline grid
|
|
|
|
## Colors
|
|
|
|
- **Primary (#2A3FE5):** Token from style foundations.
|
|
- **Secondary (#F4B9B0):** Token from style foundations.
|
|
- **Success (#16A34A):** Token from style foundations.
|
|
- **Warning (#D97706):** Token from style foundations.
|
|
- **Danger (#DC2626):** Token from style foundations.
|
|
- **Surface (#000000):** Token from style foundations.
|
|
- **Text (#111827):** Token from style foundations.
|
|
- **Neutral (#000000):** Derived from the surface token for official format compatibility.
|