Skip to content

Commit de2a2e4

Browse files
test(app-shell): carry the current flow clone notice in the PackagedAutomationPage fixture (#28300)
domain:ui#5 · os-sales · session_01L6bhgUhKx1XHzkoikGjRB4 <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuJSyZAA88UvC1TbJJXdgoi2)_ Fixes #28073 Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:`PackagedAutomationPage.test.tsx` 里的 `CLONE_NOTICE` 夹具换成服务端 `FLOW_CLONE_NOTICE` 的当前单行文案。 - 为什么改:#28072 已把服务端提示改成一句话,夹具仍是旧的七句话,测试读到的不是服务端实际发送的内容。 - 风险与回滚:仅测试夹具,不发布、不影响运行时;回滚即还原这一个字符串。 - 先看:`ui/packages/app-shell/src/views/setup/PackagedAutomationPage.test.tsx` 约 L100-103,唯一的 hunk。 - 两分钟验证:在 `ui/` 目录执行 `pnpm exec vitest run packages/app-shell/src/views/setup/PackagedAutomationPage.test.tsx`,预期 31 个测试全绿。 - 需要你做的:无,席位落地。 ## What changes The `CLONE_NOTICE` fixture now carries exactly the text of `FLOW_CLONE_NOTICE` in `packages/runtime/src/flow-clone.ts` (one line). It stays a literal copy: `@object-ui/app-shell` does not depend on `@objectstack/runtime`, and a test-only import would add a new dependency edge. ## Tests - `pnpm exec vitest run packages/app-shell/src/views/setup/PackagedAutomationPage.test.tsx` from `ui/`: 1 file, 31 tests passed. - `node scripts/check-sdui-manifest.mjs`: exit 0. ## Acceptance notes Test-only change in a private package; no changeset (skip-changeset declared at pr_create). ## Verification Derived gate commands run from the worktree; see the card report for exit codes. --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgUhKx1XHzkoikGjRB4)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgUhKx1XHzkoikGjRB4 Co-authored-by: Claude <noreply@anthropic.com>
1 parent b339465 commit de2a2e4

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎ui/packages/app-shell/src/views/setup/PackagedAutomationPage.test.tsx‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,8 @@ const CLONE_CONFLICT_REFUSAL =
9999

100100
/** `FLOW_CLONE_NOTICE` — returned on every successful clone. */
101101
const CLONE_NOTICE =
102-
'References are not re-pointed: this clone calls exactly what the original called (subflows, actions ' +
103-
'and objects are unchanged). It is created with status `draft`, which is a lifecycle label and NOT an ' +
104-
'off-switch — a cloned record-change or schedule flow is bound to its trigger and will run alongside ' +
105-
'the flow it was copied from.';
102+
'The copy runs alongside the original until you switch one of them off, ' +
103+
'and it still uses the same subflows, actions and objects as the original.';
106104

107105
/**
108106
* `SCHEDULED_WORK_DISABLED_REASON` (`@objectstack/types` 17.5.0), the sentence

0 commit comments

Comments
 (0)