Skip to content

Commit e95210d

Browse files
feat(approvals): the approval request page shows the whole business record (#34631)
<!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBCAJcTbxAnnc3gf8ESZGP1U)_ repo:objectstack#3 · os-support-ai · session_01WGufzhGHzMtixGDQoMmtqq Fixes #34588 Clause-②: yes (widening — new @object-ui/i18n locale keys only; no metadata or schema accept set) Metadata-protocol: none ## 维护者速读 - 改了什么:审批请求页去掉「详情 / 时间线」两个标签页。审批按钮下面直接显示整条业务记录,分组和对象的默认记录页一致;下面是只读子表;右栏依次是审批进度、附件、动态,动态在最后。 - 为什么改:以前只显示金额加 6 个字段,审批人要跳到业务记录才能看全(维护者 2026-11-17:「审批页应该直接显示完整的记录;「动态」在最后」)。 - 风险与回滚:只改前端展示和请求页的页面元数据,不改快照存储和字段权限,审批页上不能编辑。回滚就是 revert 本 PR。改动 3463 行,超过 3000 行门槛,属于 Tier H。 - 先看:`ui/packages/app-shell/src/views/approval-decision/SubmittedRecord.tsx` 的文件头(规则),再看 `ApprovalDecisionPanel.tsx` 的布局。 - 两分钟验证:打开一条待审批的请求,确认整条记录都在。到业务记录上改一个字段后刷新,该字段应显示「已改动」和当前值。右栏顺序应是审批进度、附件、动态。 - 需要你做的:审一下,因为是 Tier H,需要 os-zhuang 或 hotlong 批准后才能合并。 ## What changes **The request page** (`packages/plugins/plugin-approvals/src/sys-approval-request.page.ts`): `page:header` → `record:highlights` → `record:approval_decision`, with no `page:tabs`. The Details tab (the request's own fields) and the Timeline tab (the `sys_approval_action` related list) are gone. Their content is now inside the decision panel. No node type or prop was added: `record:approval_decision` keeps its empty strict props row, so every part of the layout lives in the panel. **The decision panel** (`ui/packages/app-shell/src/views/approval-decision/`): - **Top:** the "Flow-initiated" marker, the deciding comment, and the declared decision actions. All unchanged. #34361 ruling A is not touched. - **Left column, "As submitted"** (`SubmittedRecord.tsx` + pure `submittedRecordPlan.ts`): - Every field of the request's `payload` snapshot that the reader may read, in the sections of the target object's default record page (`deriveRecordDetailSections` with field groups resolved), each through the record page's own cell, with `payload_display` names for references. - Not drawn: undeclared keys, `hidden: true` fields, framework columns, and fields the reader may not read. Field-level security is unchanged. The service redacts per reader, and both rows also pass `withoutDeniedFields`. - One `findOne(object, id)` (no params) reads the current record. A field whose current value differs is marked **Changed** (已改动) with its current value. `valuesDiffer` treats empty values as equivalent, numbers by value, dates by instant, references by id (stored or expanded), and lists as sets. - If the record cannot be read (refused, gone, not found), nothing is marked and the card says so. - "Open record" links to the business record. - **Child tables:** owned `master_detail` children and `relatedList: 'primary'` tables (`deriveRelatedLists`), each a plugin-detail `RelatedList` with no New, Add, edit or row action. They show CURRENT rows, with a note saying so, because the snapshot keeps the record's own row only. They are drawn only once the record reads. - **Right rail, in this order:** - Approval progress: the step line, the tally, and who it waits on. - Attachments: the record's file and image fields. - Activity: the request's thread, newest first, through the new `approval-progress/ApprovalActionTimeline.tsx`, which `RecordApprovalsPanel` now shares, so the two timelines cannot drift. - The thread is read through the page's adapter (`useRecordContext().dataSource`, which the console routes to `GET /approvals/requests/:id/actions`). It is read only on a read verdict for `sys_approval_action`, as the Timeline related list was. - **Retired:** `RecordSnapshotSummary.tsx`, `snapshotSummaryPlan.ts` and its test (the six-row cut and the amount lead). **Copy:** seven new `approvalsInbox.*` keys in all eleven `@object-ui/i18n` packs: `snapshotChanged`, `snapshotCurrentValue`, `snapshotOpenRecord`, `snapshotCurrentUnreadable`, `snapshotChildCurrent`, `progressTitle`, `attachmentsTitle`. **Why this route, not embedding the business record page:** the record page is a live, editable surface with its own approval bar (#34361) and header actions. Embedding it would put editing and a second decision bar on the request page, and it would show current values, not the evidence the approver is asked to decide on. The snapshot-faithful card keeps the submitted values primary and marks the drift. The seat accepted this route on the card thread. **Not done (card 不做):** no editing; no change to snapshot storage. Child tables show current values, marked as such. ## Tests - New `submittedRecordPlan.test.ts` (plan and comparison rules) and `ApprovalDecisionPanel.fullRecord-34588.test.tsx`. The second covers acceptance 1–3 on a 14-field record with groups, a denied field, a `master_detail` child, a changed field, rail order, child tables read-only, the `findOne` call shape, and an unreadable CONTROL. - Updated app-shell pins: `ApprovalDecisionPanel.test.tsx` (directory-read counts now exclude the one thread read; the pending CONTROL expects that read), `ApprovalDecisionPanel.stepLine-12491.test.tsx` (decisions on top, then line above tally inside the progress card), and `ApprovalDecisionPanel.decidedSnapshot-27502.test.tsx` (testids). `RecordApprovalsPanel` tests are unchanged and green. - `sys-approval-request-page.test.ts`: the body order is header, highlights, decision, with a new "has no tabs" test. The step_label timeline-column test is retired along with the tab. ### Console pins rewritten (seat-widened surface: `approvalRequestsDataSource.servedPage*.test.tsx`) The "Card line" column cites the card's 要做的 items. Item 1 is 「请求页在审批条下方直接显示该业务记录的完整内容:全部可读字段按对象的分组排列、子表(相关列表,只读)、附件」. Item 2 is 「提交后被改过的字段在旁边标出「已改动」并能看到当前值」. Item 4 is 「字段级权限照旧」. `approvalRequestsDataSource.servedPageSummary-12483.test.tsx` | Pin | Old assertion | New assertion | Card line | |---|---|---|---| | served page shape | `components[1]` is `record:approval_decision` (page with tabs) | the last component is `record:approval_decision`; no `page:tabs` | 1, 3 and the ruling 「「动态」在最后」 | | labels and faces | the unresolved reference `contact` takes no row, and its raw id is never printed | `contact` is drawn as the record page draws it (the lookup cell's unresolved-reference face) | 1 (all readable fields) | | amount | the amount leads (`[data-summary-lead]`) and is not repeated as a row | no lead; `amount` is an ordinary field, drawn once, through the currency face | 1 | | hidden field | rows are exactly the six: `name, account, cost_center, region, status, issued_on` | rows are all ten declared visible fields; `internal_score` stays out | 1 (not only 6) | | COUNTER-PROBE nothing hidden | `internal_score` drawn and the last row is cut | `internal_score` drawn, nothing cut (11 rows) | 1 | | hidden amount | never leads, shown nowhere | shown nowhere (no lead exists) | 1 | | field permissions | denied fields' slots go to the next fields (six rows) | the full list minus `cost_center` and `amount`; neither value anywhere | 1, 4 | | COUNTER-PROBE allowed | `lead.key === 'amount'` | `amount` is drawn | 1 | | no read of the record | no read beyond the approvals get; no `invoice` path on the transport | one `host.findOne('invoice', 'inv_1')`, no params; `amount` marked Changed with its current value; an expanded same-id account is not a change; still no `invoice` path on the transport | 2 | | new CONTROL | — | a record that does not read: the unreadable note, nothing marked, all ten fields drawn | 2 | | CONTROL no payload | waits for the definition read of `invoice`, no summary | no record card; neither the definition nor the record is asked for | 1 (nothing to draw without a snapshot) | | CONTROLs: undeclared key, label clash, no definition | `record-snapshot-summary` testid | `submitted-record` testid, same assertions | 1 | | roll-up name guess | no lead; `total_amount` a row inside the six (cost center removed to make room) | no lead; `total_amount` an ordinary field (no row cut, so cost center stays) | 1 | | amount of zero | zero leads | zero is drawn as the `amount` field | 1 | `approvalRequestsDataSource.servedPageSummaryAmount-12534.test.tsx`: the whole file pinned which roll-up takes the lead. With no lead, every row below is retired by item 1. | Pin | Old assertion | New assertion | |---|---|---| | expense total | `total_amount` leads; the rows are six without it | `total_amount` is an ordinary field; all ten fields, `sum` and `count` roll-ups alike, in declared order | | invoice subtotal | `total` leads | `total` is an ordinary field | | definition read | the summarized object's definition is read once; no record read | the summarized object's definition is never read (the record read is pinned in 12483) | | FLS | without `total_amount`, `approved_amount` leads | `total_amount` is not drawn; `approved_amount` still is | | CONTROL non-`sum` | no lead; `line_count` a row | folded into the expense-total test (`line_count` row) | | CONTROL `sum` over `number` | no lead | retired: no lead logic is left to control | | CONTROL currency-only | `unit_price` leads | `unit_price` is an ordinary field | | CONTROL child definition unreadable | the total is an ordinary row | retired: the total is always an ordinary row | | new | — | the record's child lines: once the record reads, `showcase_expense_line` is drawn read-only, with the current-rows note and its rows | | new CONTROL | — | a record that does not read draws no child lines and sends no child read | Not edited, and green: `approvalRequestsDataSource.decisionPage.test.tsx` (including :341, where the timeline reads the actions route and never `host.find`) and `approvalRequestsDataSource.servedPageMemberPermissions-13324.test.tsx` (including the no-`ApprovalRecordReads` control, which sends no actions GET). Both were red mid-change. The cause was fixed in source, not in the pins: the thread read now goes through the page's adapter and is gated on the read verdict. ## Acceptance notes 1. Full record below the approval bar: every readable field, grouped like the default record page; child tables read-only; attachments. ✓ (`fullRecord-34588` acceptance 1, console 12483/12534.) 2. Snapshot values, with fields changed after submission marked 「已改动」 and showing their current value. ✓ (`fullRecord-34588` acceptance 2, console 12483 "read once".) 3. Right rail: 审批进度 → 附件 → 动态. ✓ (`fullRecord-34588` rail order.) 4. Field-level security unchanged. ✓ (denied-field tests in both suites.) ## Verification Run on this head (9f91de6; the tree is identical to the gated working tree): - `pnpm exec vitest run apps/console/src/services/approvalRequestsDataSource apps/console/src/pages/system/ApprovalsInboxPage` (from `ui/`): 31 files, 219/219 pass, exit 0. - `pnpm exec vitest run packages/app-shell/src/views/approval-decision packages/app-shell/src/views/RecordApprovalsPanel` (from `ui/`): 16 files, 116/116 pass, exit 0. - `vitest run` on `packages/plugins/plugin-approvals/src/sys-approval-request-page.test.ts` and `sys-approval-request-title.integration.test.ts`: 24/24 pass, exit 0. - `tsc --noEmit`: `@object-ui/app-shell` exit 0, `@object-ui/i18n` exit 0, `@objectstack/plugin-approvals` exit 0. - `eslint` on the changed ui files: exit 0, with 0 errors and 7 warnings. The warnings are in moved code: `no-explicit-any` on `import.meta`, and react-refresh on a hook export. - `node scripts/pm/overlap-check.mjs`: VERDICT clean (merges cleanly with origin/main, #34624 and #34628), exit 0. - `node scripts/check-platform-checklist.mjs --changed-from origin/main`: exit 0. - The `dispatch-gates --commands` battery (72 commands) runs under the verify lock. Its exit codes, reconciled with `--ran`, are posted in the os-dev-report comment on #34588. ## Before / after readings - **Before** (origin/main 8dd8192): the request page has `page:tabs` (Details, Timeline). The decision panel draws "As submitted" with the amount lead and at most six rows (12483: rows `name, account, cost_center, region, status, issued_on`), and never reads the target record. - **After** (this head): no tabs. 12483 draws all ten visible fields, with `contact` through the lookup face. One `findOne('invoice','inv_1')`, and a changed `amount` carries the Changed mark with its current value (13,250) beside the submitted 12,500. 12534 draws the `showcase_expense_line` child table read-only from current rows. The rail order is progress, attachments, activity (`fullRecord-34588`). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WGufzhGHzMtixGDQoMmtqq <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufzhGHzMtixGDQoMmtqq --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 4107b3e commit e95210d

