📊 生产看板增加质检员与验收员产出、人均日效率,时长改小时 #60

Merged
zhanghongming merged 56 commits from claude/reviewer-dashboard-20261027 into dev 2026-10-27 22:45:22 +08:00
Collaborator

目的

生产总览与供应商产出看板只显示标注员数据。本 PR 按原有卡片和表格样式增加质检员、验收员区块,三个角色都有人均日效率,所有时长改为小时(一位小数);质检、验收的返工复审同一 part 重复计入。

口径

  • 审查次数:正式通过/退回决定按所涉 part 计;同一 part 返工后再次审查重复计入,并单列"其中复审"。终审一次决定涉及多个 part 时按 part 分别计入。
  • 审查时长:被审 part 的整段视频时长,与同页标注员口径一致(与"人员工作记录统计"面板的切片并集口径不同,文档已注明)。
  • 人均日产出/人均日审查:期间视频小时 ÷ 人天(一人一自然日有本角色正式工作计 1 人天),不是工时。
  • 审核员归属其账号供应商;供应商管理员只看到本供应商审核员。人员筛选同时适用于审核员。

实现

  • internal/workforcestats:快照构建时生成工作事实(每次送检、每次正式审查决定,按 part 索引、紧凑字段),查询时在内存中过滤汇总;calculate.go 审核员统计按任务建索引,避免逐条全表扫描。
  • internal/store/annotation_output.go:仅新增审核人身份投影字段。
  • internal/outputsnapshot:schema v1→v2,新旧版本快照互不读取。
  • internal/api/annotation_output.go:新增 qualityReview、acceptanceReview、efficiency 字段及独立分页参数,旧字段不变。
  • 前端:AnnotationOutputDashboard 三行角色卡片、两张审核员供应商表与按人每日表。
  • 文档:docs/workforce-statistics.zh-CN.md、CONTEXT.md(审查次数、人天)。

基础分支

本分支基于线上发布分支 codex/release-review-video-20261027(2840d669,尚未推送或合入 dev),因此本 PR 相对 dev 共 56 个提交。它完整包含尚未合并的堆叠 PR #56–#59(#59 的分支 codex/review-runtime-trace-20261026 是本分支祖先),另有 22 个线上发布分支提交和本次 3 个提交。建议先合并 #56–#59;之后本 PR 剩 25 个提交。若线上发布分支也先合入 dev,本 PR 只剩下面 3 个提交:

  • 📋 任务卡
  • ⚡ 审核员统计按任务索引
  • ✨ 看板审核员区块

验证

  • Go:workforcestats / outputsnapshot / store / api AnnotationOutput 测试通过;test:go:gate 无新增失败。
  • 本地副本库:管理员与供应商管理员视角接口和页面核对,质检 12 次、验收 6 次决定→10 次 part 审查与原始数据一致;1440/1024/375 宽度布局检查。
  • 发布 reviewer-dashboard-20261027-27156708:19 项策略本地检查与集群只读检查通过,已于 2026-10-27 部署到 Fanyu(经用户批准的紧急未合并分支部署)。

🤖 Generated with Claude Code

