From 4cf1e539013deb6aa39043db4e4f82c5a0321bfd Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Fri, 20 Mar 2026 09:58:16 -0700 Subject: [PATCH] feat: fire digest-queue add call from digest chip handler --- web/src/components/InterviewCard.vue | 8 ++++++++ web/src/views/InterviewsView.vue | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/web/src/components/InterviewCard.vue b/web/src/components/InterviewCard.vue index e2f6d81..7a8561f 100644 --- a/web/src/components/InterviewCard.vue +++ b/web/src/components/InterviewCard.vue @@ -90,6 +90,14 @@ async function reclassifySignal(sig: StageSignal, newLabel: StageSignal['stage_s body: JSON.stringify({ stage_signal: newLabel }), }) await useApiFetch(`/api/stage-signals/${sig.id}/dismiss`, { method: 'POST' }) + // Digest-only: add to browsable queue (fire-and-forget; sig.id === job_contacts.id) + if (newLabel === 'digest') { + useApiFetch('/api/digest-queue', { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ job_contact_id: sig.id }), + }).catch(() => {}) + } } else { const prev = sig.stage_signal sig.stage_signal = newLabel diff --git a/web/src/views/InterviewsView.vue b/web/src/views/InterviewsView.vue index 0cdb5a6..f3f829b 100644 --- a/web/src/views/InterviewsView.vue +++ b/web/src/views/InterviewsView.vue @@ -108,6 +108,14 @@ async function reclassifyPreSignal(job: PipelineJob, sig: StageSignal, newLabel: body: JSON.stringify({ stage_signal: newLabel }), }) await useApiFetch(`/api/stage-signals/${sig.id}/dismiss`, { method: 'POST' }) + // Digest-only: add to browsable queue (fire-and-forget; sig.id === job_contacts.id) + if (newLabel === 'digest') { + useApiFetch('/api/digest-queue', { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ job_contact_id: sig.id }), + }).catch(() => {}) + } } else { const prev = sig.stage_signal sig.stage_signal = newLabel