14 Commits
Author SHA1 Message Date
TooonyChen 207cd0c789 fix: handle MIME decoding and deploy workflow 2026-07-08 00:25:26 +12:00
TooonyChen 4835e758a4 feat: add React frontend, migrate to pnpm, and harden email processing
- Replace server-rendered HTML with React 18 + Vite + shadcn/ui dashboard
    (mail list, detail panel, Extracted/Raw/Rendered tabs, sonner toasts)
  - Add REST API endpoints: GET /api/mails, GET /api/mails/:id
  - Fix MIME base64 body extraction (rewrite extractMailBodies with proper
    multipart boundary parsing and atob decoding)
  - Add isPromotionalEmail() pre-LLM filter (List-Unsubscribe, List-ID,
    Precedence: bulk, ESP X-headers) to avoid wasting AI tokens on ads
  - Fix codeAndLink() to use regex URL extraction instead of comma-split,
    preventing layout break on URLs containing commas
  - Add ASSETS binding to wrangler.toml.example for static frontend serving
- Migrate from npm to pnpm; add pnpm-workspace.yaml
  - Add CLAUDE.md and update AGENTS.md with current architecture
2026-03-15 03:11:08 +13:00
刘志聪 a8dd170913 trigger action manually 2025-01-06 12:12:12 +08:00
TooonyChen c1d69a58c4 test github action 2024-10-08 17:06:44 +13:00
TooonyChen 1a8458f391 test github action 2024-10-08 17:05:55 +13:00
TooonyChen 312af46c25 test github action 2024-10-08 16:59:36 +13:00
TooonyChen 93f8ac3556 test github action 2024-10-08 16:57:32 +13:00
TooonyChen dec1711b91 test github action 2024-10-08 16:54:56 +13:00
TooonyChen 81e41689aa test github action 2024-10-08 16:47:22 +13:00
TooonyChen d8d28c2e3d test github action 2024-10-08 16:44:25 +13:00
TooonyChen 57fa31603f test github action 2024-10-08 16:43:13 +13:00
TooonyChen 75869d0e36 changes on main.yml for github actions 2024-10-08 16:33:37 +13:00
Tony Chen 2b2138f053 Update main.yml 2024-10-08 16:18:27 +13:00
Tony Chen b97d36d302 Create main.yml 2024-10-08 15:50:48 +13:00