Repository navigation
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 intoNov 29, 2026
Conversation
…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
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
…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
This was referenced Nov 29, 2026
Brings in the shard-2 timeout fix from #2854. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017xRBcV3h25dAMNWki8e1ns
Contributor
Author
|
repo:hotcrm#2 · sunhaolin · session_017xRBcV3h25dAMNWki8e1ns 维护者速读
席位核对 — ACCEPT · repo:hotcrm#2 · head a7018ff
|
This was referenced Nov 29, 2026
Merged
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 #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.
维护者速读
What changes
src/revenue/pages/quote_detail.page.tsandsrc/sales/pages/contract_detail.page.ts. Each was an emptykind: 'slotted'page withisDefault: trueandslots: {}. It existed only because the console's record route fell back to an object's first record page, which was the print page.5bd72570d2.@object-ui/console@19.0.0-next.2tag,usePageAssignment.tspickscandidates.find(default) ?? candidates.find(p => !declaresPrint(p)) ?? null. At@18.6.0the same file has 0 hits forprint.@objectstack/console19.0.0-next.2,dist/assets/framework-*.js), the same code is minified asi.find(t=>l(t)===e)??i.find(e=>!my(e))??null, wheremy(e)ise.print!==null&&typeof e.print=="object".buildDefaultPageSchemaderives from the object.pages: [QuotePrintPage]. The sales pages barrel exports onlyContractPrintPage, andobjectstack.composition.tspicks it up through the barrel; its stale "homeamong them" comment is corrected.quote_detail_pageandcontract_detail_pageentries are removed from all four packs of both packages (en, zh-CN, es-ES, ja-JP).contract.actions.ts) now say why the print page is not the default and that the door prints it by name.docs/STATUS.mdchanges from 4 to 2 Pages, the figurepnpm validateprints. 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/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, merge5bd72570d2): an object whose only page is a print page resolves to the derived default page.test/quote-record-page.test.tsandtest/contract-signed-copy.test.tspin HotCRM's own metadata, which carries the business fact:['quote_print_page']/['contract_print_page'];print, is notisDefaultand has noappsscope;bodyExtra.pagename it.The platform test's controls show that
isDefaultandappsare 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.tsandtest/metadata-references.test.ts(both pins).Full suite (head a178170)
pnpm exec vitest run --maxWorkers=2(the whole ofpnpm test), run once under the shared lock ona1781706:Test Files 345 passed (345),Tests 6594 passed | 58 skipped (6652),VERDICT command-exit 0, 33m55s.@object-ui/console@19.0.0-next.2(usePageAssignment.ts) and in the installed console bundle. 18.6.0 has noprintbranch there.Acceptance notes
quote_detail|contract_detail|QuoteDetailPage|ContractDetailPage|Quote Detail|Contract Detail, plus the pack labels 报价详情, 合同详情, 見積詳細, 契約詳細, Detalle de Cotización and Detalle del Contrato. ExcludingCHANGELOG.md: before, the identifiers alone matched 42 lines in 21 files, and the pack labels sit on the lines after their keys. After, both patterns match 0 lines. Two other hits match the words but not the pages, and are left: the Generate Quote flow's "Quote Details" screen (with its ja-JP title 見積詳細), and the R12 row ofdocs/architecture/module-split-hard-edges.md, which names that screen.CHANGELOG.mdkeeps its dated mentions, and this PR's changeset names the two pages for customers. In e2e: 0 before, 0 after.refuseUnlessPrintPage, service-print 19.0.0-next.2) resolves the page by name, requires a record page of the object that declaresprint, and never readsisDefault. The console opens it by name (opts.pageNamewins before any fallback). The print pages were never the default, so their route stays…/page/quote_print_pageand…/page/contract_print_page.…/record/ID/page/quote_detail_pageand…/record/ID/page/contract_detail_pageno longer resolve. The changeset tells customers; the record's own address opens the default page as before.37b869d7onclaude/vigilant-tesla-nnr4tstouches 5 files:src/revenue/flows/index.ts,quote-discount-approval.flow.ts,src/revenue/index.ts,quote.object.tsandsrc/sales/objects/_thresholds.ts. It does not touchquote_detail.page.ts, and itssrc/revenue/index.tshunks (the flow import and the flow list) are far from this PR's two (the pages import andpages:).origin/mainasc6e64eed27, butmainhad moved 4 commits on (142e7a17: docs(agents): record the record-page and form consistency rule; correct the metadata-embed and review-effort sentences #2789, fix(psa): refuse an expense report's submission on a locked, closed or cancelled project (#2764) #2773, fix(psa): a task moved out of Completed gives up its 100 % (#2768) #2771, fix(o2c): a payment recorded from an invoice or a billing milestone keeps it (#2755) #2760), and this branch starts there. The pin is still 19.0.0-next.2.Verification
Local readings (head a178170)
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.✓ Validation passed, withUI: 6 Apps 32 Views 2 Pages.objectstack lint --strict): 0 errors, 0 warnings,54 suggestion(s).✓ source hygiene clean.✓ Build complete,2 Pages.Test Files 8 passed (8),Tests 130 passed (130).node scripts/check-docs-locale-parity.mjs --base origin/main: exit 0.dispatch-gates.mjs, so the gate list was derived by hand frompackage.jsonverifyand.github/workflows/.Read first (by risk):
src/revenue/index.ts(thepages:hunk), andtest/contract-signed-copy.test.tsandtest/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