Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

✨ feat(acceptance): add focused check workspace (#17566)

Arvin Xufb7308789055
diff --git a/.agents/acceptance/common-mistakes.md b/.agents/acceptance/common-mistakes.md
index eff28ac827d..02901b0d034 100644
--- a/.agents/acceptance/common-mistakes.md
+++ b/.agents/acceptance/common-mistakes.md
@@ -41,6 +41,19 @@ a broken product state and appears to prove the regression.
synthetic position probes as text evidence only, and restore the DOM before any
passing screenshot.
+### L-E4 — Claiming an authoring flow from its entry point
+
+**Wrong approach:** publish the “Add check” button and source-level evidence as
+proof that manual check creation is complete.
+
+**Why it fails:** an entry point does not demonstrate form entry, the resulting
+check, or where the new item enters the acceptance lifecycle.
+
+**Correct approach:** verify the full UI sequence: entry, completed form with
+preview, and the created item in its editable pre-verification state. Keep the
+manual path independent from rubric loading so an unrelated rubric request cannot
+block it.
+
## Product and interaction design
### L-D1 — Treating a status badge as the information hierarchy
diff --git a/apps/cli/src/commands/verifyAcceptance.ts b/apps/cli/src/commands/verifyAcceptance.ts
index f45bec46c1b..f2ef81d7c0e 100644
--- a/apps/cli/src/commands/verifyAcceptance.ts
+++ b/apps/cli/src/commands/verifyAcceptance.ts
@@ -46,6 +46,7 @@ const statusColor = (status: string): string => {
const userGlyph = (userReview?: { action: string; stale: boolean } | null): string => {
if (!userReview) return pc.dim('· pending');
if (userReview.action === 'accept') return pc.green('✓ accepted');
+ if (userReview.action === 'ignore') return pc.dim('⊘ ignored');
return userReview.stale ? pc.dim('· pending') : pc.red('✗ rejected');
};
diff --git a/apps/server/src/services/verify/__tests__/checkReviewOverlay.test.ts b/apps/server/src/services/verify/__tests__/checkReviewOverlay.test.ts
index 94587e4ab7d..98bd9483d21 100644
--- a/apps/server/src/services/verify/__tests__/checkReviewOverlay.test.ts
+++ b/apps/server/src/services/verify/__tests__/checkReviewOverlay.test.ts
@@ -53,6 +53,21 @@ describe('buildCheckReviewOverlay', () => {
expect(overlay.userReview).toMatchObject({ action: 'accept', roundIndex: 1, stale: false });
});
+ it('an ignored check stays out of scope across later rounds', () => {
+ const ignored = result('r1', {
+ userDecision: 'overridden',
+ userDecisionDetail: { decidedAt: '2026-07-16T01:00:00.000Z' },
+ });
+ const overlay = buildCheckReviewOverlay(
+ { timeline: [timelineEntry('r1', 1), timelineEntry('r3', 3)] },
+ byId(ignored, result('r3')),
+ 3,
+ );
+
+ expect(overlay.userReview).toMatchObject({ action: 'ignore', roundIndex: 1, stale: false });
+ expect(overlay.reviews.map((entry) => entry.action)).toEqual(['ignore']);
+ });
+
it('a reject at the current round stands; a newer round demotes it to history', () => {
const rejected = result('r2', {
userDecision: 'rejected',
diff --git a/apps/server/src/services/verify/acceptanceService.ts b/apps/server/src/services/verify/acceptanceService.ts
index 973de13f34b..687afff1b96 100644
--- a/apps/server/src/services/verify/acceptanceService.ts
+++ b/apps/server/src/services/verify/acceptanceService.ts
@@ -248,8 +248,8 @@ export const buildAcceptanceCheckUnion = (rounds: RoundInput[]): AcceptanceCheck
// ============================================
// User review overlay — the per-check human verdict layered onto the union.
-// An accept is sticky across rounds; a reject binds to the round it judged and
-// demotes to iteration history once a newer round lands.
+// An accept or ignore is sticky across rounds; a reject binds to the round it
+// judged and demotes to iteration history once a newer round lands.
// ============================================
/** The standing user verdict on one union row, derived from its result rows. */
@@ -310,10 +310,14 @@ export const buildCheckReviewOverlay = (
for (const entry of check.timeline) {
const result = resultsById.get(entry.resultId);
const decision = result?.userDecision;
- if (!result || (decision !== 'accepted' && decision !== 'rejected')) continue;
+ if (
+ !result ||
+ (decision !== 'accepted' && decision !== 'rejected' && decision !== 'overridden')
+ )
+ continue;
const detail = result.userDecisionDetail ?? undefined;
reviews.push({
- action: decision === 'accepted' ? 'accept' : 'reject',
+ action: decision === 'accepted' ? 'accept' : decision === 'overridden' ? 'ignore' : 'reject',
annotations: detail?.annotations,
comment: detail?.comment,
createdAt: detail?.decidedAt ?? (result.completedAt ?? result.createdAt)?.toISOString() ?? '',
@@ -596,7 +600,12 @@ export class AcceptanceService {
throw new Error(`Check(s) never executed — nothing to review: ${notExecuted.join(', ')}`);
}
- const decision = input.action === 'accept' ? 'accepted' : 'rejected';
+ const decision =
+ input.action === 'accept'
+ ? 'accepted'
+ : input.action === 'ignore'
+ ? 'overridden'
+ : 'rejected';
const currentRoundIndex = runs.at(-1)?.roundIndex ?? 0;
const detail: VerifyCheckDecisionDetail = {
decidedAt: new Date().toISOString(),
diff --git a/locales/en-US/verify.json b/locales/en-US/verify.json
index d8dac454e04..5ee9a371f03 100644
--- a/locales/en-US/verify.json
+++ b/locales/en-US/verify.json
@@ -30,12 +30,36 @@
"acceptance.bar.rerun": "Fix",
"acceptance.bar.rerunDrafted": "Drafted into your composer — review and send it.",
"acceptance.bar.rerunSent": "Sent to the origin conversation — the repair round is starting.",
+ "acceptance.checkCreate.add": "Add checks",
+ "acceptance.checkCreate.addToScope": "Add to acceptance scope",
+ "acceptance.checkCreate.empty": "All checks in this rubric are already in scope.",
+ "acceptance.checkCreate.loading": "Loading rubric checks…",
+ "acceptance.checkCreate.manual": "Create manually",
+ "acceptance.checkCreate.pendingDescription": "Waiting for its first verification round",
+ "acceptance.checkCreate.pendingGroup": "Waiting for first verification",
+ "acceptance.checkCreate.pendingGroupDescription": "These checks remain editable until a verification round publishes evidence.",
+ "acceptance.checkCreate.previewHint": "After adding, this check will appear under “Waiting for first verification” and can still be edited.",
+ "acceptance.checkCreate.previewState": "Waiting for first verification",
+ "acceptance.checkCreate.previewTitle": "Untitled check",
+ "acceptance.checkCreate.rubric": "From rubric",
+ "acceptance.checkCreate.saved": "Checks added to the acceptance scope",
+ "acceptance.checkCreate.selectRubric": "Select a rubric",
+ "acceptance.checkCreate.selectedCount": "{{count}} rubric checks selected",
+ "acceptance.checkCreate.title": "Add check",
+ "acceptance.checkWork.action": "Ask AI to handle this check",
+ "acceptance.checkWork.copied": "Check-specific instruction copied",
+ "acceptance.checkWork.copy": "Copy check instruction",
+ "acceptance.checkWork.description": "Send this check, its evidence, and its feedback to the source conversation as one bounded work item.",
+ "acceptance.checkWork.drafted": "Check-specific instruction drafted",
+ "acceptance.checkWork.sent": "This check was sent to the source conversation",
+ "acceptance.checkWork.title": "Work on this check",
"acceptance.checks.allAccepted.desc": "Nice work — every acceptance check has been signed off.",
"acceptance.checks.allAccepted.title": "All checks accepted 🎉",
"acceptance.checks.copied": "Copied",
"acceptance.checks.copySeq": "Copy the check label",
"acceptance.checks.empty": "No acceptance checks recorded yet",
"acceptance.checks.emptyFilter.accepted": "No checks accepted yet",
+ "acceptance.checks.emptyFilter.ignored": "No checks ignored",
"acceptance.checks.emptyFilter.needsFix": "No checks marked for fixing",
"acceptance.checks.emptyFilter.pending": "No checks left to review",
"acceptance.checks.finalRoundHint": "The final result and evidence come from this round — click to locate it.",
@@ -65,11 +89,22 @@
"acceptance.feedback.title": "Feedback",
"acceptance.filter.accepted": "Accepted {{count}}",
"acceptance.filter.all": "All {{count}}",
+ "acceptance.filter.ignored": "Ignored {{count}}",
"acceptance.filter.needsFix": "Needs fix {{count}}",
"acceptance.filter.pending": "To review {{count}}",
"acceptance.filter.roundAll": "All rounds",
"acceptance.focus.back": "Back to overview",
+ "acceptance.focus.evidenceCount": "{{count}} evidence items",
"acceptance.focus.evidenceHint": "Review the acceptance criterion, evidence, and feedback for this check.",
+ "acceptance.focus.state.accepted": "Accepted",
+ "acceptance.focus.state.ignored": "Ignored",
+ "acceptance.focus.state.needsFix": "Needs fix",
+ "acceptance.focus.state.pending": "To review",
+ "acceptance.focus.verifierDescription.failed": "The verifier found that this check did not meet its acceptance criterion. Review the result and evidence before deciding.",
+ "acceptance.focus.verifierDescription.notExecuted": "This check was not executed, so there is no verifier result or evidence to accept.",
+ "acceptance.focus.verifierDescription.passed": "The verifier found that this check met its acceptance criterion. Review the evidence before accepting it.",
+ "acceptance.focus.verifierDescription.uncertain": "The verifier could not reach a confident result. Review the available evidence before deciding.",
+ "acceptance.focus.verifierLabel": "Verifier",
"acceptance.goalCollapse": "Collapse the acceptance goal",
"acceptance.goalEdit": "Edit the acceptance goal",
"acceptance.goalExpand": "Expand the acceptance goal",
@@ -87,6 +122,7 @@
"acceptance.group.feedbackPlaceholder": "What should change about this area, and what do you expect…",
"acceptance.group.feedbackSubmit": "Submit feedback",
"acceptance.group.feedbackTitle": "Group feedback",
+ "acceptance.group.ignoredCount": "{{count}} ignored",
"acceptance.group.passRatio": "{{passed}}/{{total}} passed",
"acceptance.group.rejectedCount": "{{count}} sent back",
"acceptance.group.uncategorized": "Other requirements",
@@ -125,6 +161,8 @@
"acceptance.review.feedbackLabel": "Feedback",
"acceptance.review.fullscreen": "Annotate fullscreen",
"acceptance.review.fullscreenDone": "Done annotating",
+ "acceptance.review.ignore": "Ignore",
+ "acceptance.review.ignoredNote": "Ignored · {{time}}",
"acceptance.review.regionComments": "Region comments",
"acceptance.review.regionCommentsEmpty": "Drag on the image to circle a region — its comment lands here.",
"acceptance.review.reject": "Reject with comment",
@@ -210,7 +248,6 @@
"acceptance.workspace.filters.all": "All acceptances",
"acceptance.workspace.filters.completed": "Completed",
"acceptance.workspace.filters.empty.active": "No acceptances in progress.",
- "acceptance.workspace.filters.empty.all": "No acceptances yet.",
"acceptance.workspace.filters.empty.completed": "No completed acceptances.",
"acceptance.workspace.filters.noSearchResults": "No acceptances match “{{query}}”.",
"acceptance.workspace.filters.showAll": "Show all acceptances",
@@ -222,7 +259,7 @@
"acceptance.workspace.renameSuccess": "Renamed",
"acceptance.workspace.statusError": "Failed to update status",
"acceptance.workspace.statusSuccess": "Status updated",
- "acceptance.workspace.title": "Acceptance",
+ "acceptance.workspace.title": "Deliveries",
"badge.errored": "Check could not run",
"badge.failed": "Check failed",
"badge.passed": "Check passed",
diff --git a/locales/zh-CN/verify.json b/locales/zh-CN/verify.json
index 0255b7295d3..12830839ab3 100644
--- a/locales/zh-CN/verify.json
+++ b/locales/zh-CN/verify.json
@@ -30,12 +30,36 @@
"acceptance.bar.rerun": "打回重跑",
"acceptance.bar.rerunDrafted": "已填入对话框,检查后发送。",
"acceptance.bar.rerunSent": "已发送到源会话,修复轮次启动中。",
+ "acceptance.checkCreate.add": "添加检查项",
+ "acceptance.checkCreate.addToScope": "加入验收范围",
+ "acceptance.checkCreate.empty": "这个 Rubric 中的检查项都已在验收范围内。",
+ "acceptance.checkCreate.loading": "正在加载 Rubric 检查项…",
+ "acceptance.checkCreate.manual": "手动创建",
+ "acceptance.checkCreate.pendingDescription": "等待首次验证轮次",
+ "acceptance.checkCreate.pendingGroup": "待首次验证",
+ "acceptance.checkCreate.pendingGroupDescription": "验证轮次发布证据前,这些检查项仍可编辑。",
+ "acceptance.checkCreate.previewHint": "添加后会进入「待首次验证」,你仍可继续编辑。",
+ "acceptance.checkCreate.previewState": "待首次验证",
+ "acceptance.checkCreate.previewTitle": "未命名检查项",
+ "acceptance.checkCreate.rubric": "从 Rubric 创建",
+ "acceptance.checkCreate.saved": "检查项已加入验收范围",
+ "acceptance.checkCreate.selectRubric": "选择一个 Rubric",
+ "acceptance.checkCreate.selectedCount": "已选择 {{count}} 个 Rubric 检查项",
+ "acceptance.checkCreate.title": "添加检查项",
+ "acceptance.checkWork.action": "让 AI 处理此项",
+ "acceptance.checkWork.copied": "已复制单项处理指令",
+ "acceptance.checkWork.copy": "复制单项处理指令",
+ "acceptance.checkWork.description": "把这一项的标准、证据和反馈作为一个边界明确的工作项发送到来源会话。",
+ "acceptance.checkWork.drafted": "单项处理指令已写入输入框",
+ "acceptance.checkWork.sent": "已将这一项发送到来源会话",
+ "acceptance.checkWork.title": "处理此项",
"acceptance.checks.allAccepted.desc": "太棒了,所有验收项都已通过 🎉",
"acceptance.checks.allAccepted.title": "已全部验收",
"acceptance.checks.copied": "已复制",
"acceptance.checks.copySeq": "复制检查项序号",
"acceptance.checks.empty": "尚未记录验收检查项",
"acceptance.checks.emptyFilter.accepted": "还没有已验收的检查项",
+ "acceptance.checks.emptyFilter.ignored": "没有已忽略的检查项",
"acceptance.checks.emptyFilter.needsFix": "没有待修复的检查项",
"acceptance.checks.emptyFilter.pending": "没有待验收的检查项",
"acceptance.checks.finalRoundHint": "最终结果与证据来自该轮,点击查看",
@@ -65,11 +89,22 @@
"acceptance.feedback.title": "反馈清单",
"acceptance.filter.accepted": "已验收 {{count}}",
"acceptance.filter.all": "全部 {{count}}",
+ "acceptance.filter.ignored": "已忽略 {{count}}",
"acceptance.filter.needsFix": "待修复 {{count}}",
"acceptance.filter.pending": "未验收 {{count}}",
"acceptance.filter.roundAll": "全部轮次",
"acceptance.focus.back": "返回验收概览",
+ "acceptance.focus.evidenceCount": "{{count}} 份证据",
"acceptance.focus.evidenceHint": "集中检查该项的验收标准、证据和反馈。",
+ "acceptance.focus.state.accepted": "已验收",
+ "acceptance.focus.state.ignored": "已忽略",
+ "acceptance.focus.state.needsFix": "待修复",
+ "acceptance.focus.state.pending": "未验收",
+ "acceptance.focus.verifierDescription.failed": "验证器判定该检查项未达到验收标准。请查看结果和证据后再做决定。",
+ "acceptance.focus.verifierDescription.notExecuted": "该检查项尚未执行,因此没有可供验收的验证结果或证据。",
+ "acceptance.focus.verifierDescription.passed": "验证器判定该检查项已达到验收标准。请查看证据后再确认验收。",
+ "acceptance.focus.verifierDescription.uncertain": "验证器暂时无法得出可信结论。请查看现有证据后再做决定。",
+ "acceptance.focus.verifierLabel": "验证器",
"acceptance.goalCollapse": "收起验收目标",
"acceptance.goalEdit": "编辑验收目标",
"acceptance.goalExpand": "展开验收目标",
@@ -87,6 +122,7 @@
"acceptance.group.feedbackPlaceholder": "这一块整体有什么问题、你期望的是什么…",
"acceptance.group.feedbackSubmit": "提交反馈",
"acceptance.group.feedbackTitle": "分组反馈",
+ "acceptance.group.ignoredCount": "{{count}} 已忽略",
"acceptance.group.passRatio": "{{passed}}/{{total}} 通过",
"acceptance.group.rejectedCount": "{{count}} 已打回",
"acceptance.group.uncategorized": "其他需求",
@@ -125,6 +161,8 @@
"acceptance.review.feedbackLabel": "反馈",
"acceptance.review.fullscreen": "全屏标注",
"acceptance.review.fullscreenDone": "完成标注",
+ "acceptance.review.ignore": "忽略",
+ "acceptance.review.ignoredNote": "已于 {{time}} 忽略,不再参与验收",
"acceptance.review.regionComments": "圈选评论",
"acceptance.review.regionCommentsEmpty": "在左侧图片上拖拽圈出区域,评论会出现在这里。",
"acceptance.review.reject": "拒绝并评论",
@@ -210,7 +248,6 @@
"acceptance.workspace.filters.all": "全部验收",
"acceptance.workspace.filters.completed": "已完成",
"acceptance.workspace.filters.empty.active": "暂无进行中的验收。",
- "acceptance.workspace.filters.empty.all": "暂无验收记录。",
"acceptance.workspace.filters.empty.completed": "暂无已完成的验收。",
"acceptance.workspace.filters.noSearchResults": "没有与「{{query}}」匹配的验收。",
"acceptance.workspace.filters.showAll": "显示全部验收",
@@ -222,7 +259,7 @@
"acceptance.workspace.renameSuccess": "已重命名",
"acceptance.workspace.statusError": "状态更新失败",
"acceptance.workspace.statusSuccess": "状态已更新",
- "acceptance.workspace.title": "Acceptance",
+ "acceptance.workspace.title": "交付",
"badge.errored": "检查无法运行",
"badge.failed": "检查未通过",
"badge.passed": "检查通过",
diff --git a/packages/const/src/verify.ts b/packages/const/src/verify.ts
index 91a6a44589f..a8cf0914bbb 100644
--- a/packages/const/src/verify.ts
+++ b/packages/const/src/verify.ts
@@ -165,11 +165,12 @@ export const acceptanceStatuses = [
export type AcceptanceStatus = (typeof acceptanceStatuses)[number];
/**
- * The user's per-check verdict on the acceptance union. `accept` is sticky —
- * an accepted check stays settled across later rounds; `reject` binds to the
- * round it was made on and becomes iteration history once a newer round lands.
+ * The user's per-check verdict on the acceptance union. `accept` and `ignore`
+ * are sticky — both settle the check across later rounds; `reject` binds to
+ * the round it was made on and becomes iteration history once a newer round
+ * lands.
*/
-export const acceptanceCheckReviewActions = ['accept', 'reject'] as const;
+export const acceptanceCheckReviewActions = ['accept', 'ignore', 'reject'] as const;
export type AcceptanceCheckReviewAction = (typeof acceptanceCheckReviewActions)[number];
/** The medium of a captured evidence artifact. */
diff --git a/packages/locales/src/default/verify.ts b/packages/locales/src/default/verify.ts
index be0d3bdc750..f4febf0c76b 100644
--- a/packages/locales/src/default/verify.ts
+++ b/packages/locales/src/default/verify.ts
@@ -44,6 +44,7 @@ export default {
'acceptance.checks.copySeq': 'Copy the check label',
'acceptance.checks.empty': 'No acceptance checks recorded yet',
'acceptance.checks.emptyFilter.accepted': 'No checks accepted yet',
+ 'acceptance.checks.emptyFilter.ignored': 'No checks ignored',
'acceptance.checks.emptyFilter.needsFix': 'No checks marked for fixing',
'acceptance.checks.emptyFilter.pending': 'No checks left to review',
'acceptance.checks.finalRoundHint':
@@ -77,12 +78,53 @@ export default {
'acceptance.feedback.title': 'Feedback',
'acceptance.filter.accepted': 'Accepted {{count}}',
'acceptance.filter.all': 'All {{count}}',
+ 'acceptance.filter.ignored': 'Ignored {{count}}',
'acceptance.filter.needsFix': 'Needs fix {{count}}',
'acceptance.filter.pending': 'To review {{count}}',
'acceptance.filter.roundAll': 'All rounds',
+ 'acceptance.checkCreate.add': 'Add checks',
+ 'acceptance.checkCreate.addToScope': 'Add to acceptance scope',
+ 'acceptance.checkCreate.empty': 'All checks in this rubric are already in scope.',
+ 'acceptance.checkCreate.loading': 'Loading rubric checks…',
+ 'acceptance.checkCreate.manual': 'Create manually',
+ 'acceptance.checkCreate.pendingDescription': 'Waiting for its first verification round',
+ 'acceptance.checkCreate.pendingGroup': 'Waiting for first verification',
+ 'acceptance.checkCreate.pendingGroupDescription':
+ 'These checks remain editable until a verification round publishes evidence.',
+ 'acceptance.checkCreate.previewHint':
+ 'After adding, this check will appear under “Waiting for first verification” and can still be edited.',
+ 'acceptance.checkCreate.previewState': 'Waiting for first verification',
+ 'acceptance.checkCreate.previewTitle': 'Untitled check',
+ 'acceptance.checkCreate.selectedCount': '{{count}} rubric checks selected',
+ 'acceptance.checkCreate.rubric': 'From rubric',
+ 'acceptance.checkCreate.saved': 'Checks added to the acceptance scope',
+ 'acceptance.checkCreate.selectRubric': 'Select a rubric',
+ 'acceptance.checkCreate.title': 'Add check',
+ 'acceptance.checkWork.action': 'Ask AI to handle this check',
+ 'acceptance.checkWork.copied': 'Check-specific instruction copied',
+ 'acceptance.checkWork.copy': 'Copy check instruction',
+ 'acceptance.checkWork.description':
+ 'Send this check, its evidence, and its feedback to the source conversation as one bounded work item.',
+ 'acceptance.checkWork.drafted': 'Check-specific instruction drafted',
+ 'acceptance.checkWork.sent': 'This check was sent to the source conversation',
+ 'acceptance.checkWork.title': 'Work on this check',
'acceptance.focus.back': 'Back to overview',
+ 'acceptance.focus.evidenceCount': '{{count}} evidence items',
'acceptance.focus.evidenceHint':
'Review the acceptance criterion, evidence, and feedback for this check.',
+ 'acceptance.focus.state.accepted': 'Accepted',
+ 'acceptance.focus.state.ignored': 'Ignored',
+ 'acceptance.focus.state.needsFix': 'Needs fix',
+ 'acceptance.focus.state.pending': 'To review',
+ 'acceptance.focus.verifierDescription.failed':
+ 'The verifier found that this check did not meet its acceptance criterion. Review the result and evidence before deciding.',
+ 'acceptance.focus.verifierDescription.notExecuted':
+ 'This check was not executed, so there is no verifier result or evidence to accept.',
+ 'acceptance.focus.verifierDescription.passed':
+ 'The verifier found that this check met its acceptance criterion. Review the evidence before accepting it.',
+ 'acceptance.focus.verifierDescription.uncertain':
+ 'The verifier could not reach a confident result. Review the available evidence before deciding.',
+ 'acceptance.focus.verifierLabel': 'Verifier',
'acceptance.goalCollapse': 'Collapse the acceptance goal',
'acceptance.goalEdit': 'Edit the acceptance goal',
'acceptance.goalExpand': 'Expand the acceptance goal',
@@ -94,6 +136,7 @@ export default {
'acceptance.group.expandAll': 'Expand groups',
'acceptance.group.expandItems': 'Expand checks in this group',
'acceptance.group.failedCount': '{{count}} failing',
+ 'acceptance.group.ignoredCount': '{{count}} ignored',
'acceptance.group.feedbackAction': 'Add group feedback',
'acceptance.group.feedbackDescription':
'Feedback on “{{label}}” as a whole — for concerns no single check covers. The next verification round reads it.',
@@ -140,6 +183,8 @@ export default {
'acceptance.review.feedbackLabel': 'Feedback',
'acceptance.review.fullscreen': 'Annotate fullscreen',
'acceptance.review.fullscreenDone': 'Done annotating',
+ 'acceptance.review.ignore': 'Ignore',
+ 'acceptance.review.ignoredNote': 'Ignored · {{time}}',
'acceptance.review.regionComments': 'Region comments',
'acceptance.review.regionCommentsEmpty':
'Drag on the image to circle a region — its comment lands here.',
@@ -235,7 +280,6 @@ export default {
'acceptance.workspace.filters.all': 'All acceptances',
'acceptance.workspace.filters.completed': 'Completed',
'acceptance.workspace.filters.empty.active': 'No acceptances in progress.',
- 'acceptance.workspace.filters.empty.all': 'No acceptances yet.',
'acceptance.workspace.filters.empty.completed': 'No completed acceptances.',
'acceptance.workspace.filters.noSearchResults': 'No acceptances match “{{query}}”.',
'acceptance.workspace.filters.showAll': 'Show all acceptances',
@@ -248,7 +292,7 @@ export default {
'acceptance.workspace.renameSuccess': 'Renamed',
'acceptance.workspace.statusError': 'Failed to update status',
'acceptance.workspace.statusSuccess': 'Status updated',
- 'acceptance.workspace.title': 'Acceptance',
+ 'acceptance.workspace.title': 'Deliveries',
'report.actions.copyLink': 'Copy link',
'report.actions.copyLinkSuccess': 'Link copied',
'report.actions.openInBrowser': 'Open in browser',
diff --git a/packages/types/src/verify.ts b/packages/types/src/verify.ts
index 8c3b88c60c4..7e0ff356a43 100644
--- a/packages/types/src/verify.ts
+++ b/packages/types/src/verify.ts
@@ -162,11 +162,12 @@ export interface AcceptanceMetadata {
}
/**
- * The user's per-check verdict on the acceptance union. `accept` is sticky —
- * an accepted check stays settled across later rounds; `reject` binds to the
- * round it was made on and becomes iteration history once a newer round lands.
+ * The user's per-check verdict on the acceptance union. `accept` and `ignore`
+ * are sticky — both settle the check across later rounds; `reject` binds to
+ * the round it was made on and becomes iteration history once a newer round
+ * lands.
*/
-export type AcceptanceCheckReviewAction = 'accept' | 'reject';
+export type AcceptanceCheckReviewAction = 'accept' | 'ignore' | 'reject';
/**
* A user-drawn region on one evidence image, in coordinates normalized to the
diff --git a/src/features/Verify/Acceptance/AddCheckModal.tsx b/src/features/Verify/Acceptance/AddCheckModal.tsx
new file mode 100644
index 00000000000..11f325d78fd
--- /dev/null
+++ b/src/features/Verify/Acceptance/AddCheckModal.tsx
@@ -0,0 +1,211 @@
+'use client';
+
+import type { AcceptanceChecklistItem } from '@lobechat/types';
+import { Flexbox, Icon, Input, Text, TextArea } from '@lobehub/ui';
+import {
+ Button,
+ createModal,
+ type ModalInstance,
+ Segmented,
+ Select,
+ useModalContext,
+} from '@lobehub/ui/base-ui';
+import { cssVar } from 'antd-style';
+import { t } from 'i18next';
+import { Check, CircleDashed, Plus } from 'lucide-react';
+import { memo, useMemo, useState } from 'react';
+import { useTranslation } from 'react-i18next';
+
+import { useRubricCriteria, useRubrics } from '../hooks';
+
+interface AddCheckContentProps {
+ existingIds: string[];
+ onSubmit: (items: AcceptanceChecklistItem[]) => Promise<void>;
+}
+
+const AddCheckContent = memo<AddCheckContentProps>(({ existingIds, onSubmit }) => {
+ const { t: tv } = useTranslation('verify');
+ const { close } = useModalContext();
+ const [mode, setMode] = useState<'manual' | 'rubric'>('manual');
+ const [name, setName] = useState('');
+ const [method, setMethod] = useState('');
+ const [rubricId, setRubricId] = useState<string>();
+ const [selectedIds, setSelectedIds] = useState<Set<string>>(() => new Set());
+ const [saving, setSaving] = useState(false);
+ const { data: rubrics, isLoading: rubricsLoading } = useRubrics(mode === 'rubric');
+ const { data: criteria, isLoading: criteriaLoading } = useRubricCriteria(rubricId);
+ const availableCriteria = useMemo(
+ () => (criteria ?? []).filter((criterion) => !existingIds.includes(criterion.id)),
+ [criteria, existingIds],
+ );
+
+ const handleSave = async () => {
+ if (saving) return;
+ const items =
+ mode === 'manual'
+ ? [{ id: crypto.randomUUID(), method: method.trim() || undefined, name: name.trim() }]
+ : availableCriteria
+ .filter((criterion) => selectedIds.has(criterion.id))
+ .map((criterion) => ({
+ id: criterion.id,
+ method: criterion.description ?? undefined,
+ name: criterion.title,
+ }));
+ if (items.length === 0 || !items[0]?.name) return;
+ setSaving(true);
+ try {
+ await onSubmit(items);
+ close();
+ } finally {
+ setSaving(false);
+ }
+ };
+
+ const canSave =
+ mode === 'manual' ? Boolean(name.trim()) : Boolean(rubricId && selectedIds.size > 0);
+
+ return (
+ <Flexbox gap={16}>
+ <Segmented
+ block
+ value={mode}
+ options={[
+ { label: tv('acceptance.checkCreate.manual'), value: 'manual' },
+ { label: tv('acceptance.checkCreate.rubric'), value: 'rubric' },
+ ]}
+ onChange={(value) => setMode(value as 'manual' | 'rubric')}
+ />
+ {mode === 'manual' ? (
+ <>
+ <Flexbox gap={6}>
+ <Text fontSize={12} type={'secondary'}>
+ {tv('acceptance.tray.editModal.nameLabel')}
+ </Text>
+ <Input
+ placeholder={tv('acceptance.tray.editModal.namePlaceholder')}
+ value={name}
+ onChange={(event) => setName(event.target.value)}
+ />
+ </Flexbox>
+ <Flexbox gap={6}>
+ <Text fontSize={12} type={'secondary'}>
+ {tv('acceptance.tray.editModal.methodLabel')}
+ </Text>
+ <TextArea
+ autoSize={{ maxRows: 4, minRows: 2 }}
+ placeholder={tv('acceptance.tray.editModal.methodPlaceholder')}
+ value={method}
+ onChange={(event) => setMethod(event.target.value)}
+ />
+ </Flexbox>
+ </>
+ ) : (
+ <Flexbox gap={12}>
+ <Select
+ loading={rubricsLoading}
+ options={(rubrics ?? []).map((rubric) => ({ label: rubric.title, value: rubric.id }))}
+ placeholder={tv('acceptance.checkCreate.selectRubric')}
+ value={rubricId}
+ onChange={(value) => {
+ setRubricId(value);
+ setSelectedIds(new Set());
+ }}
+ />
+ {rubricId && (
+ <Flexbox gap={4}>
+ {criteriaLoading ? (
+ <Text type={'secondary'}>{tv('acceptance.checkCreate.loading')}</Text>
+ ) : availableCriteria.length === 0 ? (
+ <Text type={'secondary'}>{tv('acceptance.checkCreate.empty')}</Text>
+ ) : (
+ availableCriteria.map((criterion) => {
+ const selected = selectedIds.has(criterion.id);
+ return (
+ <Button
+ key={criterion.id}
+ style={{ height: 'auto', justifyContent: 'flex-start', padding: 10 }}
+ type={selected ? 'primary' : 'default'}
+ onClick={() =>
+ setSelectedIds((previous) => {
+ const next = new Set(previous);
+ if (selected) next.delete(criterion.id);
+ else next.add(criterion.id);
+ return next;
+ })
+ }
+ >
+ <Flexbox horizontal align={'flex-start'} gap={8}>
+ <Icon icon={selected ? Check : Plus} size={14} />
+ <Flexbox align={'flex-start'} gap={2}>
+ <Text>{criterion.title}</Text>
+ {criterion.description && (
+ <Text fontSize={12} type={'secondary'}>
+ {criterion.description}
+ </Text>
+ )}
+ </Flexbox>
+ </Flexbox>
+ </Button>
+ );
+ })
+ )}
+ </Flexbox>
+ )}
+ </Flexbox>
+ )}
+ <Flexbox
+ gap={6}
+ padding={12}
+ style={{
+ background: cssVar.colorFillQuaternary,
+ border: `1px solid ${cssVar.colorBorderSecondary}`,
+ borderRadius: 8,
+ }}
+ >
+ <Flexbox horizontal align={'center'} gap={6}>
+ <Icon icon={CircleDashed} size={14} />
+ <Text fontSize={12} type={'secondary'}>
+ {tv('acceptance.checkCreate.previewState')}
+ </Text>
+ </Flexbox>
+ <Text strong>
+ {mode === 'manual'
+ ? name.trim() || tv('acceptance.checkCreate.previewTitle')
+ : tv('acceptance.checkCreate.selectedCount', { count: selectedIds.size })}
+ </Text>
+ {mode === 'manual' && method.trim() && (
+ <Text fontSize={12} type={'secondary'}>
+ {method.trim()}
+ </Text>
+ )}
+ <Text fontSize={12} type={'secondary'}>
+ {tv('acceptance.checkCreate.previewHint')}
+ </Text>
+ </Flexbox>
+ <Flexbox horizontal gap={8} justify={'flex-end'}>
+ <Button disabled={saving} onClick={close}>
+ {tv('acceptance.actions.cancel')}
+ </Button>
+ <Button
+ disabled={!canSave || saving}
+ loading={saving}
+ type={'primary'}
+ onClick={handleSave}
+ >
+ {tv('acceptance.checkCreate.addToScope')}
+ </Button>
+ </Flexbox>
+ </Flexbox>
+ );
+});
+
+AddCheckContent.displayName = 'AcceptanceAddCheckContent';
+
+export const openAddCheckModal = (props: AddCheckContentProps): ModalInstance =>
+ createModal({
+ content: <AddCheckContent {...props} />,
+ footer: null,
+ maskClosable: true,
+ title: t('acceptance.checkCreate.title', { ns: 'verify' }),
+ width: 'min(90vw, 560px)',
+ });
diff --git a/src/features/Verify/Acceptance/CheckList.test.ts b/src/features/Verify/Acceptance/CheckList.test.ts
index 3301a88f793..9e185300227 100644
--- a/src/features/Verify/Acceptance/CheckList.test.ts
+++ b/src/features/Verify/Acceptance/CheckList.test.ts
@@ -1,6 +1,12 @@
import { describe, expect, it } from 'vitest';
-import { type AcceptanceCheck, checkFilterState, groupChecks, userReviewState } from './CheckList';
+import {
+ type AcceptanceCheck,
+ checkFilterState,
+ focusedCheckStates,
+ groupChecks,
+ userReviewState,
+} from './CheckList';
const check = (id: string, category: string | null, surface: AcceptanceCheck['surface']) =>
({ category, id, surface }) as AcceptanceCheck;
@@ -62,6 +68,19 @@ describe('userReviewState', () => {
).toBe('accepted');
});
+ it('an ignore stays out of the review queue across rounds', () => {
+ expect(
+ userReviewState(
+ withReview({
+ action: 'ignore',
+ createdAt: '2026-07-16T00:00:00.000Z',
+ roundIndex: 1,
+ stale: false,
+ }),
+ ),
+ ).toBe('ignored');
+ });
+
it('a reject stands until a newer round consumes it, then reverts to pending', () => {
const reject = {
action: 'reject' as const,
@@ -123,4 +142,35 @@ describe('checkFilterState', () => {
),
).toBe('accepted');
});
+
+ it('ignored when you removed the check from the acceptance scope', () => {
+ expect(
+ checkFilterState(
+ make('failed', {
+ action: 'ignore',
+ createdAt: '2026-07-16T00:00:00.000Z',
+ roundIndex: 1,
+ stale: false,
+ }),
+ ),
+ ).toBe('ignored');
+ });
+});
+
+describe('focusedCheckStates', () => {
+ it.each([
+ ['failed', 'failed'],
+ ['uncertain', 'uncertain'],
+ ['not_executed', 'notExecuted'],
+ ['passed', 'passed'],
+ ] as const)(
+ 'preserves the %s verifier result while the user review remains pending',
+ (verifier, verifierLabel) => {
+ expect(focusedCheckStates({ state: verifier } as AcceptanceCheck)).toEqual({
+ review: 'pending',
+ verifier,
+ verifierLabel,
+ });
+ },
+ );
});
diff --git a/src/features/Verify/Acceptance/CheckList.tsx b/src/features/Verify/Acceptance/CheckList.tsx
index 3afeefe147b..a7f1e3c0c5e 100644
--- a/src/features/Verify/Acceptance/CheckList.tsx
+++ b/src/features/Verify/Acceptance/CheckList.tsx
@@ -17,6 +17,7 @@ import { createStaticStyles, cssVar, cx } from 'antd-style';
import dayjs from 'dayjs';
import {
BadgeCheck,
+ Ban,
Check,
CheckCheck,
ChevronRight,
@@ -60,7 +61,7 @@ type AcceptanceCheckReviewEntry = AcceptanceCheck['reviews'][number];
/** What the user asked the page to record — the page owns the service call. */
export interface CheckReviewInput {
- action: 'accept' | 'reject';
+ action: 'accept' | 'ignore' | 'reject';
annotations?: AcceptanceReviewAnnotation[];
checkItemIds: string[];
comment?: string;
@@ -68,12 +69,13 @@ export interface CheckReviewInput {
}
/** The user's standing verdict on a check — `pending` means "awaiting your confirmation". */
-export type UserReviewState = 'accepted' | 'pending' | 'rejected';
+export type UserReviewState = 'accepted' | 'ignored' | 'pending' | 'rejected';
export const userReviewState = (check: AcceptanceCheck): UserReviewState => {
const review = check.userReview;
if (!review) return 'pending';
if (review.action === 'accept') return 'accepted';
+ if (review.action === 'ignore') return 'ignored';
return review.stale ? 'pending' : 'rejected';
};
@@ -497,6 +499,20 @@ const AcceptedNote = memo<{ review: AcceptanceCheckReviewEntry }>(({ review }) =
);
});
+const IgnoredNote = memo<{ review: AcceptanceCheckReviewEntry }>(({ review }) => {
+ const { t } = useTranslation('verify');
+ return (
+ <Flexbox horizontal align={'center'} gap={6}>
+ <Icon color={cssVar.colorTextQuaternary} icon={Ban} size={13} />
+ <Text fontSize={12} type={'secondary'}>
+ {t('acceptance.review.ignoredNote', {
+ time: dayjs(review.createdAt).format('MM-DD HH:mm'),
+ })}
+ </Text>
+ </Flexbox>
+ );
+});
+
/**
* One reject-feedback event: a small red marker line, then the note and the
* circled regions as plain content — no background wash. Used both as the
@@ -508,6 +524,7 @@ const FeedbackCard = memo<{
}>(({ evidenceById, review }) => {
const { t } = useTranslation('verify');
if (review.action === 'accept') return <AcceptedNote review={review} />;
+ if (review.action === 'ignore') return <IgnoredNote review={review} />;
const groups = new Map<
string,
@@ -628,7 +645,11 @@ const IterationTimeline = memo<{
className={styles.stepDot}
style={{
borderColor:
- entry.review.action === 'accept' ? cssVar.colorSuccess : cssVar.colorError,
+ entry.review.action === 'accept'
+ ? cssVar.colorSuccess
+ : entry.review.action === 'ignore'
+ ? cssVar.colorTextQuaternary
+ : cssVar.colorError,
}}
/>
{!isLast && <div className={styles.stepRail} />}
@@ -740,6 +761,7 @@ const CheckRow = memo<{
const [historyOpen, setHistoryOpen] = useState(false);
const [seqCopied, setSeqCopied] = useState(false);
const [accepting, setAccepting] = useState(false);
+ const [ignoring, setIgnoring] = useState(false);
const meta = STATE_META[check.state];
const counts = evidenceCounts(check.evidence);
@@ -782,16 +804,31 @@ const CheckRow = memo<{
if (ok && expanded) onToggle();
};
+ const handleIgnore = async (event: { stopPropagation: () => void }) => {
+ event.stopPropagation();
+ setIgnoring(true);
+ const ok = await onReview({ action: 'ignore', checkItemIds: [check.id] });
+ setIgnoring(false);
+ if (ok && expanded) onToggle();
+ };
+
// The user's standing verdict owns the head slot: a reject replaces the
// verifier's mark outright (that check IS sent back, whatever the verifier
// said); passed + user-accepted merges into the double-check receipt.
const headIcon =
reviewState === 'rejected'
? MessageSquareX
- : check.state === 'passed' && reviewState === 'accepted'
- ? CheckCheck
- : meta.icon;
- const headColor = reviewState === 'rejected' ? cssVar.colorError : meta.color;
+ : reviewState === 'ignored'
+ ? Ban
+ : check.state === 'passed' && reviewState === 'accepted'
+ ? CheckCheck
+ : meta.icon;
+ const headColor =
+ reviewState === 'rejected'
+ ? cssVar.colorError
+ : reviewState === 'ignored'
+ ? cssVar.colorTextQuaternary
+ : meta.color;
const headIconNode = (
<Icon color={headColor} icon={headIcon} size={16} style={{ flex: 'none' }} />
@@ -871,6 +908,14 @@ const CheckRow = memo<{
title={t('acceptance.review.accept')}
onClick={handleAccept}
/>
+ <ActionIcon
+ disabled={reviewPending && !ignoring}
+ icon={Ban}
+ loading={ignoring}
+ size={'small'}
+ title={t('acceptance.review.ignore')}
+ onClick={handleIgnore}
+ />
<ActionIcon
disabled={reviewPending}
icon={MessageSquareX}
@@ -979,10 +1024,35 @@ const CheckRow = memo<{
)}
<EvidenceList evidence={check.evidence} />
+ {check.state === 'not_executed' && (
+ <Flexbox
+ horizontal
+ align={'center'}
+ gap={8}
+ paddingBlock={8}
+ paddingInline={10}
+ style={{
+ background: cssVar.colorFillQuaternary,
+ borderRadius: cssVar.borderRadius,
+ width: '100%',
+ }}
+ >
+ <Icon
+ color={cssVar.colorTextQuaternary}
+ icon={CircleDashed}
+ size={15}
+ style={{ flex: 'none' }}
+ />
+ <Text fontSize={12} type={'secondary'}>
+ {t('acceptance.focus.verifierDescription.notExecuted')}
+ </Text>
+ </Flexbox>
+ )}
+
{/* An executed check with zero artifacts must SAY so — a silent blank
under the verdict reads as a rendering bug, not as a fact. Filled
so it reads as a status, never as more description text. */}
- {check.result && check.evidence.length === 0 && (
+ {check.state !== 'not_executed' && check.result && check.evidence.length === 0 && (
<Flexbox
paddingBlock={6}
paddingInline={10}
@@ -1020,6 +1090,34 @@ const CheckRow = memo<{
</Button>
)}
</Flexbox>
+ ) : activeReview.action === 'ignore' ? (
+ <Flexbox horizontal align={'center'} gap={8}>
+ <IgnoredNote review={activeReview} />
+ {reviewable && (
+ <>
+ <Button
+ disabled={reviewPending}
+ size={'small'}
+ type={'text'}
+ onClick={(event) => {
+ event.stopPropagation();
+ openReject();
+ }}
+ >
+ {t('acceptance.review.revertToReject')}
+ </Button>
+ <Button
+ disabled={reviewPending && !accepting}
+ loading={accepting}
+ size={'small'}
+ type={'text'}
+ onClick={handleAccept}
+ >
+ {t('acceptance.review.revertToAccept')}
+ </Button>
+ </>
+ )}
+ </Flexbox>
) : (
<Flexbox gap={6}>
<FeedbackCard evidenceById={evidenceById} review={activeReview} />
@@ -1046,6 +1144,15 @@ const CheckRow = memo<{
quiet text escape next to it. */}
{reviewable && !activeReview && (
<Flexbox horizontal gap={4} justify={'flex-end'}>
+ <Button
+ disabled={reviewPending && !ignoring}
+ loading={ignoring}
+ size={'small'}
+ type={'text'}
+ onClick={handleIgnore}
+ >
+ {t('acceptance.review.ignore')}
+ </Button>
<Button
disabled={reviewPending}
size={'small'}
@@ -1143,15 +1250,23 @@ FocusedCheckDetails.displayName = 'FocusedCheckDetails';
* still 未验收: the verifier is unsure or the run is red, so it needs your eyes
* — not an automatic "needs fix" label you never asked for.
*/
-export type CheckFilter = 'all' | 'pending' | 'needsFix' | 'accepted';
+export type CheckFilter = 'all' | 'pending' | 'needsFix' | 'accepted' | 'ignored';
export const checkFilterState = (check: AcceptanceCheck): Exclude<CheckFilter, 'all'> => {
const review = userReviewState(check);
if (review === 'accepted') return 'accepted';
+ if (review === 'ignored') return 'ignored';
if (review === 'rejected') return 'needsFix';
return 'pending';
};
+/** Keep the verifier's result separate from the user's acceptance workflow state. */
+export const focusedCheckStates = (check: AcceptanceCheck) => ({
+ review: checkFilterState(check),
+ verifier: check.state,
+ verifierLabel: check.state === 'not_executed' ? ('notExecuted' as const) : check.state,
+});
+
interface CheckGroup {
checks: AcceptanceCheck[];
key: string;
@@ -1293,7 +1408,7 @@ const CheckList = memo<CheckListProps>(
// Only executed checks can be stamped — see the row-level gating.
const reviewableChecks = groupChecks_.filter((check) => check.result);
const unaccepted = reviewableChecks.filter(
- (check) => userReviewState(check) !== 'accepted',
+ (check) => !['accepted', 'ignored'].includes(userReviewState(check)),
);
// The header counts what the REVIEWER cares about: how many they
// signed off, how many the verifier flagged, how many they sent
@@ -1304,6 +1419,9 @@ const CheckList = memo<CheckListProps>(
const rejectedCount = reviewableChecks.filter(
(check) => userReviewState(check) === 'rejected',
).length;
+ const ignoredCount = reviewableChecks.filter(
+ (check) => userReviewState(check) === 'ignored',
+ ).length;
const exceptionCount = groupChecks_.filter((check) => isException(check)).length;
// Everything passed AND the user signed all of it off — the ratio
// itself turns into the green receipt, no separate right-side note.
@@ -1356,6 +1474,11 @@ const CheckList = memo<CheckListProps>(
{t('acceptance.group.rejectedCount', { count: rejectedCount })}
</Text>
)}
+ {ignoredCount > 0 && (
+ <Text fontSize={12} type={'secondary'}>
+ {t('acceptance.group.ignoredCount', { count: ignoredCount })}
+ </Text>
+ )}
</Flexbox>
)}
{/* Bulk accept sits by the ratio it settles, hover-revealed —
@@ -1386,7 +1509,7 @@ const CheckList = memo<CheckListProps>(
>
{t('acceptance.review.acceptAll')}
</Button>
- ) : allVerified ? null : (
+ ) : allVerified || ignoredCount > 0 ? null : (
// Fully signed off but not all green — the mixed-verdict
// receipt that can't fold into the ratio text.
<Flexbox
diff --git a/src/features/Verify/Acceptance/DecisionBar.tsx b/src/features/Verify/Acceptance/DecisionBar.tsx
index fdf4b4c30ba..add1f6427eb 100644
--- a/src/features/Verify/Acceptance/DecisionBar.tsx
+++ b/src/features/Verify/Acceptance/DecisionBar.tsx
@@ -130,6 +130,8 @@ interface DecisionBarProps {
embedded?: boolean;
/** Active (not-yet-consumed) feedback recorded this round. */
feedbackCount: number;
+ /** Checks removed from the acceptance scope by the reviewer. */
+ ignoredCount: number;
/** Checks the user reviewed as needing a fix (待修复) — decided, not pending. */
needsFixCount: number;
onAccept: () => void;
@@ -167,6 +169,7 @@ const DecisionBar = memo<DecisionBarProps>(
acceptedCount,
embedded,
feedbackCount,
+ ignoredCount,
needsFixCount,
onAccept,
onCopyReview,
@@ -195,11 +198,11 @@ const DecisionBar = memo<DecisionBarProps>(
settled: null,
}[state];
- const allConfirmed = totalCount > 0 && acceptedCount >= totalCount;
+ const allConfirmed = totalCount > 0 && acceptedCount + ignoredCount >= totalCount;
const hasFeedback = feedbackCount > 0;
// The dial tracks DECIDED checks (accepted + 待修复), so a fully-reviewed
// union reads as done even when some checks still need a fix.
- const decidedCount = acceptedCount + needsFixCount;
+ const decidedCount = acceptedCount + needsFixCount + ignoredCount;
// Every check reviewed, but some need a fix — a review outcome, not a
// success and not "still awaiting". Reads as an attention mark, never the
// near-complete progress dial that made the state look like an all-clear.
diff --git a/src/features/Verify/Acceptance/index.tsx b/src/features/Verify/Acceptance/index.tsx
index a99f24766db..f56f9b8688b 100644
--- a/src/features/Verify/Acceptance/index.tsx
+++ b/src/features/Verify/Acceptance/index.tsx
@@ -1,6 +1,6 @@
'use client';
-import type { VerifyCodingScope } from '@lobechat/types';
+import type { AcceptanceChecklistItem, VerifyCodingScope } from '@lobechat/types';
import {
ActionIcon,
Avatar,
@@ -20,6 +20,9 @@ import dayjs from 'dayjs';
import {
ArrowLeft,
BadgeCheck,
+ Ban,
+ Check,
+ ChevronRight,
ChevronsDownUp,
ChevronsUpDown,
CircleDashed,
@@ -31,8 +34,10 @@ import {
MessagesSquare,
PanelRightOpen,
PencilLine,
+ Plus,
RefreshCw,
RotateCcw,
+ XCircle,
} from 'lucide-react';
import { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
@@ -40,7 +45,9 @@ import { useParams, useSearchParams } from 'react-router';
import NeuralNetworkLoading from '@/components/NeuralNetworkLoading';
import AgentProfilePopup from '@/features/AgentProfileCard/AgentProfilePopup';
+import { openCheckEditModal } from '@/features/Conversation/ChatInput/VerifyTray/EditModal';
import { openGoalModal } from '@/features/Conversation/ChatInput/VerifyTray/GoalModal';
+import NavItem from '@/features/NavPanel/components/NavItem';
import { useLocalStorageState } from '@/hooks/useLocalStorageState';
// The workspace-scoped mutate — a bare `import { mutate } from 'swr'` misses
// every `useClientDataSWR` subscriber (augmented keys + custom cache provider).
@@ -52,11 +59,13 @@ import { useTaskStore } from '@/store/task';
import { useAcceptanceBundle } from '../hooks';
import ReportViewer from '../ReportViewer';
import { extractUuid, resolveRoundParam } from '../utils';
+import { openAddCheckModal } from './AddCheckModal';
import CheckList, {
type CheckFilter,
checkFilterState,
type CheckReviewInput,
FocusedCheckDetails,
+ focusedCheckStates,
groupChecks,
hasVisualEvidence,
isException,
@@ -82,6 +91,13 @@ lh acceptance feedback ${acceptanceId} --actionable
Every entry it prints (per-check comments, circled-region annotations on the evidence screenshots, and attachments) is the full set of feedback to handle this round. Fix the code item by item; then re-run verification and ingest the new result back into the SAME acceptance (reuse the existing check ids, and use supersedes for any check whose meaning changed). Keep the final report in the same language the previous rounds used.`;
+const buildCheckRepairPrompt = (
+ acceptanceId: string,
+ check: { id: string; seq: number; title: string },
+) => `${buildRepairPrompt(acceptanceId)}
+
+For this pass, focus on check C${check.seq} "${check.title}" (check id: ${check.id}). Treat it as the bounded work item: read its evidence and feedback, make the necessary change, and re-verify it without disturbing unrelated accepted or ignored checks.`;
+
const styles = createStaticStyles(({ css }) => ({
banner: css`
padding-block: 12px;
@@ -201,9 +217,8 @@ const styles = createStaticStyles(({ css }) => ({
`,
focusLayout: css`
display: grid;
- grid-template-columns: 264px minmax(0, 1fr);
- gap: 20px;
- align-items: start;
+ grid-template-columns: 320px minmax(0, 1fr);
+ min-height: calc(100vh - 40px);
@media (width <= 900px) {
grid-template-columns: 1fr;
@@ -213,39 +228,53 @@ const styles = createStaticStyles(({ css }) => ({
position: sticky;
inset-block-start: 0;
- overflow: hidden;
+ overflow: auto;
- border: 1px solid ${cssVar.colorBorderSecondary};
- border-radius: ${cssVar.borderRadiusLG};
+ height: calc(100vh - 40px);
+ padding: 8px;
+ border-inline-end: 1px solid ${cssVar.colorBorderSecondary};
- background: ${cssVar.colorBgContainer};
+ background: ${cssVar.colorFillQuaternary};
@media (width <= 900px) {
position: static;
+ height: auto;
+ border-block-end: 1px solid ${cssVar.colorBorderSecondary};
+ border-inline-end: 0;
}
`,
- focusOutlineItem: css`
- cursor: pointer;
-
- padding-block: 10px;
- padding-inline: 12px;
- border-block-start: 1px solid ${cssVar.colorBorderSecondary};
-
- transition: background ${cssVar.motionDurationMid};
-
- &:hover {
- background: ${cssVar.colorFillQuaternary};
- }
-
- &[data-active='true'] {
- background: ${cssVar.colorFillSecondary};
- }
+ focusMain: css`
+ min-width: 0;
+ padding-block: 4px 32px;
+ padding-inline: 32px;
+ `,
+ focusContent: css`
+ width: min(880px, 100%);
+ margin-inline: auto;
+ `,
+ focusWork: css`
+ padding: 16px;
+ border: 1px solid ${cssVar.colorBorderSecondary};
+ border-radius: ${cssVar.borderRadiusLG};
+ background: ${cssVar.colorFillQuaternary};
+ `,
+ standingPanel: css`
+ overflow: hidden;
+ border: 1px solid ${cssVar.colorBorderSecondary};
+ border-radius: ${cssVar.borderRadiusLG};
+ background: ${cssVar.colorBgContainer};
`,
}));
/** Aggregate states in which the round chain is still executing. */
const LIVE_STATUSES = new Set(['pending', 'planned', 'verifying', 'repairing']);
const GOAL_COLLAPSED_STORAGE_KEY = 'lobehub-acceptance-goal-collapsed';
+const CHECK_REVIEW_ORDER: Record<Exclude<CheckFilter, 'all'>, number> = {
+ pending: 0,
+ needsFix: 1,
+ accepted: 2,
+ ignored: 3,
+};
interface AcceptancePageProps {
/**
@@ -299,9 +328,9 @@ const AcceptancePage = memo<AcceptancePageProps>(
const focusedCheckId = isEmbedded ? null : searchParams.get('check');
const [localFilter, setLocalFilter] = useState<CheckFilter>('all');
const urlFilterRaw = searchParams.get('filter');
- const urlFilter: CheckFilter = (['all', 'pending', 'needsFix', 'accepted'] as const).includes(
- urlFilterRaw as CheckFilter,
- )
+ const urlFilter: CheckFilter = (
+ ['all', 'pending', 'needsFix', 'accepted', 'ignored'] as const
+ ).includes(urlFilterRaw as CheckFilter)
? (urlFilterRaw as CheckFilter)
: 'all';
const filter = isEmbedded ? localFilter : urlFilter;
@@ -362,7 +391,6 @@ const AcceptancePage = memo<AcceptancePageProps>(
useEffect(() => {
if (focusedCheckId) setLedgerExpand(false);
}, [focusedCheckId]);
-
const closeTopicPanel = useCallback(() => {
setTopicPanelOpen(false);
closeTopicDrawer();
@@ -393,6 +421,7 @@ const AcceptancePage = memo<AcceptancePageProps>(
}, [isEmbedded, data, urlRoundRaw]);
const [pending, setPending] = useState(false);
const [rerunPending, setRerunPending] = useState(false);
+ const [checkWorkPending, setCheckWorkPending] = useState(false);
const [actionError, setActionError] = useState<string>();
const [feedbackOpen, setFeedbackOpen] = useState(false);
@@ -467,6 +496,7 @@ const AcceptancePage = memo<AcceptancePageProps>(
accepted: checks.filter((check) => checkFilterState(check) === 'accepted').length,
exceptions: checks.filter((check) => isException(check)).length,
failed: checks.filter((check) => check.state === 'failed').length,
+ ignored: checks.filter((check) => checkFilterState(check) === 'ignored').length,
needsFix: checks.filter((check) => checkFilterState(check) === 'needsFix').length,
notExecuted: checks.filter((check) => check.state === 'not_executed').length,
passed: checks.filter((check) => check.state === 'passed').length,
@@ -499,6 +529,17 @@ const AcceptancePage = memo<AcceptancePageProps>(
const focusedCheck = focusedCheckId
? checks.find((check) => check.id === focusedCheckId)
: undefined;
+ const standingChecklist = acceptance.config?.checklist ?? [];
+ const unverifiedStandingChecks = standingChecklist.filter(
+ (item) => !checks.some((check) => check.id === item.id),
+ );
+ const focusedStates = focusedCheck
+ ? focusedCheckStates(focusedCheck)
+ : {
+ review: 'pending' as const,
+ verifier: 'not_executed' as const,
+ verifierLabel: 'notExecuted' as const,
+ };
const setFocusedCheck = (id?: string) => {
if (isEmbedded) return;
setSearchParams(
@@ -698,8 +739,11 @@ const AcceptancePage = memo<AcceptancePageProps>(
const needsFixCount = reviewableChecks.filter(
(check) => checkFilterState(check) === 'needsFix',
).length;
- const pendingCount = reviewTotal - acceptedCount - needsFixCount; // 未验收 (undecided)
- const decidedCount = acceptedCount + needsFixCount;
+ const ignoredCount = reviewableChecks.filter(
+ (check) => checkFilterState(check) === 'ignored',
+ ).length;
+ const pendingCount = reviewTotal - acceptedCount - needsFixCount - ignoredCount;
+ const decidedCount = acceptedCount + needsFixCount + ignoredCount;
// Per-round acceptance tally for the ledger: each reviewable check belongs to
// the round its current result came from, so the ledger can show that round's
// own 已验收 / 待验收 progress instead of a raw verification verdict.
@@ -880,6 +924,69 @@ const AcceptancePage = memo<AcceptancePageProps>(
}
};
+ const handleCheckWork = async () => {
+ if (!focusedCheck) return;
+ const prompt = buildCheckRepairPrompt(acceptance.id, focusedCheck);
+ if (isEmbedded) {
+ if (onDraftToComposer?.(prompt)) {
+ toast.success({ title: t('acceptance.checkWork.drafted') });
+ }
+ return;
+ }
+ if (!origin?.topic) {
+ await copyToClipboard(prompt);
+ toast.success({ title: t('acceptance.checkWork.copied') });
+ return;
+ }
+ setCheckWorkPending(true);
+ try {
+ await verifyService.dispatchAcceptanceRepair({
+ agentId: origin.agent?.id,
+ content: prompt,
+ topicId: origin.topic.id,
+ });
+ await verifyService.markAcceptanceRepairing(acceptance.id);
+ await mutate();
+ void globalMutate(verifyKeys.acceptances());
+ toast.success({ title: t('acceptance.checkWork.sent') });
+ } catch (cause) {
+ toast.error(cause instanceof Error ? cause.message : t('acceptance.actionError'));
+ } finally {
+ setCheckWorkPending(false);
+ }
+ };
+
+ const saveStandingChecklist = async (checklist: AcceptanceChecklistItem[]) => {
+ try {
+ await verifyService.saveAcceptanceChecklist(subject.type, subject.id, checklist);
+ await mutate();
+ toast.success({ title: t('acceptance.checkCreate.saved') });
+ } catch (cause) {
+ toast.error(cause instanceof Error ? cause.message : t('acceptance.actionError'));
+ throw cause;
+ }
+ };
+
+ const handleAddChecks = () =>
+ openAddCheckModal({
+ existingIds: standingChecklist.map((item) => item.id),
+ onSubmit: (items: AcceptanceChecklistItem[]) =>
+ saveStandingChecklist([...standingChecklist, ...items]),
+ });
+
+ const handleEditStandingCheck = (item: AcceptanceChecklistItem) =>
+ openCheckEditModal({
+ initial: { ...item, method: item.method ?? '' },
+ onRemove: () =>
+ void saveStandingChecklist(standingChecklist.filter((check) => check.id !== item.id)),
+ onSubmit: (value) =>
+ saveStandingChecklist(
+ standingChecklist.map((check) =>
+ check.id === item.id ? { ...check, ...value } : check,
+ ),
+ ),
+ });
+
return (
<Flexbox horizontal className={styles.page}>
{/* The reopen affordance lives at the page corner — no edge handle tab. */}
@@ -1154,10 +1261,11 @@ const AcceptancePage = memo<AcceptancePageProps>(
{focusedCheck ? (
<div className={styles.focusLayout}>
<Flexbox className={styles.focusOutline}>
- <Flexbox gap={8} paddingBlock={12} paddingInline={12}>
+ <Flexbox gap={10} paddingBlock={8} paddingInline={4}>
<Button
icon={<Icon icon={ArrowLeft} />}
size={'small'}
+ style={{ alignSelf: 'flex-start' }}
type={'text'}
onClick={() => setFocusedCheck()}
>
@@ -1180,76 +1288,232 @@ const AcceptancePage = memo<AcceptancePageProps>(
</Text>
</Flexbox>
</Flexbox>
- <Flexbox horizontal align={'center'} gap={8}>
+ <Flexbox horizontal align={'center'} gap={8} paddingInline={4}>
<Text strong style={{ fontSize: 13 }}>
{t('acceptance.checks.title')}
</Text>
- <span className={styles.countBadge}>{checks.length}</span>
+ <span className={styles.countBadge}>
+ {checks.length + unverifiedStandingChecks.length}
+ </span>
+ <Flexbox flex={1} />
+ {isOwner && (
+ <Button
+ icon={<Icon icon={Plus} />}
+ size={'small'}
+ type={'text'}
+ onClick={handleAddChecks}
+ >
+ {t('acceptance.checkCreate.title')}
+ </Button>
+ )}
</Flexbox>
</Flexbox>
- {checks.map((check) => {
- const state = checkFilterState(check);
- const icon =
- state === 'accepted'
- ? BadgeCheck
- : state === 'needsFix'
- ? RotateCcw
- : CircleDashed;
- const color =
- state === 'accepted'
- ? cssVar.colorSuccess
- : state === 'needsFix'
- ? cssVar.colorError
- : cssVar.colorTextQuaternary;
-
- return (
+ {[...checks]
+ .sort(
+ (a, b) =>
+ CHECK_REVIEW_ORDER[checkFilterState(a)] -
+ CHECK_REVIEW_ORDER[checkFilterState(b)] || a.seq - b.seq,
+ )
+ .map((check) => {
+ const state = checkFilterState(check);
+ const icon =
+ state === 'accepted'
+ ? BadgeCheck
+ : state === 'needsFix'
+ ? RotateCcw
+ : state === 'ignored'
+ ? Ban
+ : CircleDashed;
+ const color =
+ state === 'accepted'
+ ? 'success'
+ : state === 'needsFix'
+ ? 'error'
+ : state === 'ignored'
+ ? 'default'
+ : 'default';
+
+ return (
+ <NavItem
+ active={check.id === focusedCheck.id}
+ key={check.id}
+ title={check.title}
+ titleColor={cssVar.colorText}
+ description={
+ <Flexbox horizontal align={'center'} gap={8}>
+ <Tag color={color} icon={<Icon icon={icon} />} size={'small'}>
+ {t(`acceptance.focus.state.${state}`)}
+ </Tag>
+ <Text fontSize={12} type={'secondary'}>
+ {t('acceptance.focus.evidenceCount', {
+ count: check.evidence.length,
+ })}
+ </Text>
+ </Flexbox>
+ }
+ extra={
+ <Icon
+ color={cssVar.colorTextQuaternary}
+ icon={ChevronRight}
+ size={14}
+ />
+ }
+ slots={{
+ titlePrefix: (
+ <Flexbox
+ align={'center'}
+ height={22}
+ style={{ alignSelf: 'flex-start' }}
+ >
+ <Text
+ style={{
+ color: cssVar.colorTextQuaternary,
+ fontFamily: cssVar.fontFamilyCode,
+ fontSize: 11,
+ }}
+ >
+ C{check.seq}
+ </Text>
+ </Flexbox>
+ ),
+ }}
+ onClick={() => setFocusedCheck(check.id)}
+ />
+ );
+ })}
+ {unverifiedStandingChecks.length > 0 && (
+ <Flexbox gap={4} paddingBlock={8} paddingInline={8}>
+ <Text fontSize={11} type={'secondary'}>
+ {t('acceptance.checkCreate.pendingGroup')}
+ </Text>
+ {unverifiedStandingChecks.map((item) => (
+ <NavItem
+ extra={<Icon color={cssVar.colorTextQuaternary} icon={PencilLine} />}
+ key={item.id}
+ title={item.name}
+ titleColor={cssVar.colorText}
+ description={
+ <Text fontSize={12} type={'secondary'}>
+ {item.method || t('acceptance.checkCreate.pendingDescription')}
+ </Text>
+ }
+ onClick={() => handleEditStandingCheck(item)}
+ />
+ ))}
+ </Flexbox>
+ )}
+ </Flexbox>
+
+ <Flexbox className={styles.focusMain}>
+ <Flexbox className={styles.focusContent} gap={16}>
+ <Flexbox gap={5}>
<Flexbox
horizontal
align={'center'}
- className={styles.focusOutlineItem}
- data-active={check.id === focusedCheck.id}
- gap={8}
- key={check.id}
- onClick={() => setFocusedCheck(check.id)}
+ gap={5}
+ style={{
+ color:
+ focusedStates.review === 'accepted'
+ ? cssVar.colorSuccess
+ : focusedStates.review === 'needsFix'
+ ? cssVar.colorError
+ : focusedStates.review === 'ignored'
+ ? cssVar.colorTextQuaternary
+ : cssVar.colorTextTertiary,
+ fontSize: 12,
+ }}
>
+ <Icon
+ size={14}
+ icon={
+ focusedStates.review === 'accepted'
+ ? BadgeCheck
+ : focusedStates.review === 'needsFix'
+ ? RotateCcw
+ : focusedStates.review === 'ignored'
+ ? Ban
+ : CircleDashed
+ }
+ />
+ {t(`acceptance.focus.state.${focusedStates.review}`)}
+ <Text style={{ color: cssVar.colorTextQuaternary }}>·</Text>
+ <Flexbox
+ horizontal
+ align={'center'}
+ gap={5}
+ style={{
+ color:
+ focusedStates.verifier === 'passed'
+ ? cssVar.colorSuccess
+ : focusedStates.verifier === 'failed'
+ ? cssVar.colorError
+ : focusedStates.verifier === 'uncertain'
+ ? cssVar.colorWarning
+ : cssVar.colorTextQuaternary,
+ }}
+ >
+ <Icon
+ size={14}
+ icon={
+ focusedStates.verifier === 'passed'
+ ? Check
+ : focusedStates.verifier === 'failed'
+ ? XCircle
+ : focusedStates.verifier === 'uncertain'
+ ? HelpCircle
+ : CircleDashed
+ }
+ />
+ {t('acceptance.focus.verifierLabel')} ·{' '}
+ {t(`report.verdict.${focusedStates.verifierLabel}`)}
+ </Flexbox>
+ </Flexbox>
+ <Flexbox horizontal align={'baseline'} gap={8}>
<Text
style={{
color: cssVar.colorTextTertiary,
flex: 'none',
fontFamily: cssVar.fontFamilyCode,
- fontSize: 11,
+ fontSize: 12,
}}
>
- C{check.seq}
+ C{focusedCheck.seq}
</Text>
- <Text ellipsis style={{ flex: 1, fontSize: 13, minWidth: 0 }}>
- {check.title}
+ <Text as={'h2'} style={{ fontSize: 22, margin: 0 }}>
+ {focusedCheck.title}
</Text>
- <Icon color={color} icon={icon} size={14} />
</Flexbox>
- );
- })}
- </Flexbox>
-
- <Flexbox gap={12} style={{ minWidth: 0 }}>
- <Flexbox gap={5}>
- <Text fontSize={12} type={'secondary'}>
- C{focusedCheck.seq}
- </Text>
- <Text as={'h2'} style={{ fontSize: 22, margin: 0 }}>
- {focusedCheck.title}
- </Text>
- <Text fontSize={13} type={'secondary'}>
- {t('acceptance.focus.evidenceHint')}
- </Text>
+ <Text fontSize={13} type={'secondary'}>
+ {t(`acceptance.focus.verifierDescription.${focusedStates.verifierLabel}`)}
+ </Text>
+ </Flexbox>
+ {isOwner && (
+ <Flexbox horizontal align={'center'} className={styles.focusWork} gap={16}>
+ <Flexbox flex={1} gap={3}>
+ <Text strong>{t('acceptance.checkWork.title')}</Text>
+ <Text fontSize={12} type={'secondary'}>
+ {t('acceptance.checkWork.description')}
+ </Text>
+ </Flexbox>
+ <Button
+ loading={checkWorkPending}
+ type={'primary'}
+ onClick={handleCheckWork}
+ >
+ {origin?.topic || isEmbedded
+ ? t('acceptance.checkWork.action')
+ : t('acceptance.checkWork.copy')}
+ </Button>
+ </Flexbox>
+ )}
+ <FocusedCheckDetails
+ canReview={isOwner}
+ check={focusedCheck}
+ reviewPending={pending}
+ onReview={handleReview}
+ onRound={gotoRound}
+ />
</Flexbox>
- <FocusedCheckDetails
- canReview={isOwner}
- check={focusedCheck}
- reviewPending={pending}
- onReview={handleReview}
- onRound={gotoRound}
- />
</Flexbox>
</div>
) : (
@@ -1267,8 +1531,20 @@ const AcceptancePage = memo<AcceptancePageProps>(
<Text strong style={{ fontSize: 14, whiteSpace: 'nowrap' }}>
{t('acceptance.checks.title')}
</Text>
- <span className={styles.countBadge}>{counts.total}</span>
+ <span className={styles.countBadge}>
+ {counts.total + unverifiedStandingChecks.length}
+ </span>
<Flexbox flex={1} />
+ {isOwner && (
+ <Button
+ icon={<Icon icon={Plus} />}
+ size={'small'}
+ type={'text'}
+ onClick={handleAddChecks}
+ >
+ {t('acceptance.checkCreate.title')}
+ </Button>
+ )}
{compactToolbar ? (
<Select
size={'small'}
@@ -1292,6 +1568,10 @@ const AcceptancePage = memo<AcceptancePageProps>(
label: t('acceptance.filter.accepted', { count: counts.accepted }),
value: 'accepted',
},
+ {
+ label: t('acceptance.filter.ignored', { count: counts.ignored }),
+ value: 'ignored',
+ },
]}
onChange={(value) => setFilter(value as CheckFilter)}
/>
@@ -1316,6 +1596,10 @@ const AcceptancePage = memo<AcceptancePageProps>(
label: t('acceptance.filter.accepted', { count: counts.accepted }),
value: 'accepted',
},
+ {
+ label: t('acceptance.filter.ignored', { count: counts.ignored }),
+ value: 'ignored',
+ },
]}
onChange={(value) => setFilter(value as CheckFilter)}
/>
@@ -1354,6 +1638,42 @@ const AcceptancePage = memo<AcceptancePageProps>(
/>
</Flexbox>
+ {unverifiedStandingChecks.length > 0 && (
+ <Flexbox className={styles.standingPanel}>
+ <Flexbox
+ horizontal
+ align={'center'}
+ gap={8}
+ paddingBlock={10}
+ paddingInline={12}
+ style={{ borderBlockEnd: `1px solid ${cssVar.colorBorderSecondary}` }}
+ >
+ <Icon color={cssVar.colorTextTertiary} icon={CircleDashed} size={14} />
+ <Text strong style={{ fontSize: 13 }}>
+ {t('acceptance.checkCreate.pendingGroup')}
+ </Text>
+ <span className={styles.countBadge}>{unverifiedStandingChecks.length}</span>
+ <Text fontSize={12} type={'secondary'}>
+ {t('acceptance.checkCreate.pendingGroupDescription')}
+ </Text>
+ </Flexbox>
+ {unverifiedStandingChecks.map((item) => (
+ <NavItem
+ extra={<Icon color={cssVar.colorTextQuaternary} icon={PencilLine} />}
+ key={item.id}
+ title={item.name}
+ titleColor={cssVar.colorText}
+ description={
+ <Text fontSize={12} type={'secondary'}>
+ {item.method || t('acceptance.checkCreate.pendingDescription')}
+ </Text>
+ }
+ onClick={() => handleEditStandingCheck(item)}
+ />
+ ))}
+ </Flexbox>
+ )}
+
<CheckList
canReview={isOwner}
checks={checks}
@@ -1404,6 +1724,7 @@ const AcceptancePage = memo<AcceptancePageProps>(
acceptedCount={acceptedCount}
embedded={isEmbedded}
feedbackCount={activeFeedbackCount}
+ ignoredCount={ignoredCount}
needsFixCount={needsFixCount}
pending={pending}
repairing={acceptance.status === 'repairing'}
diff --git a/src/features/Verify/hooks.test.ts b/src/features/Verify/hooks.test.ts
index f906163eadf..91aa33a26d0 100644
--- a/src/features/Verify/hooks.test.ts
+++ b/src/features/Verify/hooks.test.ts
@@ -9,6 +9,7 @@ import { verifyService } from '@/services/verify';
import {
useAcceptanceBySubject,
+ useRubrics,
useVerifyReportBundle,
useVerifyReportSummariesInfinite,
} from './hooks';
@@ -70,6 +71,15 @@ describe('Verify data hooks', () => {
expect(getAcceptanceBySubject).toHaveBeenCalledWith('task', 'T-231');
});
+ it('does not request rubrics while rubric authoring is inactive', async () => {
+ const listRubrics = vi.spyOn(verifyService, 'listRubrics').mockResolvedValue([]);
+
+ renderHook(() => useRubrics(false), { wrapper: createSWRWrapper(new Map()) });
+ await act(() => new Promise((resolve) => setTimeout(resolve, 20)));
+
+ expect(listRubrics).not.toHaveBeenCalled();
+ });
+
it('keeps loaded reports visible while SWR revalidates after a remount', () => {
useSWRInfiniteMock.mockReturnValue(
mockInfiniteResponse({
diff --git a/src/features/Verify/hooks.ts b/src/features/Verify/hooks.ts
index 42f33d84fc0..40015ce1071 100644
--- a/src/features/Verify/hooks.ts
+++ b/src/features/Verify/hooks.ts
@@ -161,8 +161,8 @@ export const useRubric = (rubricId: string | null | undefined) =>
);
/** The workspace's reusable rubric templates (delivery-standard groups). */
-export const useRubrics = () =>
- useClientDataSWR(verifyKeys.rubrics(), () => verifyService.listRubrics());
+export const useRubrics = (enabled = true) =>
+ useClientDataSWR(enabled ? verifyKeys.rubrics() : null, () => verifyService.listRubrics());
/** The workspace's reusable atomic criteria. */
export const useCriteria = () =>