You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Order lines tab: the card's subtitle reads an unlabelled "1 · 1" (line number · quantity); show "Qty 1 × Unit Price ¥2,000.00 · Discount 10%" instead #2828
Filing gate ③ (maintainer-directed) · Source: maintainer — Irene, in the test thread 「测试标准版 HotCRM」: after dropping two suggestions and asking for a new mock-up (2026-11-27T07:24Z), 「就按这个改」 (2026-11-27T07:25Z). Found on the standard-edition test site (HotCRM main, platform 18.6.0), as admin. · Type: Feature (UX improvement, not a bug: not queued; the maintainer schedules it) · Grade: left to triage.
Where
Sales → Orders → open an order (e.g. SO-0004) → Order Lines tab. In a narrow window the lines render as cards.
Today
Each card: the product name as the title, then a line reading "1 · 1", and the line total "2,000.00" bottom right.
"1 · 1" is line number · quantity, with no labels, so you cannot tell which is which. Unit price and discount are not on the card at all, so "quantity × unit price = amount" cannot be checked at a glance.
Source: src/sales/objects/sales_order_line.object.ts, the order lookup's relatedListColumns: ['line_number', 'product_title', 'quantity', 'unit_price', 'discount', 'total_price']. The platform card has one title line and one subtitle line (objectstack#28484), and the subtitle takes the line number and quantity.
Wanted (from the approved mock-up)
The line number becomes a small grey prefix to the title: "1. 实施服务" (Implementation Services).
The subtitle spells it out: "数量 1 × 单价 ¥2,000.00" (Qty 1 × Unit Price ¥2,000.00). When the line has a discount, append "· 折扣 10%" (Discount 10%), highlighted (orange in the mock-up).
The amount stays where it is, bottom right, and the card height does not change. The amount gets its currency symbol: "¥2,000.00".
Not wanted (the maintainer dropped these explicitly): moving the amount onto the title line, and a totals row under the list.
Acceptance
The order-line card shows quantity, unit price and discount directly; the unlabelled "1 · 1" is gone.
The wide-window table view is unchanged and keeps its columns.
Whether quote line items (quote_line_item) get the same treatment is the maintainer's call; consistency is preferred.
Approach
Solve it in HotCRM metadata first: reorder relatedListColumns, or add a read-only text formula field (e.g. a line summary of "qty × unit price · discount") in the subtitle slot. If the platform card cannot do the title prefix or the currency symbol, split that part into an objectstack card. The dev confirms which.
Dedupe: searched hotcrm (open and closed) for order line card, line_number quantity card, related list card subtitle; no duplicate. objectstack#28484 (closed) defines the one-line card subtitle.
Claim: PM loop round 1 · 2026-11-27T08:47Z
Session: session_01J8VVAk8tegvAi1ECkgCFfc
Account: huangyiirene
Branch: claude/issue-2828-order-line-card
Worktree: hotcrm-issue-2828
Domain: repo:hotcrm
Seat: repo:hotcrm#1
File surface: src/sales/objects/sales_order_line.object.ts (and quote_line_item only if kept consistent), per-locale object translations, tests, docs (+ zh twins) (stop on breach; explain in the report)
Container & model: S, mode:subagent, model: default judgment tier — hotcrm has no dispatch-gates tree, no MANDATORY line, effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: none
Premise: holds
Serial constraints cleared: #2826 (in flight) edits sales_order.object.ts / sales_order.hook.ts, not the order-line object; translation files may both change — merge, never overwrite
Triage: repo hotcrm · area:ux · Feature · p2 (docs/PRIORITIES.md: every Feature is p2).
Why: on the maintainer's word 「2828 也可以开始做」 (2026-11-27T08:46Z, project thread) — a feature dispatched at her direct request; her bugs-only standing rule covers the queue, not this ask.
{
"issue": 2828,
"status": "blocked",
"branch": "claude/issue-2828-order-line-card",
"pr": null,
"session": "session_01J8VVAk8tegvAi1ECkgCFfc",
"premise_still_valid": false,
"summary": "Measured on a local boot (HotCRM main 08a7451e, platform 18.6.0, headless Chrome at 390 px and 1280 px, order SO-0002). Nothing in the target can be done in HotCRM metadata without breaking 'the wide table is unchanged', so no PR was opened. (1) The card's bottom-right number is the UNIT PRICE, not the line total. The card renderer takes the first column whose type is literally 'currency' (ObjectGrid.tsx amountCol, still the same on objectstack main 9b50fedbfa), and total_price is a formula with returnType currency, so it is never chosen. SO-0002 line 'Admin Training Workshop' (2 x 6,000, 10% off) shows 6,000.00 at the bottom right while its total is 10,800.00. The issue's 'line total 2,000.00' only matched because the quantity was 1. Moving total_price ahead of unit_price does not help, measured: the amount stays 6,000.00 and the total moves into the subtitle. (2) The subtitle is at most two unlabelled cells, taken from the column order and joined with ' · '. The renderer has no field labels, no 'x' joiner, no conditional discount part and no title prefix, and 18.6.0 has no card-layout knob for a related list (no cardFields, amountField or subtitle setting). Any column reorder changes the table. A text formula 'summary' field adds a table column, can only carry one language while the app ships four locale packs, and cannot follow the tenant currency. The one remaining input, stageField, would mean misusing the stage semantics. (3) The '¥' is not metadata and not a platform gap. It is the tenant setting Setup → Localization → Currency (localization.currency, default null). Once it is set to CNY locally, the card amount reads ¥6,000.00 and the table reads ¥6,000.00 and ¥10,800.00, with no code change. The test site has it unset. Under AGENTS.md scope rules 1, 2 and 4 the remainder is platform work: a draft objectstack card is under open_questions, not filed. The empty branch was pushed as the claim probe and has no commits.",
"tests": "No code change, so no suite run. DOM readings (data-testid grid-mobile-card / grid-card-title / grid-card-subtitle / grid-card-amount), SO-0002 at 390 px: BEFORE {title:'Admin Training Workshop', subtitle:'2 · 2', amount:'6,000.00', height:80} {title:'AI Agent Seat (Annual)', subtitle:'1 · 10', amount:'1,000.00', height:80}. Same with localization.currency=CNY: amounts '¥6,000.00' and '¥1,000.00', height 80. Experiment (reverted) with relatedListColumns [line_number, product_title, total_price, quantity, unit_price, discount]: subtitle '2 · ¥10,800.00', amount still '¥6,000.00'. Experiment [product_title, quantity, unit_price, total_price, discount, line_number]: subtitle '2 · ¥10,800.00', amount '¥6,000.00', table header reordered. Wide 1280 px table header: '#, 行号, 产品标题, 数量, 销售单价, 折扣(%), 总计' with row '2 Admin Training Workshop 2 ¥6,000.00 10.00% ¥10,800.00'. Screenshots stayed local in the scratchpad (before-390, cny-390, exp-390, exp2-390, before-1280, cny-1280).",
"gates": "NOT MEASURED: validate / typecheck / lint / vitest, reason: no diff, the worktree was removed clean at origin/main 08a7451e, nothing to verify; no CI check-runs because no PR.",
"dogfood_battery": "n/a — no PR",
"mcp_calls": "0",
"api_writes": "1 — POST /repos/objectstack-ai/hotcrm/issues/2828/comments (this os-dev-report via post-stamped.mjs); plus git push of the empty claim branch (not a REST write)",
"open_questions": [
{ "question": "How to proceed with #2828, given that the 18.6.0 card cannot show the target from metadata?", "options": ["A File the platform card (draft below) and keep #2828 open with Blocked-by on it; resume in HotCRM only if the platform adds a per-object card layout that needs metadata", "B Accept a table change now: reorder relatedListColumns to improve the subtitle (e.g. quantity · unit price). The amount still shows the unit price, because the formula total can never be the amount in 18.6.0", "C Make total_price a stored currency field written by a hook so it can take the amount slot"], "recommendation": "A, because B breaks the 'table unchanged' acceptance and still leaves the amount misleading, and C routes around a platform defect, which AGENTS.md scope rule 2 forbids." },
{ "question": "Draft objectstack card (not filed): 'Related-list phone card: amount slot ignores currency formulas, and the card cannot show labelled qty × price · discount'. Seam: spec:Field.formula returnType 'currency' → renderer:ui/packages/plugin-grid/src/ObjectGrid.tsx amountCol (c.type === 'currency'). reach: HotCRM order SO-0002 Order Lines tab at 390 px shows unit price 6,000.00 where the line total is 10,800.00. Asks: (a) defect — a formula or summary column whose returnType is currency must be eligible for the amount slot, so a line card's amount is its total; (b) feature — a related list's card needs a way to say which fields fill the subtitle, with field labels or a format, and an optional title prefix (line number); today the subtitle is the first two unlabelled cells of the table column order, so the card cannot change without changing the wide table. Dedupe words: phone card amount formula currency, related list card subtitle labels, grid-card-amount returnType. Should it be filed as one card or as two (defect a, feature b)?", "options": ["A two cards: defect (a) and feature (b)", "B one card"], "recommendation": "A, because (a) is a defect with a one-line fix and should not wait for the feature design." },
{ "question": "The '¥' is the tenant setting Setup → Localization → Currency, which is unset on the standard-edition test site. Should the site admin set it to CNY?", "options": ["A set it on the test site (no code)", "B leave it"], "recommendation": "A, because it adds ¥ to every amount on the site, the order-line card and table included, which item 3 of the mock-up asks for." }
],
"security_findings": "none",
"out_of_scope_findings": ["class: a · reach: HotCRM SO-0002 Order Lines at 390 px, the amount shows 6,000.00 (unit price) for a 10,800.00 line · evidence: DOM reading above; ObjectGrid.tsx amountCol filters c.type === 'currency', so a formula with returnType currency is never eligible · carrier: objectstack · dedupe words: phone card amount formula currency, grid-card-amount returnType", "quote_line_item: same card mechanism, so it has the same limits; not touched, follow-up rides the same platform card · carrier: objectstack"]
}
Dev round result 2026-11-27T08:59Z (report comment 7214141654): nothing in the target can be done in HotCRM metadata on 18.6.0 without changing the wide table, so no PR was opened.
The card's bottom-right number is the unit price, not the line total. The renderer's amount slot takes the first column whose type is literally currency (ObjectGrid.tsx amountCol), and total_price is a currency-returning formula. Measured on SO-0002: 2 × 6,000 less 10% shows 6,000.00, while the total is 10,800.00.
The subtitle is the first two unlabelled cells of the table's column order. There is no label, no "×" joiner, no conditional discount and no title prefix, and 18.6.0 has no card-layout setting for a related list.
The "¥" comes from the tenant setting Setup → Localization → Currency, not from metadata.
pm:dispatched comes off and the card moves to needs-user-decision. The maintainer is asked in the project thread whether to file the platform cards (amount-slot defect plus card-layout feature) and hold this one on them.
Ruling 2026-11-27T09:03Z (maintainer, project thread decision card): file the platform cards and hold this one on them.
Blocked-by: objectstack-ai/objectstack#37890 (the card's amount slot ignores currency formulas, so it shows the unit price) and objectstack-ai/objectstack#37891 (configurable related-list card subtitle and title prefix).
Restart-when: an @objectstack/* release carrying both is pinned in HotCRM. HotCRM then only declares the card layout for order lines, and quote line items for consistency.
The "¥" needs no code: it comes from the tenant setting Setup → Localization → Currency (CNY).
Cross-seat note for the seat of this card · 2026-11-28T07:53Z · from objectstack seat 3, which carries objectstack-ai/objectstack#37891 (one of this card's two blockers).
Ruled on objectstack#37891 (objectstack maintainer, 2026-11-28, comment 7235312203): option A. A phone card follows the object's highlightFields: amount = the first field in that list that draws as money; subtitle = the following fields in that order, at most 3 parts, empty values dropped, number/currency/percent parts carry their localized field label. No new key, and no line-number title prefix, no "×" joiner. PR feat(plugin-grid): phone cards follow the object's highlightFields for their amount and subtitle objectstack#38214 is accepted and queued.
What this card then needs (once a release carrying #38214 is installable here, not at merge): on sales_order_line, highlightFields: ['total_price', 'quantity', 'unit_price', 'discount'] (line 46 today) gives "Quantity 2 · Sales Price ¥6,000.00 · Discount % 10.00%" with ¥10,800.00 bottom right, wide table unchanged; quote_line_item (line 72) the same for consistency. Wanted item 1 (the line-number prefix) is not delivered by the platform; whether a formula nameField is wanted for it, given it also changes the record page heading, is this card's maintainer's call.
Side effect to review in the same PR: under A, 134 of HotCRM's 138 phone card surfaces change (HotCRM's highlightFields order differs from its list-view column order on nearly every object; 22 change their amount). Measured by the #37891 card thread at hotcrm 9b3a9ba (/mnt/project-files/card-37891/measure/ in the objectstack project). The other objects' highlightFields order is worth a pass so their cards stay sensible; it also reorders default list columns, pickers and hover cards.
The blocker line objectstack-ai/objectstack#37891 stays as written; when it closes, the unlock test is that the installed @objectstack/* release contains the #38214 merge.
Activity
objectstack-fleet commentedon Nov 27, 2026
repo:hotcrm#1 · huangyiirene · session_01J8VVAk8tegvAi1ECkgCFfc
Claim: PM loop round 1 · 2026-11-27T08:47Z
Session:
session_01J8VVAk8tegvAi1ECkgCFfcAccount:
huangyiireneBranch:
claude/issue-2828-order-line-cardWorktree:
hotcrm-issue-2828Domain:
repo:hotcrmSeat:
repo:hotcrm#1File surface:
src/sales/objects/sales_order_line.object.ts(andquote_line_itemonly if kept consistent), per-locale object translations, tests, docs (+ zh twins) (stop on breach; explain in the report)Container & model:
S,mode:subagent,model: default judgment tier — hotcrm has no dispatch-gates tree, no MANDATORY line,effort: mediumClause-②: no
Metadata-protocol: none
Responsibility:
n/a — not a defect cardThread-read: none
Premise: holds
Serial constraints cleared: #2826 (in flight) edits
sales_order.object.ts/sales_order.hook.ts, not the order-line object; translation files may both change — merge, never overwriteTriage: repo hotcrm · area:ux · Feature · p2 (docs/PRIORITIES.md: every Feature is p2).
Why: on the maintainer's word 「2828 也可以开始做」 (2026-11-27T08:46Z, project thread) — a feature dispatched at her direct request; her bugs-only standing rule covers the queue, not this ask.
objectstack-fleet commentedon Nov 27, 2026
repo:hotcrm#1 · huangyiirene · session_01J8VVAk8tegvAi1ECkgCFfc
os-dev-report
{ "issue": 2828, "status": "blocked", "branch": "claude/issue-2828-order-line-card", "pr": null, "session": "session_01J8VVAk8tegvAi1ECkgCFfc", "premise_still_valid": false, "summary": "Measured on a local boot (HotCRM main 08a7451e, platform 18.6.0, headless Chrome at 390 px and 1280 px, order SO-0002). Nothing in the target can be done in HotCRM metadata without breaking 'the wide table is unchanged', so no PR was opened. (1) The card's bottom-right number is the UNIT PRICE, not the line total. The card renderer takes the first column whose type is literally 'currency' (ObjectGrid.tsx amountCol, still the same on objectstack main 9b50fedbfa), and total_price is a formula with returnType currency, so it is never chosen. SO-0002 line 'Admin Training Workshop' (2 x 6,000, 10% off) shows 6,000.00 at the bottom right while its total is 10,800.00. The issue's 'line total 2,000.00' only matched because the quantity was 1. Moving total_price ahead of unit_price does not help, measured: the amount stays 6,000.00 and the total moves into the subtitle. (2) The subtitle is at most two unlabelled cells, taken from the column order and joined with ' · '. The renderer has no field labels, no 'x' joiner, no conditional discount part and no title prefix, and 18.6.0 has no card-layout knob for a related list (no cardFields, amountField or subtitle setting). Any column reorder changes the table. A text formula 'summary' field adds a table column, can only carry one language while the app ships four locale packs, and cannot follow the tenant currency. The one remaining input, stageField, would mean misusing the stage semantics. (3) The '¥' is not metadata and not a platform gap. It is the tenant setting Setup → Localization → Currency (localization.currency, default null). Once it is set to CNY locally, the card amount reads ¥6,000.00 and the table reads ¥6,000.00 and ¥10,800.00, with no code change. The test site has it unset. Under AGENTS.md scope rules 1, 2 and 4 the remainder is platform work: a draft objectstack card is under open_questions, not filed. The empty branch was pushed as the claim probe and has no commits.", "tests": "No code change, so no suite run. DOM readings (data-testid grid-mobile-card / grid-card-title / grid-card-subtitle / grid-card-amount), SO-0002 at 390 px: BEFORE {title:'Admin Training Workshop', subtitle:'2 · 2', amount:'6,000.00', height:80} {title:'AI Agent Seat (Annual)', subtitle:'1 · 10', amount:'1,000.00', height:80}. Same with localization.currency=CNY: amounts '¥6,000.00' and '¥1,000.00', height 80. Experiment (reverted) with relatedListColumns [line_number, product_title, total_price, quantity, unit_price, discount]: subtitle '2 · ¥10,800.00', amount still '¥6,000.00'. Experiment [product_title, quantity, unit_price, total_price, discount, line_number]: subtitle '2 · ¥10,800.00', amount '¥6,000.00', table header reordered. Wide 1280 px table header: '#, 行号, 产品标题, 数量, 销售单价, 折扣(%), 总计' with row '2 Admin Training Workshop 2 ¥6,000.00 10.00% ¥10,800.00'. Screenshots stayed local in the scratchpad (before-390, cny-390, exp-390, exp2-390, before-1280, cny-1280).", "gates": "NOT MEASURED: validate / typecheck / lint / vitest, reason: no diff, the worktree was removed clean at origin/main 08a7451e, nothing to verify; no CI check-runs because no PR.", "dogfood_battery": "n/a — no PR", "mcp_calls": "0", "api_writes": "1 — POST /repos/objectstack-ai/hotcrm/issues/2828/comments (this os-dev-report via post-stamped.mjs); plus git push of the empty claim branch (not a REST write)", "open_questions": [ { "question": "How to proceed with #2828, given that the 18.6.0 card cannot show the target from metadata?", "options": ["A File the platform card (draft below) and keep #2828 open with Blocked-by on it; resume in HotCRM only if the platform adds a per-object card layout that needs metadata", "B Accept a table change now: reorder relatedListColumns to improve the subtitle (e.g. quantity · unit price). The amount still shows the unit price, because the formula total can never be the amount in 18.6.0", "C Make total_price a stored currency field written by a hook so it can take the amount slot"], "recommendation": "A, because B breaks the 'table unchanged' acceptance and still leaves the amount misleading, and C routes around a platform defect, which AGENTS.md scope rule 2 forbids." }, { "question": "Draft objectstack card (not filed): 'Related-list phone card: amount slot ignores currency formulas, and the card cannot show labelled qty × price · discount'. Seam: spec:Field.formula returnType 'currency' → renderer:ui/packages/plugin-grid/src/ObjectGrid.tsx amountCol (c.type === 'currency'). reach: HotCRM order SO-0002 Order Lines tab at 390 px shows unit price 6,000.00 where the line total is 10,800.00. Asks: (a) defect — a formula or summary column whose returnType is currency must be eligible for the amount slot, so a line card's amount is its total; (b) feature — a related list's card needs a way to say which fields fill the subtitle, with field labels or a format, and an optional title prefix (line number); today the subtitle is the first two unlabelled cells of the table column order, so the card cannot change without changing the wide table. Dedupe words: phone card amount formula currency, related list card subtitle labels, grid-card-amount returnType. Should it be filed as one card or as two (defect a, feature b)?", "options": ["A two cards: defect (a) and feature (b)", "B one card"], "recommendation": "A, because (a) is a defect with a one-line fix and should not wait for the feature design." }, { "question": "The '¥' is the tenant setting Setup → Localization → Currency, which is unset on the standard-edition test site. Should the site admin set it to CNY?", "options": ["A set it on the test site (no code)", "B leave it"], "recommendation": "A, because it adds ¥ to every amount on the site, the order-line card and table included, which item 3 of the mock-up asks for." } ], "security_findings": "none", "out_of_scope_findings": ["class: a · reach: HotCRM SO-0002 Order Lines at 390 px, the amount shows 6,000.00 (unit price) for a 10,800.00 line · evidence: DOM reading above; ObjectGrid.tsx amountCol filters c.type === 'currency', so a formula with returnType currency is never eligible · carrier: objectstack · dedupe words: phone card amount formula currency, grid-card-amount returnType", "quote_line_item: same card mechanism, so it has the same limits; not touched, follow-up rides the same platform card · carrier: objectstack"] }Generated by Claude Code
objectstack-fleet commentedon Nov 27, 2026
repo:hotcrm#1 · huangyiirene · session_01J8VVAk8tegvAi1ECkgCFfc
Dev round result 2026-11-27T08:59Z (report comment 7214141654): nothing in the target can be done in HotCRM metadata on 18.6.0 without changing the wide table, so no PR was opened.
currency(ObjectGrid.tsxamountCol), andtotal_priceis a currency-returning formula. Measured on SO-0002: 2 × 6,000 less 10% shows 6,000.00, while the total is 10,800.00.pm:dispatchedcomes off and the card moves toneeds-user-decision. The maintainer is asked in the project thread whether to file the platform cards (amount-slot defect plus card-layout feature) and hold this one on them.objectstack-fleet commentedon Nov 27, 2026
repo:hotcrm#1 · huangyiirene · session_01J8VVAk8tegvAi1ECkgCFfc
Ruling 2026-11-27T09:03Z (maintainer, project thread decision card): file the platform cards and hold this one on them.
Blocked-by: objectstack-ai/objectstack#37890 (the card's amount slot ignores currency formulas, so it shows the unit price) and objectstack-ai/objectstack#37891 (configurable related-list card subtitle and title prefix).
Restart-when: an
@objectstack/*release carrying both is pinned in HotCRM. HotCRM then only declares the card layout for order lines, and quote line items for consistency.The "¥" needs no code: it comes from the tenant setting Setup → Localization → Currency (CNY).
objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Cross-seat note for the seat of this card · 2026-11-28T07:53Z · from objectstack seat 3, which carries objectstack-ai/objectstack#37891 (one of this card's two blockers).
highlightFields: amount = the first field in that list that draws as money; subtitle = the following fields in that order, at most 3 parts, empty values dropped, number/currency/percent parts carry their localized field label. No new key, and no line-number title prefix, no "×" joiner. PR feat(plugin-grid): phone cards follow the object's highlightFields for their amount and subtitle objectstack#38214 is accepted and queued.sales_order_line,highlightFields: ['total_price', 'quantity', 'unit_price', 'discount'](line 46 today) gives "Quantity 2 · Sales Price ¥6,000.00 · Discount % 10.00%" with ¥10,800.00 bottom right, wide table unchanged;quote_line_item(line 72) the same for consistency. Wanted item 1 (the line-number prefix) is not delivered by the platform; whether a formula nameField is wanted for it, given it also changes the record page heading, is this card's maintainer's call.highlightFieldsorder differs from its list-view column order on nearly every object; 22 change their amount). Measured by the #37891 card thread at hotcrm 9b3a9ba (/mnt/project-files/card-37891/measure/ in the objectstack project). The other objects'highlightFieldsorder is worth a pass so their cards stay sensible; it also reorders default list columns, pickers and hover cards.objectstack-ai/objectstack#37891stays as written; when it closes, the unlock test is that the installed@objectstack/*release contains the #38214 merge.