## 目的 生产总览与供应商产出看板只显示标注员数据。本 PR 按原有卡片和表格样式增加质检员、验收员区块,三个角色都有人均日效率,所有时长改为小时(一位小数);质检、验收的返工复审同一 part 重复计入。 ## 口径 - 审查次数:正式通过/退回决定按所涉 part 计;同一 part 返工后再次审查重复计入,并单列"其中复审"。终审一次决定涉及多个 part 时按 part 分别计入。 - 审查时长:被审 part 的整段视频时长,与同页标注员口径一致(与"人员工作记录统计"面板的切片并集口径不同,文档已注明)。 - 人均日产出/人均日审查:期间视频小时 ÷ 人天(一人一自然日有本角色正式工作计 1 人天),不是工时。 - 审核员归属其账号供应商;供应商管理员只看到本供应商审核员。人员筛选同时适用于审核员。 ## 实现 - `internal/workforcestats`:快照构建时生成工作事实(每次送检、每次正式审查决定,按 part 索引、紧凑字段),查询时在内存中过滤汇总;`calculate.go` 审核员统计按任务建索引,避免逐条全表扫描。 - `internal/store/annotation_output.go`:仅新增审核人身份投影字段。 - `internal/outputsnapshot`:schema v1→v2,新旧版本快照互不读取。 - `internal/api/annotation_output.go`:新增 `qualityReview`、`acceptanceReview`、`efficiency` 字段及独立分页参数,旧字段不变。 - 前端:`AnnotationOutputDashboard` 三行角色卡片、两张审核员供应商表与按人每日表。 - 文档:`docs/workforce-statistics.zh-CN.md`、`CONTEXT.md`(审查次数、人天)。 ## 基础分支 本分支基于线上发布分支 `codex/release-review-video-20261027`(2840d669,尚未推送或合入 dev),因此本 PR 相对 dev 共 56 个提交。它完整包含尚未合并的堆叠 PR #56–#59(#59 的分支 `codex/review-runtime-trace-20261026` 是本分支祖先),另有 22 个线上发布分支提交和本次 3 个提交。建议先合并 #56–#59;之后本 PR 剩 25 个提交。若线上发布分支也先合入 dev,本 PR 只剩下面 3 个提交: - 📋 任务卡 - ⚡ 审核员统计按任务索引 - ✨ 看板审核员区块 ## 验证 - Go:workforcestats / outputsnapshot / store / api AnnotationOutput 测试通过;`test:go:gate` 无新增失败。 - 本地副本库:管理员与供应商管理员视角接口和页面核对,质检 12 次、验收 6 次决定→10 次 part 审查与原始数据一致;1440/1024/375 宽度布局检查。 - 发布 `reviewer-dashboard-20261027-27156708`:19 项策略本地检查与集群只读检查通过,已于 2026-10-27 部署到 Fanyu(经用户批准的紧急未合并分支部署)。 🤖 Generated with [Claude Code](https://claude.com/claude-code)
zhanghongming added 56 commits 2026-10-27 20:25:36 +08:00
⚡ Share bounded dashboard snapshots across API instances
Some checks failed
web-ci / checks (push) Waiting to run
web-ci / checks (pull_request) Has been cancelled
962ea6da3d
📝 Record dashboard snapshot deployment status and acceptance gaps
Some checks failed
web-ci / checks (pull_request) Has been cancelled
web-ci / checks (push) Has been cancelled
bc00467d24
The quick path validated raw actions before archiving and bypassed the server slice application. Share its archive-aware validation and authoritative save with panel edits, await Enter confirmation, retain failed choices, and preserve pre-drag persisted undo. Cover both directions, recovery, and keyboard/mouse confirmation through the real page and HTTP API.
Slice-phase quick edits with pending actions were canceled before history recording because conflict rendering and teardown were annotation-only. Preserve the actions and use the existing atomic application and restoration flow in both editing phases. Compare complete live editor drafts without derived completion status, and keep discarded-slice evidence and opinions visible.
Administrator counters were derived from the stage-filtered first human-item page, while annotators used an aggregate. Add authorized whole-pool counters with a five-second bounded cache, page human items before joining task summaries, and search older metadata on the server. Cancel stale reads and preserve existing non-admin scope behavior. Cover permissions, mixed stages, real Mongo parity, old-page search, categories, pagination, stale responses and claim invalidation.
🐛 Preserve the current review target when resident focus races a new edit
Some checks failed
web-ci / checks (push) Has been cancelled
web-ci / checks (pull_request) Has been cancelled
69cdbb5ad7
🐛 Preserve confirmed annotation frames and enforce v4 time evidence
Some checks failed
web-ci / checks (push) Waiting to run
web-ci / checks (pull_request) Has been cancelled
63512da71f
🧪 Correct video recovery route mocks and camera selectors
Some checks failed
web-ci / checks (push) Has been cancelled
web-ci / checks (pull_request) Has been cancelled
93925d424a
🐛 Enforce unresolved review guard on legacy quality decisions
Some checks failed
web-ci / checks (push) Has been cancelled
44e66a6800
⚡ Bound parallel source decoding and release malformed streams promptly
Some checks failed
web-ci / checks (push) Has been cancelled
web-ci / checks (pull_request) Has been cancelled
025896ae1b
Drop the full-width source strip; show source fields, version/return
chips and the latest two transitions in one collapsible card at the top
of the review side column. Record post-release validator capacity evidence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Untracked source copies under local-data/ ship their own index.html and node_modules; scanning them made the dev server load a second React and render a blank page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Show a loading message instead of a false empty state on the projects page, keep the runs table from squeezing its columns, format durations over an hour as hours, align stat cards and table text with the dashboard, and let the POC acceptance card follow the app theme.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reuse the wording of each page's status filter; the raw status stays available as a tooltip and unknown values fall back to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
💄 Polish dashboard and shell: readable POC gates, consistent cards, a11y fixes
Some checks are pending
web-ci / checks (push) Waiting to run
39c80575fd
In the production overview section, make readiness gates and error banners readable in the light theme, round the success rate, unify card styles and minimum text size; label the sidebar toggle and profile dialog close button, close the dialog on Escape, and pause health polling while the tab is hidden.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
📝 Add branch rules, task cards and a status script for parallel agents
Some checks failed
web-ci / checks (push) Has been cancelled
946a319310
One branch per task from origin/dev with a task card, agents push their own
task branches freely, PR creation needs the user's approval, deploy only
commits in dev. scripts/agent_status.py lists every branch against dev and
the newest deployed release across all worktree ledgers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Squashes b10f843c and 630c180e from codex/review-trace-preview-20261026
(never pushed). The sample task title is replaced with a synthetic name
because the original looked like a real capture identifier. Standalone
HTML with synthetic data: not part of the app build, no API calls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🔀 Merge agent branch rules and status script (claude/agent-branch-workflow)
Some checks are pending
web-ci / checks (push) Waiting to run
b542d71119
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
📝 Record the 2026-10-20 internal test lane revision and tickets 06–15
Some checks failed
web-ci / checks (push) Has been cancelled
de96cfc2be
Recovered from uncommitted work in the dev-mainline worktree (written
2026-10-19/20, never committed). Revises ADR 0004 and the spec/map: the
lane verifies annotation → QC → final acceptance only, uses node-local
storage with no BOS credentials, and promotes the same image to
production. Adds the two domain terms and tickets 06–15. Docs only; no
code, configuration or cluster changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 8703a55f4c08df11e7efc86b5bf085da85b144ee)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit ca1454bf6a4fb149a4614ef47df3fb66ef77fd06)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit de92121cb97f458985c5c9e9b03e43e4a25ab028)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit bba61d328712b54225dd2ebc87d344c4f4d9a746)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit b38d10f0ef4d1ac15202923f2c5e8390e66e651c)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit c6ddc91b49b688469bfe56386478b96d900863ee)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Acceptance attribution and legacy rejections scanned every review or
event per source; per-task lookups keep the calculation linear as
re-reviews lengthen review history.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
✨ Show QC and acceptance reviewers on the production output dashboard
Some checks failed
web-ci / checks (push) Has been cancelled
web-ci / checks (pull_request) Has been cancelled
2715670828
The production overview and supplier output pages add QC and acceptance
sections beside annotators in the same card and table style. Reviews
count every formal decision per part, so rework re-reviews count again
and are listed as re-reviews; an aggregate acceptance counts each part
once. Every role gets video hours per person-day as efficiency, and all
durations now display in hours with one decimal.

Work facts are computed once per shared snapshot (schema v2) and only
filtered in memory per query; the loader reads three more identity
fields and no new collections.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
zhanghongming merged commit bc17d50508 into dev 2026-10-27 22:45:22 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: longtao.wu/droboticflow#60
No description provided.