32 files changed

Lines changed: 1957 additions & 1516 deletions
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@objectstack/plugin-approvals': patch
3+
'@object-ui/app-shell': patch
4+
'@object-ui/i18n': patch
5+
---
6+
7+
feat(approvals): the approval request page shows the whole business record, not a six-field summary
8+
9+
Clause-②: yes (widening — new @object-ui/i18n locale keys only; no metadata or schema accept set)
10+
Metadata-protocol: none
11+
12+
An approver used to see the request's amount and at most six fields under "As submitted", and had to open the business record to read the rest. The request page (`sys_approval_request_detail`) now draws the request whole, with no tabs: the header, the highlights, then the decision panel (`record:approval_decision`), last.
13+
14+
- **On top:** the deciding comment on a decided request, and the request's declared decision actions, unchanged.
15+
- **Left, "As submitted":** every field of the request's snapshot the reader may read, in the sections and order of the target object's default record page, each through the record page's own cell. Field-level security is unchanged: the service's per-reader redaction and the client's field verdicts both apply. The panel reads the target record once (`findOne`, no params). A field whose current value differs from the submitted one is marked "Changed" with its current value. If the record cannot be read, nothing is marked and the card says so. Below the card are the record's child tables (owned `master_detail` children and `relatedList: 'primary'` tables). They are read-only and show CURRENT rows, with a note saying so, because the snapshot keeps the record's own row only.
16+
- **Right rail, in this order:** approval progress (the step line, the decision tally, and who the request waits on), the record's attachment fields, and the request's activity (its `sys_approval_action` thread, newest first). The activity is read only when the reader's verdict allows reading that object. In the console the approvals route answers that read for every party to the request.
17+
18+
Nothing is editable on the page, and the snapshot's storage is unchanged. The record approvals panel and the request page now share one action-timeline component. New `approvalsInbox.*` keys in all eleven `@object-ui/i18n` packs: `snapshotChanged`, `snapshotCurrentValue`, `snapshotOpenRecord`, `snapshotCurrentUnreadable`, `snapshotChildCurrent`, `progressTitle`, `attachmentsTitle`.

