Repository navigation
docs: keep four more configurable numbers out of the manuals' prose (#2913) - #2932
Merged
objectstack-fleet[bot] merged 1 commit intoDec 3, 2026
Merged
Conversation
…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
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Author
|
repo:hotcrm@sunhaolin · sunhaolin · session_017xRBcUpajguxop2zMyDN9K L1 review: ACCEPT · reviewer-class · seat lands (2026-12-03T02:02Z)
|
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.
Closes #2913
Clause-②: no
Metadata-protocol: none
Metadata-impact: reviewer
维护者速读
What changes
type: flow,quote_discount_approval). The flow'sdescription, drawn as the embed's subtitle, drops the percentage.project_budget_approval) after the approvals list. The flow's decisioncheck_raiseis relabelled Raises the Baseline Past the Finance Threshold? (zh-CN 基线提高是否达到财务审核门槛?, plus ja-JP and es-ES), its branchese_large/e_smallAt or over the threshold / Under the threshold, and itsdescriptiondrops the percentage. Labels and description only: no condition, threshold or route changes.test/docs-drift.test.ts. The hot-lead rule moves the leads manual fromdocstopointsToFlow(admin page still underdocs, so coverage stays). Three newpointsToFlowrules, each extracted from its flow: the quote discount line (record.discount > Nin the compiled start condition), the top-up finance share (the compilede_largecondition), 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
descriptions, the budget flow's decision and branch labels, andsrc/psa/translations/flow-steps.ts. Done to apply 手册里的审批与生命周期图改用 metadata 嵌入,正文不再手写会变的门槛数字 #2706's rule the way docs: draw the manuals' lifecycle and approval diagrams live, and keep configurable numbers out of their prose (#2706) #2912 applied it toopportunity_approval: the embed draws those labels, and a label carrying the number would go stale when an administrator edits the condition. The invoices manual is read by the new payment-term rule only; it is not edited.objectstack dev, Chromium, en-US and zh-CN, on this branch before the final prose tweak): the quote embed shows title 报价单折扣审批, steps 开始(折扣超线的报价单提交审核)/ 销售经理审核 / 结束, entry 运行条件:状态 = 审核中 且 其他条件. The top-up embed shows 追加预算审批 with 项目总监审核 / 基线提高是否达到财务审核门槛? / 财务控制审核, and its two branches as bare 条件. Neither drawing shows the percentage: the start condition is summarised as "and other conditions", and the branch conditions (arithmetic overvars.*) are not humanised. So the prose claims only that the drawing shows the steps your deployment runs, not the value or the conditions. The first draft also claimed the conditions; that was removed after this reading.descriptionsubtitle.Verification
Read first:
test/docs-drift.test.ts, the three new rules and the hot-lead rule. These guards keep the numbers out.src/psa/flows/project-budget-approval.flow.ts, thecheck_raiselabel and thee_large/e_smalllabels. They are label-only changes next to live conditions.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 withpnpm validate && pnpm lint && pnpm buildplus docs-drift and docs-budget-status-lines: VERDICT command-exit 0, 27 tests passed.vitest runon 50 files (everytest/docs-*.test.ts, plus each test that names a changed manual, flow,flow-stepsor_thresholds): 50 passed, 1376 tests passed, 9 skipped.project_budget_aprovalin the zh PSA embed is refused bypnpm validate(docs/metadata-embed-ref, did-you-meanproject_budget_approval).4★(leads zh),10 %(PSA en),Net 15(collection plan zh) and30%(quotes en) made exactly the 4 matching docs-drift rules go red. All four files were restored afterwards.vitest runandpnpm test: NOT MEASURED locally, left to CI.🤖 Generated with Claude Code
https://claude.ai/code/session_017xRBcUpajguxop2zMyDN9K