Invoice Processing — Exploration v1.1#759
Draft
petervachon wants to merge 8 commits into
Draft
Conversation
- Standalone Slack listener (Socket Mode) + JSON store driving the escalation card, button actions, and thread-reply ingestion - "Contact supplier" sends via Outlook and lands in the Comms feed as a glass-card thread with Outlook brand attribution - Queue card surfaces "Contacted supplier" as a secondary status - List view: assignee column with avatar; Due today filter aligned to the today/tomorrow buckets - Collapsed prototype variants A/B/C down to the single shipped design; removed VersionSwitcher and the legacy v1 template - Renamed template module to InvoiceReviewTemplate Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Dependency License Review
License distribution
Excluded packages
|
| message.external_id && | ||
| inv.messages.some((m) => m.external_id === message.external_id) | ||
| ) { | ||
| state.invoices[invoiceId] = inv; |
| return false; | ||
| } | ||
| inv.messages.push(message); | ||
| state.invoices[invoiceId] = inv; |
|
|
||
| function resetInvoice(invoiceId) { | ||
| const state = readState(); | ||
| state.invoices[invoiceId] = blankInvoice(); |
| const LISTENER_PORT = process.env.LISTENER_PORT || "3010"; | ||
|
|
||
| export async function POST(request: NextRequest) { | ||
| let body = "{}"; |
| const LISTENER_PORT = process.env.LISTENER_PORT || "3010"; | ||
|
|
||
| export async function POST(request: NextRequest) { | ||
| let body = "{}"; |
| } = require("./escalation-card"); | ||
| const store = require("./store"); | ||
|
|
||
| const log = (...args) => console.log("[SLACK]", ...args); |
| const LISTENER_PORT = process.env.LISTENER_PORT || "3010"; | ||
|
|
||
| export async function POST(request: NextRequest) { | ||
| let body = "{}"; |
| const LISTENER_PORT = process.env.LISTENER_PORT || "3010"; | ||
|
|
||
| export async function POST(request: NextRequest) { | ||
| let body = "{}"; |
The Invoice Review template, its demo API routes, and the Slack listener are exploration code intended to be rewritten when wired to the backend. Linting them as production code surfaces ~80 errors that won't survive the migration, so the directories are excluded at the config level (single point of removal once code graduates). Adds a README in templates/invoice-review/ describing the prototype status and the migration path out. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Invoice Processing exploration v1.1. Adds the Slack + Outlook round-trip, glass-card Comms grouping, list-view assignee column, queue/state-tracking refinements, and collapses prior A/B/C variants down to the single shipped design.
Highlights
chat:write.customize.· Contacted supplieras a secondary status alongside the exception tag.Slack setup
See apps/apollo-vertex/slack/README.md for env vars, the Slack app manifest, and hardcoded identity caveats. The prototype runs standalone without the listener — only the escalation flow degrades to a toast error.
Test plan
/invoice-review· Contacted supplier🤖 Generated with Claude Code