‎packages/plugins/plugin-approvals/src/sys-approval-request-page.test.ts‎

Lines changed: 31 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@
1111
*
1212
* 1. the plugin's manifest carries the page, so the registry — and the
1313
* metadata API reading it — has it;
14-
* 2. the page body is the one the ruling's build list names (a slotted page
15-
* until the `tabs` slot retired, objectstack#27053; rebuilt as the same
16-
* nodes in a `kind: 'full'` page): a header, one
17-
* `record:approval_decision` node, `record:details`, `sys_approval_action`
18-
* as the related list, no discussion thread, and a highlights strip that
19-
* leaves `record_id` to the details grid (the seat's choice on the ui
20-
* seat's design input `6081889955`) and names nothing by a machine name;
14+
* 2. the page body: a header, a highlights strip that leaves `record_id`
15+
* out and names nothing by a machine name, and ONE
16+
* `record:approval_decision` node that draws the rest of the page, the
17+
* business record as submitted and the rail of progress, attachments and
18+
* activity (objectstack#34588); no tabs and no discussion thread;
2119
* 3. the page passes what `os validate` judges a page by — the parse, the
2220
* component-type vocabulary, the props rows and the build rules — with a
2321
* control for each half that can go red;
@@ -49,8 +47,7 @@ const PAGE = SysApprovalRequestDetailPage as AnyRec;
4947
const COMPONENTS = (PAGE.regions?.[0]?.components ?? []) as AnyRec[];
5048
const nodeOf = (type: string): AnyRec | undefined => COMPONENTS.find((c) => c.type === type);
5149
const HIGHLIGHTS = (nodeOf('record:highlights') ?? {}) as AnyRec;
52-
const TAB_ITEMS = (nodeOf('page:tabs')?.properties?.items ?? []) as AnyRec[];
53-
/** Where the decision panel sits in the region: after the header, before the highlights. */
50+
/** Where the decision panel sits in the region: after the header and the highlights, last. */
5451
const DECISION_AT = COMPONENTS.findIndex((c) => c.type === 'record:approval_decision');
5552

5653
/** The plugin's one manifest, as `init` registers it. */
@@ -134,15 +131,15 @@ describe('sys_approval_request detail page — served through the manifest', ()
134131
});
135132

136133
describe('sys_approval_request detail page — the page body', () => {
137-
it('authors exactly the header, the decision panel, the highlights and the tabs, in the slotted order', () => {
138-
// The nodes the slotted page rendered, in the synthesizer's order: the
139-
// header it fell through to, its `actions` slot, its `highlights` slot and
140-
// its tab strip, whose first tab is the details body. Its `discussion`
141-
// slot was empty, so there is no discussion node. The header reads the
142-
// object's placed header actions live, as the synthesized one did: a bare
143-
// `page:header` drew none, so an action another package places on the
144-
// object at `record_header` was dropped (#29951).
145-
expect(COMPONENTS.map((c) => c.type)).toEqual(['page:header', 'record:approval_decision', 'record:highlights', 'page:tabs']);
134+
it('authors exactly the header, the highlights and the decision panel, the panel last (objectstack#34588)', () => {
135+
// The panel draws the rest of the page: the business record as submitted,
136+
// whole, and the rail of progress, attachments and activity, the activity
137+
// last (maintainer 2026-11-17). The header reads the object's placed
138+
// header actions live: a bare `page:header` drew none, so an action
139+
// another package places on the object at `record_header` was dropped
140+
// (#29951).
141+
expect(COMPONENTS.map((c) => c.type)).toEqual(['page:header', 'record:highlights', 'record:approval_decision']);
142+
expect(DECISION_AT).toBe(COMPONENTS.length - 1);
146143
expect(nodeOf('page:header')).toEqual({ type: 'page:header', properties: { placedActions: true } });
147144
});
148145

@@ -153,10 +150,10 @@ describe('sys_approval_request detail page — the page body', () => {
153150
});
154151

155152
it('highlights the object\'s highlightFields minus record_id, which the object itself keeps', () => {
156-
// The seat's choice on the ui seat's design input: the page's strip drops
157-
// `record_id` so the details grid keeps it (that grid is where the console
158-
// draws the target-record card of the `record_id` / `object_name` pointer
159-
// pair), and the object's `highlightFields` keeps it.
153+
// The page reaches the record the `record_id` / `object_name` pointer pair
154+
// names through the decision panel, which draws that record whole and
155+
// links to it, so the strip leaves the pair out; the object's
156+
// `highlightFields` keeps `record_id` for the other surfaces that read it.
160157
const declared = SysApprovalRequest.highlightFields ?? [];
161158
expect(declared).toContain('record_id');
162159
expect(HIGHLIGHTS.type).toBe('record:highlights');
@@ -167,9 +164,7 @@ describe('sys_approval_request detail page — the page body', () => {
167164
it('names the flow by its label, process_label, in the strip and in the object\'s list alike', () => {
168165
// `process_name` is the machine source (`flow:NAME`); `process_label` is the
169166
// flow's label, served under that name by the approvals get. The object's
170-
// list moves with the strip: the Details tab's bare `record:details` node
171-
// draws the object's `highlightFields` minus the strip, so a strip-only
172-
// change would put `process_name` in that tab.
167+
// list moves with the strip, never the strip alone.
173168
const strip = HIGHLIGHTS.properties.fields as string[];
174169
const declared = SysApprovalRequest.highlightFields ?? [];
175170
expect(strip[0]).toBe('process_label');
@@ -197,66 +192,35 @@ describe('sys_approval_request detail page — the page body', () => {
197192
expect(fields.current_step).toMatchObject({ type: 'text' });
198193
});
199194

200-
it('draws no Object chip: object_name, the target\'s API name, is in neither list, and the Details tab is the pointer pair\'s card', () => {
195+
it('draws no Object chip: object_name, the target\'s API name, is in neither list', () => {
201196
// `object_name` holds the target object's API name (`showcase_announcement`)
202-
// and the object declares no field holding that object's label. The page
203-
// names the target object on the card the console draws for the
204-
// `record_id` / `object_name` pair in the Details tab, which heads the
205-
// record with its object's label. The object's list moves with the strip
206-
// for the reason the flow chip's does: dropped from the strip alone,
207-
// `object_name` would be drawn as a row in that tab.
197+
// and the object declares no field holding that object's label. The
198+
// decision panel names the target object beside the submitted record's
199+
// heading, read from the object's definition.
208200
const strip = HIGHLIGHTS.properties.fields as string[];
209201
const declared = SysApprovalRequest.highlightFields ?? [];
210202
const fields = SysApprovalRequest.fields as AnyRec;
211203
expect({ strip: strip.includes('object_name'), declared: declared.includes('object_name') })
212204
.toEqual({ strip: false, declared: false });
213-
// The Details tab's bare `record:details` node draws the object's list
214-
// minus the strip: the id half of the pair, whose type half names the
215-
// target object.
216-
expect(TAB_ITEMS[0].children).toEqual([{ type: 'record:details' }]);
217205
expect(declared.filter((f: string) => !strip.includes(f))).toEqual(['record_id']);
218206
expect(fields.record_id?.referenceVia).toBe('object_name');
219207
// Control: the type half stays a declared, required field. It is dropped
220208
// from the two lists, not from the object.
221209
expect(fields.object_name).toMatchObject({ type: 'text', required: true });
222210
});
223211

224-
it('tabs: Details is record:details, Timeline is sys_approval_action as a related list on request_id', () => {
225-
expect(TAB_ITEMS.map((t) => t.label?.en)).toEqual(['Details', 'Timeline']);
226-
expect(TAB_ITEMS[0].children).toEqual([{ type: 'record:details' }]);
227-
const [timeline] = TAB_ITEMS[1].children as AnyRec[];
228-
expect(timeline.type).toBe('record:related_list');
229-
expect(timeline.properties).toMatchObject({ objectName: 'sys_approval_action', relationshipField: 'request_id' });
230-
// The relationship really points back at this object.
212+
it('has no tabs: the panel draws the record and, last in its rail, the request\'s thread (objectstack#34588)', () => {
213+
// The page had two tabs, Details (the pointer pair's card) and Timeline
214+
// (`sys_approval_action` as a related list). Neither is a node any more.
215+
const types = nodesOf(COMPONENTS).map((n) => n.type);
216+
expect(types.filter((t) => t === 'page:tabs' || t === 'record:details' || t === 'record:related_list')).toEqual([]);
217+
// The thread the panel reads really points back at this object.
231218
expect((SysApprovalAction.fields as AnyRec).request_id).toMatchObject({ type: 'lookup', reference: 'sys_approval_request' });
232219
});
233220

234-
it('names each Timeline step by its label, step_label, never by the node\'s machine id, step_name', () => {
235-
// Both are stored on every `sys_approval_action` row: `step_name` is the
236-
// Approval node's id (`dual_signoff`), `step_label` the step's label the
237-
// service copies from the request (`actionRow`). The existence check below
238-
// cannot tell them apart, since both are declared fields, so the choice is
239-
// pinned here, the way the strip's `current_step_label` is.
240-
const [timeline] = TAB_ITEMS[1].children as AnyRec[];
241-
const columns = timeline.properties.columns as string[];
242-
const fields = SysApprovalAction.fields as AnyRec;
243-
expect({ label: columns.includes('step_label'), machine: columns.includes('step_name') })
244-
.toEqual({ label: true, machine: false });
245-
expect(fields.step_label).toMatchObject({ type: 'text', label: 'Approval Step' });
246-
// Control: the machine id stays a declared field. It is dropped from the
247-
// Timeline, not from the object.
248-
expect(fields.step_name).toMatchObject({ type: 'text' });
249-
});
250-
251221
it('every field the page names exists on its object', () => {
252222
const requestFields = Object.keys(SysApprovalRequest.fields);
253-
const actionFields = Object.keys(SysApprovalAction.fields);
254-
const [timeline] = TAB_ITEMS[1].children as AnyRec[];
255-
const missing = [
256-
...(HIGHLIGHTS.properties.fields as string[]).filter((f) => !requestFields.includes(f)).map((f) => `request.${f}`),
257-
...(timeline.properties.columns as string[]).filter((f) => !actionFields.includes(f)).map((f) => `action.${f}`),
258-
...(timeline.properties.sort as AnyRec[]).map((s) => s.field).filter((f) => !actionFields.includes(f)).map((f) => `action.${f}`),
259-
];
223+
const missing = (HIGHLIGHTS.properties.fields as string[]).filter((f) => !requestFields.includes(f)).map((f) => `request.${f}`);
260224
expect(missing).toEqual([]);
261225
});
262226

0 commit comments

Comments
 (0)