Repository navigation
Implementation notes are shown to users as help text — field and dashboard-widget descriptions cite hook files, card numbers, DESIGN.md sections and PRs - #132
Merged
Conversation
…eeds
The Submit, Send for Approval and Activate descriptions and the Backfill
Executed Contract description and its two date/file helps still carried
implementation notes: flow codes (F2, F5, F9), field API names
(activated_at, is_backfilled, signed_at, executed_at, final_signed) and
mechanics ("stamps the approval flags"). They render in Setup's action
list and, for the backfill action, in its parameter dialog. They now
describe what happens for the person pressing the button; the en bundle
mirrors the inline text and the zh-CN Submit text drops 审批标记. The
notes moved into the code comments beside each action.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017nzWFRUo2U7evMkPdVniAn
… an end date The activation hook opens the renewal-reminder obligation only for a contract with an end date, so the description no longer promises one unconditionally (en inline and bundle, zh-CN bundle). Also corrects the stale header comment in both objects.contract.ts bundles: the `_actions` group holds eight record-header actions plus the launch and backfill list-toolbar actions, not six plus one. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017nzWFRUo2U7evMkPdVniAn
Contributor
Author
席位核对 — ACCEPT · head
|
| check | reading |
|---|---|
| shape | draft → main, Fixes #95; assignee zhuangjianguo |
| CI on the head | both Validate check-runs success on bc26eff = PR head.sha (read by the seat before this comment) |
| scope | 4 files: six action description / param-help strings in contract-lifecycle.actions.ts and contract-backfill.actions.ts rewritten for users, mirrored in the en bundle; zh-CN submit_contract (the only zh value carrying a note). The implementation notes moved into code comments beside each action. Nothing governed |
| seat review fix | bc26eff on top of 77987fe: activate_contract no longer promises a renewal reminder unconditionally — contract.hook.ts opens one only when the contract has an end date (seat read on main); the bundles' stale header comment now counts eight header actions plus launch and backfill. Gates re-run on bc26eff: install, validate, lint, typecheck, i18n gate, seeded validate — all exit 0 |
| measured | boot signatures identical before/after; the new texts are served by /api/v1/meta/actions and the translation endpoints and shown in Setup's Action list in en and zh-CN. NOT MEASURED: the backfill dialog and the Send for Approval / Activate buttons as a user sees them (no persona in the run holds those capabilities); on 18.1.0 a param-less header action shows no description anywhere on the record page (observation) |
With PRs #103, #131 and this one, the card's whole surface is delivered.
Landing: under the maintainer's merge authorization (project thread: 「你可以自己审核的就自己合并」).
Generated by Claude Code
zhuangjianguo
marked this pull request as ready for review
October 25, 2026 16:26
This was referenced Oct 25, 2026
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.
Fixes #95
The last piece of the card: the action descriptions and the backfill dialog's help that still carried implementation notes. PRs #103 and #131 delivered the rest. Wording is PR #131's proposal, unchanged in English. The rendered text read correctly, so none of it was reworded.
What changed
Every description and help string in
src/actions/contract-lifecycle.actions.tsandsrc/actions/contract-backfill.actions.tswas listed and sorted into fine or rewrite. Only the six that carried flow codes, field API names or mechanics were changed. The en bundle mirrors each one.submit_contractsend_for_approvalactivate_contractactivated_atand opens the renewal-reminder obligation.executed_uploadexecuted_upload·signed_datehelpexecuted_upload·executed_filehelpzh-CN: only
submit_contractcarried a note (「系统会盖上审批标记」). It now reads 「把草稿交出去。系统会定好它的审批路线,并指派一位法务审查;不需要法务审查的类型则直接送审。」. The other zh-CN values were already written for the reader, so they were left as they were:send_for_approval,activate_contract,executed_uploadand its two helps.Left as they were, because they hold no implementation note:
accept_contract,start_signing,terminate_contractand itstermination_reasonhelp,start_renewal,withdraw_contract(description and confirm text), the success messages, the owner-only body's two refusal messages, and the backfill helps forcontract_type,partyandarchive_no.The notes moved into the code comments beside each action: F2 and its
route_*stamps, F5, F9 andactivated_at,is_backfilled, andsigned_at/executed_at/final_signed. No key was added or removed, and behaviour is unchanged.Gates (tree of head
77987fe, each exit captured to a file before any pipe)Control-byte scan of the 4 changed files: no match (grep exit 1).
Browser (18.1.0,
pnpm demo --port 3495, fresh.objectstack/dataeach run, Chromium /opt/pw-browsers/chromium)There were two boots: before on
maind7c706c, and after on this branch. Each seeded{"inserted":830,…,"errored":404}. Normalised, the WARN/ERROR lines number 439 on each side and are identical (0 diff lines). Nodegraded, nono such table, no plugin-load failure.Personas: the dev admin, and
Business Requester 1, created the README way:POST /api/v1/auth/admin/create-user200, thenchange-password200. The requester's own draft was created by the requester throughPOST /api/v1/data/clm_contract(201), not through the wizard.submit_contract「把草稿交给法务。系统会盖上审批标记,并指派审查人或直接送审。」executed_upload, the designer's input-dialog preview (admin)… It becomes both signed_at and executed_at.· Executed Copy:… kind final_signed.… It is recorded as both the signed date and the execution date.·… the final signed version.GET /api/v1/i18n/translations/{en,zh-CN}andGET /api/v1/meta/actionssubmit_contractnew; the other zh-CN keys unchangedBrowser console on every page: the pre-login
401(get-session) and one404resource, the same before and after. For the requester there was alsoGET /api/v1/meta/app/setup→ 403 on the Setup URL, which is expected.NOT MEASURED:
execute_contract: the list toolbar shows no Backfill button for either, andPOST /api/v1/actions/clm_contract/executed_uploadanswers 403 for both. The closest readings are the designer preview and the served bundle above.clm_legal.access/execute_contract), on an in-review and a signing contract.Acceptance notes
helpText(English) under zh-CN too; it reads the source, not the bundle. Observation, not filed.activate_contractsays "the renewal reminder is set up". The activation hook (contract.hook.ts,contract_activate) opens that obligation only when the contract has an end date, and returns early without one. Read from code, not measured (no persona withexecute_contract), so PR Implementation notes are shown to users as help text — field and dashboard-widget descriptions cite hook files, card numbers, DESIGN.md sections and PRs #131's wording was kept. A possible tightening is "… and, if it has an end date, a renewal reminder is set up." That is left to review.🤖 Generated with Claude Code
https://claude.ai/code/session_017nzWFRUo2U7evMkPdVniAn