Skip to content

feat(record-pages): quotes and contracts open on the default record page; the two empty shells go (#2740) - #2847

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-2740-quote-contract-shells
Nov 29, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-2740-quote-contract-shells

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #2740

Clause-②: no
Metadata-protocol: none
Metadata-impact: reviewer — two record pages deleted (the empty quote and contract default pages), with their locale-pack entries. No permission set, sharing rule, object, field, record or seed row changes, and what a user sees on a quote or a contract is unchanged: the deleted pages drew the platform's default layout with no slot overridden, and the console now draws that same default page itself. The reviewer confirms or rejects this class.
Ruling-ref: the maintainer, 「2 个打印页保留、其余 9 个页面清理」 — 2026-11-22, recorded in the hotcrm#2740 body (context: objectstack-ai/objectstack#36502 comment 7081151402). The timing of these two deletions, "the quote and contract shells wait for the platform release that carries objectstack PR #35461, and the two print pages stay", is restated in comments 7081826671, 7091461603, 7157755526 and 7181610829. The hold is comment 7182714310, and its lift is comment 7247307082.

维护者速读

  • 用户打开报价单和合同时,看到的仍是平台标准记录页,外观与操作都不变;「打印报价」「打印合同」照常出文档。用户无感。
  • 这是 HotCRM 自定义页面清理的最后一批(维护者 11 月 22 日的清理决定):两张只为挡住打印页而存在的空白占位页,在平台修复打印页误当记录页的问题后删除。
  • 如果出错,报价单或合同打开时会变成打印稿,没有阶段条和页签;数据和权限不受影响,撤回这一个合并即可恢复。
  • 未在浏览器里实测:打开记录页、按名字打印这两件事,依据是读平台 next.2 的代码和测试,由静态测试钉住。

What changes

  • Deleted: src/revenue/pages/quote_detail.page.ts and src/sales/pages/contract_detail.page.ts. Each was an empty kind: 'slotted' page with isDefault: true and slots: {}. It existed only because the console's record route fell back to an object's first record page, which was the print page.
  • Premise, on the pin (19.0.0-next.2): a print page is never the record page an object falls back to. That is objectstack PR #35461, merge 5bd72570d2.
    • In source at the @object-ui/console@19.0.0-next.2 tag, usePageAssignment.ts picks candidates.find(default) ?? candidates.find(p => !declaresPrint(p)) ?? null. At @18.6.0 the same file has 0 hits for print.
    • In the console bundle that hotcrm installs (@objectstack/console 19.0.0-next.2, dist/assets/framework-*.js), the same code is minified as i.find(t=>l(t)===e)??i.find(e=>!my(e))??null, where my(e) is e.print!==null&&typeof e.print=="object".
    • With no authored page left, the route draws the default page that buildDefaultPageSchema derives from the object.
  • Registrations: the revenue stack registers pages: [QuotePrintPage]. The sales pages barrel exports only ContractPrintPage, and objectstack.composition.ts picks it up through the barrel; its stale "home among them" comment is corrected.
  • Locale packs: the quote_detail_page and contract_detail_page entries are removed from all four packs of both packages (en, zh-CN, es-ES, ja-JP).
  • Comments: the headers of the two print pages and of Print Contract (contract.actions.ts) now say why the print page is not the default and that the door prints it by name.
  • Docs: docs/STATUS.md changes from 4 to 2 Pages, the figure pnpm validate prints. No user doc names the deleted pages, and what users see does not change, so the site and the in-app manuals are not edited.
  • Changeset: .changeset/2740-quote-contract-shells.md, for customers, in the shape of the earlier two parts.

Tests

  • The L1 fix round (019931ca) removed a hand-written model of the console's pick rule. AGENTS.md Scope rules 2–3 forbid such a model: the tests would pin the model, not the platform. HotCRM now relies on the platform's own test (usePageAssignment.printPage-35250.test.tsx:111, objectstack PR #35461, merge 5bd72570d2): an object whose only page is a print page resolves to the derived default page.

  • test/quote-record-page.test.ts and test/contract-signed-copy.test.ts pin HotCRM's own metadata, which carries the business fact:

    • each record-page roster is exactly ['quote_print_page'] / ['contract_print_page'];
    • each print page declares print, is not isDefault and has no apps scope;
    • Print Quote's and Print Contract's bodyExtra.page name it.

    The platform test's controls show that isDefault and apps are the only two ways a print page still opens as the record page.

  • Page-roster pins are re-aimed to ['contract_print_page', 'quote_print_page']: test/action-references.test.ts (both pins), test/detail-section-dedup.test.ts and test/metadata-references.test.ts (both pins).

Full suite (head a178170)
  • pnpm exec vitest run --maxWorkers=2 (the whole of pnpm test), run once under the shared lock on a1781706: Test Files 345 passed (345), Tests 6594 passed | 58 skipped (6652), VERDICT command-exit 0, 33m55s.
  • The premise was read at @object-ui/console@19.0.0-next.2 (usePageAssignment.ts) and in the installed console bundle. 18.6.0 has no print branch there.

Acceptance notes

Verification

Local readings (head a178170)
  • Under the shared lock, pnpm validate && pnpm typecheck && pnpm lint && pnpm hygiene && pnpm build, then the 8 touched or affected test files (quote-record-page, contract-signed-copy, action-references, detail-section-dedup, metadata-references, docs-declared-versions, flow-quote-print-presented, quote-lifecycle-actions): VERDICT command-exit 0.
    • validate: ✓ Validation passed, with UI: 6 Apps 32 Views 2 Pages.
    • lint (objectstack lint --strict): 0 errors, 0 warnings, 54 suggestion(s).
    • hygiene: ✓ source hygiene clean.
    • build: ✓ Build complete, 2 Pages.
    • tests: Test Files 8 passed (8), Tests 130 passed (130).
  • node scripts/check-docs-locale-parity.mjs --base origin/main: exit 0.
  • hotcrm has no dispatch-gates.mjs, so the gate list was derived by hand from package.json verify and .github/workflows/.

Read first (by risk): src/revenue/index.ts (the pages: hunk), and test/contract-signed-copy.test.ts and test/quote-record-page.test.ts (the metadata pins).

Two-minute check: open any quote, then any contract. Each shows the standard record page with the status path and the Details, Related and Attachments tabs. Then click Print Quote or Print Contract: the PDF lands in Attachments.


Generated by Claude Code

…age; the two empty shells go (#2740)

On @objectstack 19.0.0-next.2 a print page is never the record page an
object falls back to (objectstack PR #35461), so the empty default pages
that held the quote and contract print pages off the record route are
deleted with their registrations, locale-pack entries and comments. The
two print pages stay and still print by name.

Tests pin that a quote and a contract open on the derived default page
(the pinned console's pick answers no authored page) and that each print
page declares print, is no default, and prints at its named-page route.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017xRBcV3h25dAMNWki8e1ns
@vercel

vercel Bot commented Nov 29, 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 Nov 29, 2026 4:34am UTC

Request Review

@github-actions github-actions Bot added documentation Improvements or additions to documentation ci/cd CI plumbing and the verification pipeline metadata Declarative metadata — schema, security posture, UI surfaces configuration Build and app configuration files backend Server-side behaviour — hooks, flows, actions labels Nov 29, 2026
…the console's pick (#2740)

The quote and contract tests asserted the record page a record opens on
through test/helpers/record-page-pick.ts, a hand model of the console's
usePageAssignment pick and of printPageUrl. Scope rules 2-3 keep that rule
on the platform, which pins this exact case in
usePageAssignment.printPage-35250.test.tsx (objectstack PR #35461, merge
5bd72570d2). The helper and the recordPageOpened / printRoute cases go;
the static pins on this repo's own metadata stay: each object's record-page
roster is exactly its print page, which declares print, is not isDefault
and declares no apps.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017xRBcV3h25dAMNWki8e1ns
Brings in the shard-2 timeout fix from #2854.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017xRBcV3h25dAMNWki8e1ns
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:hotcrm#2 · sunhaolin · session_017xRBcV3h25dAMNWki8e1ns

维护者速读

席位核对 — ACCEPT · repo:hotcrm#2 · head a7018ff

  1. Shape. The two empty default record pages, quote_detail.page.ts and contract_detail.page.ts, are deleted, along with their registrations and 8 locale entries. The two print pages are kept. No governed path is touched (get_files read by the seat). Reviewer class.
  2. Premise measured. At @object-ui/console@19.0.0-next.2, usePageAssignment skips a page that declares print; 18.6.0 has no such branch. The platform pins hotcrm's exact case in usePageAssignment.printPage-35250.test.tsx:111 (objectstack PR #35461, merge 5bd72570d2). HotCRM's tests pin its own metadata:
    • each roster holds the print page only;
    • each print page declares print, is not isDefault and has no apps;
    • the print actions name the page.
  3. Gate check-runs on a7018ffa. 19 of 19 succeed, read by the seat and by L1, shard 2 included after main brought test(psa): give the bulk-submit cases of hotcrm#2764 a measured budget (#2849) #2854.
  4. Accepted deviations.
    • First L1 should-fix: the hand-modelled pick helper is deleted (019931ca), confirmed by the delta L1.
    • Nit, left as is: the Print Contract bodyExtra pin sits in an older describe block that does not cite #35461.
    • Not browser-verified, as the PR body states.
  5. Out of scope. Old bookmark links to the two deleted pages; the changeset tells customers. Skills-docs: is not owed.
  6. Landing. Reviewer class: the seat marks it ready and turns on auto-merge, and the merge queue squashes. Fixes #2740 closes the card.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Server-side behaviour — hooks, flows, actions ci/cd CI plumbing and the verification pipeline configuration Build and app configuration files documentation Improvements or additions to documentation metadata Declarative metadata — schema, security posture, UI surfaces

Projects

None yet

2 participants