WIP: 调整 UI 设计 #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "gycherish/closer:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
M2: email inbound now passes the triage brain before an inquiry is created; clean channels (site_form) and unmanaged channels (whatsapp) keep their direct-ingest behavior. - models.TriageItem + migrations/002_triage_item.sql: storage for the four buckets (inquiry-promoted / existing / triage queue / archive/bridge), with decision snapshot, confidence, signals, status (pending/confirmed/ dismissed) and dedup by channel_message_id. - app/services/inbound_intake.py: intake_message orchestrates triage -> create_inquiry (existing path) or land in a TriageItem bucket; dedup spans Message + TriageItem. confirm_triage_item promotes to an inquiry, dismiss_triage_item archives. Gate scoped to TRIAGE_CHANNELS = {email}. - email_polling now calls intake_message and reports ingested vs triaged. - app/routers/triage.py (+ main wiring): GET /api/v1/triage (bucket/status), POST /triage/{id}/confirm, POST /triage/{id}/dismiss. - triage rule: a specific quantity now counts as buying intent (not only keywords), so real inquiries like "Need 1200 ... lamps" classify correctly. - Updated email_polling/workers fixtures to a realistic external buyer domain (same-domain buyer was being flagged as internal mail). Verified: pixi run test -> 226 passed; migration 002 applies on PostgreSQL. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.