Skip to content

docs: keep four more configurable numbers out of the manuals' prose (#2913) - #2932

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-2913-manual-config-numbers
Dec 3, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-2913-manual-config-numbers

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Closes #2913

Clause-②: no
Metadata-protocol: none
Metadata-impact: reviewer

维护者速读

  • 用户能看到什么变化:中英文使用手册里,报价单折扣审批门槛、追加预算交财务审批的比例、回款计划的付款条款天数、热线索评分门槛不再写成数字,改为指明在哪个流程上设定;报价单和追加预算两页还嵌入了按实时配置绘制的审批流程图。
  • 为什么做:承接上一张“手册不手抄可配置数字”的卡,补上当时清单漏掉的四个数字,免得管理员改了门槛后手册和读手册的 AI 助手给出过时数字。
  • 出错会怎样:只影响手册文字和追加预算审批里一个判断步骤及两条分支的显示名称,审批门槛、路线和数据都没有改;可以直接撤回。
  • 要你做什么:无。

What changes

  • Quote manual (en, zh). The discount-approval section no longer states 30 %. It names the Quote Discount Approval flow as where an administrator sets the line, and embeds it (type: flow, quote_discount_approval). The flow's description, drawn as the embed's subtitle, drops the percentage.
  • PSA approvals manual (en, zh). The budget top-up bullet no longer states 10 %. It names the Budget Top-Up Approval flow, and the page embeds it (project_budget_approval) after the approvals list. The flow's decision check_raise is relabelled Raises the Baseline Past the Finance Threshold? (zh-CN 基线提高是否达到财务审核门槛?, plus ja-JP and es-ES), its branches e_large / e_small At or over the threshold / Under the threshold, and its description drops the percentage. Labels and description only: no condition, threshold or route changes.
  • Collection plan manual (en, zh). The Net 15/30/60/90 list is gone; the page says the plan is dated by the days the order's Payment Terms names, as the Confirmed Order Gets a Payment Plan flow counts them. Same wording docs: draw the manuals' lifecycle and approval diagrams live, and keep configurable numbers out of their prose (#2706) #2912 gave the invoices manual.
  • Leads manual (en, zh). The 4★ hot-lead cut is gone from the table and the Lead Score paragraph; both name the hot-lead score set on the New Lead Routing & SLA flow. The admin automation page still states and pins it.
  • test/docs-drift.test.ts. The hot-lead rule moves the leads manual from docs to pointsToFlow (admin page still under docs, so coverage stays). Three new pointsToFlow rules, each extracted from its flow: the quote discount line (record.discount > N in the compiled start condition), the top-up finance share (the compiled e_large condition), and the first Net term (sales-order-confirmed-plan-step.flow.ts), the last held on the collection plan and the invoices manuals.

Acceptance notes

Verification

Read first:

  1. test/docs-drift.test.ts, the three new rules and the hot-lead rule. These guards keep the numbers out.
  2. src/psa/flows/project-budget-approval.flow.ts, the check_raise label and the e_large / e_small labels. They are label-only changes next to live conditions.
  3. src/revenue/docs/crm_revenue_quotes.md, the Discount approval section.

Two-minute check: in a zh-CN session, open Help → the Project Delivery manual → 审批、预算状态与锁定. Expected: the 追加预算审批 card lists 基线提高是否达到财务审核门槛?, and no 10% appears in the prose.

Local runs on 82f30c5 (all under the shared verify lock)
  • pnpm validate && pnpm typecheck && pnpm lint && pnpm hygiene && pnpm build: VERDICT command-exit 0. The prose-only follow-up was re-run with pnpm validate && pnpm lint && pnpm build plus docs-drift and docs-budget-status-lines: VERDICT command-exit 0, 27 tests passed.
  • vitest run on 50 files (every test/docs-*.test.ts, plus each test that names a changed manual, flow, flow-steps or _thresholds): 50 passed, 1376 tests passed, 9 skipped.
  • Control leg: a misspelled project_budget_aproval in the zh PSA embed is refused by pnpm validate (docs/metadata-embed-ref, did-you-mean project_budget_approval).
  • Ablation: re-adding 4★ (leads zh), 10 % (PSA en), Net 15 (collection plan zh) and 30% (quotes en) made exactly the 4 matching docs-drift rules go red. All four files were restored afterwards.
  • Full vitest run and pnpm test: NOT MEASURED locally, left to CI.

🤖 Generated with Claude Code

https://claude.ai/code/session_017xRBcUpajguxop2zMyDN9K

…2913)

Applies #2706's rule to the numbers its list missed, in en and zh. The
quote manual names and embeds the Quote Discount Approval flow instead of
stating the 30 % line; the PSA approvals manual names and embeds the
Budget Top-Up Approval flow instead of stating the 10 % finance share; the
collection plan manual names the Confirmed Order Gets a Payment Plan flow
instead of listing the Net 15/30/60/90 day counts; the leads manual names
the New Lead Routing & SLA flow instead of stating the 4-star hot-lead cut.

docs-drift.test.ts moves the leads manual from `docs` to `pointsToFlow`
for the hot-lead cut (the admin automation page keeps pinning it) and adds
three `pointsToFlow` rules, each extracted from its flow: the quote
discount line, the top-up finance share, and the first Net term (also
held on the invoices manual).

The Budget Top-Up Approval decision step and its two branches drop the
percentage from their labels (en, zh-CN, ja-JP, es-ES), and both embedded
flows' descriptions drop it. No condition, threshold or route changes.

Claude-Session: https://claude.ai/code/session_017xRBcUpajguxop2zMyDN9K
@vercel

vercel Bot commented Dec 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
hotcrm Ignored Ignored Dec 3, 2026 1:52am UTC

Request Review

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:hotcrm@sunhaolin · sunhaolin · session_017xRBcUpajguxop2zMyDN9K

L1 review: ACCEPT · reviewer-class · seat lands (2026-12-03T02:02Z)

  • The four numbers are gone from the en and zh prose. The two approval flows are embedded, and three new pointsToFlow drift rules read the values from the flows. The ablation turns exactly the 4 matching rules red.
  • Flow edits are labels and descriptions only. The seat checked the diff: no condition, threshold, route or permission changed, and the four locale flow-step labels moved together.
  • All 18 checks on 82f30c5 finished green. Readying and queueing for merge.
  • Follow-ups the dev raised (the PSA initiation 100,000 and expense 2,000 finance lines; the stale embed-language note in AGENTS.md) go to the seat ledger.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review December 3, 2026 02:04
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit 5034d05 Dec 3, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Manuals: remove the configurable numbers the #2706 list missed (quote discount 30 %, PSA budget top-up 10 %, payment-term list, hot-lead 4★)

2 participants