Repository navigation
feat(ux): one primary action per record header, the rest in ⋯ (#2720) - #2923
Merged
Merged
Conversation
…low menu (#2720) Each object that places actions on its record page now declares actionLayout.record (spec 19): pinned names the header's one button, and every other action goes to the header's overflow menu. On the quote, the order and the expense report the button follows the status: pinned names the step out of each status, and no status offers two of them. The knowledge article keeps Helpful and Not Helpful both as buttons, a deliberate exception written beside its declaration and in the test. The lead's three negative order values (#2382) are replaced by the lead's actionLayout (Convert Lead pinned; Qualify Lead and Schedule Follow-up lead the menu), and the action-references case that pinned the old order is replaced by test/record-primary-action.test.ts. Save-together needs no inlineEdit on the pinned 19.0.0-next.3: measured in the console, the record page's Edit draws the deal's and the quote's lines as an editable grid from their fieldGroups relatedList entry, and one Save sends one POST /api/v1/batch that stores the parent field and the line. Docs: the header descriptions of accounts, deals, leads, cases, orders, quotes, contracts and calls/meetings, in en, zh-Hans and zh-Hant, and the in-app activities manual. Claude-Session: https://claude.ai/code/session_017xRBcUpajguxop2zMyDN9K
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
CI shard 5 on 9f403d3 timed out 'prices the quote from the opportunity and advances the stage to proposal' at 5141 ms against vitest's 5 s default, on a loaded runner. The actionLayout change does not touch it: measured with the json reporter, --maxWorkers=2, 3 runs each, the case took 1507-1734 ms on the merge base 84b0932 and 1568-1807 ms on 9f403d3 (interleaved, under the verify lock), and 2048-2281 ms on origin/main d5d64b2 against 1800-1920 ms on this branch (interleaved, unlocked). So, the #2904 way (hotcrm#2855): the case gets its own 15_000 budget with a one-line reason. The global timeout is unchanged and nothing is skipped. Claude-Session: https://claude.ai/code/session_017xRBcUpajguxop2zMyDN9K
Contributor
Author
|
repo:hotcrm@sunhaolin · sunhaolin · session_017xRBcUpajguxop2zMyDN9K 席位核对 · L1 ACCEPT · head
|
This was referenced Dec 2, 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.
Closes #2720
Clause-②: no
Metadata-protocol: none
Metadata-impact: reviewer
维护者速读
What changes
Item 3 of the card: each object that places actions on its record page declares
actionLayout.record(pinned@objectstack/spec19.0.0-next.3).pinnednames the header's one button; every other action goes to the header's ⋯ menu.pinnednames the step out of each status. Each is offered on its own status only, so the header shows one button at a time. The test evaluates every pinned action'svisibleover every status option and fails if two can show together.TWO_BUTTONSroster.ordervalues that kept Qualify, Convert and Schedule Follow-up first (Record page v3: retire the authored full pages of lead / account / opportunity / case in favour of the synthesized v3 page, and declare the quote and opportunity line items as body tables #2382) are replaced by the lead'sactionLayout. Theaction-referencescase that pinned that order is replaced by the new test.crm_opportunity_line_item.crm_opportunitynorcrm_quote_line_item.crm_quoteneedsinlineEditto offer saving a record with its lines. The parent'sfieldGroups[].relatedListentry places the lines, and the console picks the grid form factor by default: each child has 7 editable fields, under the threshold of 8, and none of them is form-only. One Save sends onePOST /api/v1/batch, which stores both the parent field and the line (see Verification). So noinlineEditis added, as 「明细网格等发版」 asked.Tests
test/record-primary-action.test.ts, with 23 cases:complete_sales_order.visiblealso offered ondraft(blob40cdbe27to443564fe): 1 failed / 22 passed, only the sales-order one-at-a-time case.log_callinstead ofgenerate_quote: 1 failed / 22 passed, only the table case.Local runs (head 9f403d3)
pnpm validate && pnpm typecheck && pnpm lint && pnpm hygiene && pnpm build, under the verify lock:VERDICT command-exit 0. The build reports 56 actions and no warning aboutactionLayout.docs-*, action and metadata references, record pages, quote, case, task and lead suites. Result: 1 failed (the superseded lead-order case, then replaced), 1156 passed.action-references,record-primary-action,docs-locale-parity,docs-locale-structure,docs-drift,changeset-version-wrapper). Result: 84/84,VERDICT command-exit 0.vitest run: NOT MEASURED locally. It ran past the 580 s foreground cap on the shared box (exit 124) and is left to CI.Acceptance notes
fieldGroups[].relatedList. That is why this PR closes the card.Verification
Measured on 19.0.0-next.3 with
objectstack dev, the seeded demo,admin@objectos.ai, Chromium at 1280x800. Header buttons left of Edit, then the ⋯ items:Header and ⋯ per object
Save-together, no inlineEdit
POST /api/v1/batchand got 200. Read back:next_stepwas stored and the line's quantity was 2.amountrolled up to 145000, which opened the existing large-deal approval.POST /api/v1/batchand got 200. Read back:descriptionwas stored, the line's quantity was 2, andsubtotal/total_pricerolled up.Two-minute check: run
pnpm dev, open any opportunity and look at the header. Expected: Generate Quote and Edit are the only buttons, and Log a Call is under ⋯.🤖 Generated with Claude Code
https://claude.ai/code/session_017xRBcUpajguxop2zMyDN9K