Repository navigation
feat(flow designer): add variables, say why Runs is empty, Debug takes the side column, and autosave reads 已保存 in the header - #34955
Conversation
… zh-CN Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgae1jRRi8FRrTxaZL
…ngine that is not answering Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgae1jRRi8FRrTxaZL
A landed flow draft save no longer raises the draft-saved toast; the header's spinner settles into a Saved badge whose accessible text names the flow, and stays until the next edit. A failed save raises one error toast beside the existing refusal strip. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgae1jRRi8FRrTxaZL
…s place While the open flow shows Debug, the Configuration aside is not drawn and the simulator column widens to the aside's 300px; leaving Debug brings the aside back with its selection. Pins items 6, 8 and 9 on the real Automations pillar. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgae1jRRi8FRrTxaZL
The Variables tab says what variables are for, and Add variable appends a uniquely named text variable. Each row edits name, type, default, input and output; refused names and defaults are held with a note, and a variable a step still reads cannot be renamed or removed. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgae1jRRi8FRrTxaZL
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgae1jRRi8FRrTxaZL
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgae1jRRi8FRrTxaZL
…ests Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgae1jRRi8FRrTxaZL
The approver columns' help, exclude-submitter, backup approvers, the escalation settings and the decision's branch columns came from the server's schema in English; the zh table now overlays a column's help too, and the served approval and decision fields are pinned. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgae1jRRi8FRrTxaZL
Live, the flow pillar hosts its Configuration in the surface's right slot, so hiding the aside left that panel empty beside a squeezed simulator. The chrome now takes a debug target: in the slot the simulator is drawn in the Configuration's place and the section keeps the canvas alone; opening Debug shows the slot's properties half. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgae1jRRi8FRrTxaZL
|
repo:objectstack#3 · os-support-ai · session_01WGufzgae1jRRi8FRrTxaZL Live readings for slice 3, on head
Shots: Not driven live: a refused autosave (the error toast and strip are pinned in |
|
repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn L1: ACCEPT Read at this head:
The head merges cleanly with current main. Shape
The code reads right
Live readings (6957650095)At this head, in zh-CN and en at 1280×860, the readings cover:
Should-fix
Notes
|
…e side column's width Paused on an approval with approve and reject connections, the decision buttons and the status pill outgrew the 300 px column and the pill was cut off; the toolbar now wraps. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzgae1jRRi8FRrTxaZL
|
repo:objectstack#3 · os-support-ai · session_01WGufzgae1jRRi8FRrTxaZL L1-b S1: the paused debug toolbar, live. This is the same rig as comment 6957650095: 1280×860, Debug in Studio's right slot (CSS x 861 to 1280, 419px wide). The box edges below are in CSS px.
So with 继续, all four buttons and the status fit on one row. With approve / reject, the toolbar used to clip the status, and Shots in
Follow-up, not in this PR: the simulator's decision buttons show the connection keyword ("Approve" / "Reject") in zh as well. The canvas pills already read 通过 / 驳回 (slice 2). |
|
repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn L1: ACCEPT This is a delta read from my ACCEPT at 56a1582 (6957720045). The one commit since then, 84f3858, adds Should-fix: closed
CI is still owed green at this head. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgae1jRRi8FRrTxaZL CI on head The red TypeScript Type Check and Test UI on the earlier head |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgae1jRRi8FRrTxaZL Live E2E UI red on 84f3858: not this PR's, so I'm refreshing the branch instead of re-running.
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzgae1jRRi8FRrTxaZL Landing #34955 (slice 3 of #34818, the last slice) at head
State: ready for review, with auto-merge enabled. |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 44173515593 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#3 · os-support-ai · session_01WGufzgae1jRRi8FRrTxaZL Queue build 44173515593 failed. This is a new signature, so per
|
|
repo:objectstack#3 · os-support-ai · session_01WGufzgae1jRRi8FRrTxaZL Re-queuing #34955 once, at the unchanged head
|
Requested by Yibo Wang · project thread
repo:objectstack#3 · os-support-ai · session_01WGufzgae1jRRi8FRrTxaZL
Fixes #34818 (slice 3 of 3: items 5 to 9, plus the approval help text moved from slice 2; slices 1 and 2 landed as #34850 and #34932). Surface per the seat's amendment 6954475081.
Clause-②: no
Metadata-protocol: none
维护者速读
$开头、空名、重名会被拦下并提示;还被步骤引用的变量不能改名或删除,提示里列出是哪些步骤(这张卡不自动改引用)。只读包仍是原来的列表。quorum、per_group改为「法定人数」「分组会签」。审批人说明改为「插入时自带通过和驳回两条连线」。What changes
Item 5, the node panel in zh-CN (and the approval help text).
inspectors/flow-node-config.ts:approvershelp says the node comes with an "approve" and a "reject" connection, instead of asking the author to label them (slice 2 inserts them).localizeFieldandlocalizeColumnoverlay a proseplaceholder, andlocalizeColumnoverlays a columnhelp. Example literals (CEL, numbers, field names) stay as written.metadata-admin/i18n.ts(FLOW_FIELD_ZH):modeand its two options; the branch columns' help and prose placeholders.resolveAs;onEmptyApproverswith all four options (includingfallback);excludeSubmitter;fallbackApprovers; the escalation helps;minApprovalsreads 法定人数 / 分组会签.APPROVER_COLS_ZHis shared byapproversandfallbackApprovers(both areApprovalNodeApproverSchema). It covers every column's label and help, includingorganization, plus aplatform_adminoption label..describe(). Seven of those strings were English in zh-CN. They are now in the table, and the test reads the fields from the spec's own JSON Schema, as the engine publishes them.Item 6, Debug takes the right column's place.
studio-design/StudioDesignSurface.tsx(flow pillar): while the section isdebug, the Configuration aside is not drawn. The selection is kept.debugTarget: slot.propsTarget, and opening Debug callsshowProps(), so the slot shows the half the simulator is drawn in.previews/FlowPreview.tsx:FlowPreviewChrome.debugTarget. With a target, the simulator is portaled into it and the section keeps the canvas alone (grid-cols-1). Without one, the simulator column beside the canvas widens from 240px to the aside's 300px.FlowSimulatorPanel.tsx: the toolbar wraps (flex-wrap), the row the claim allows. Live readings at the slot's 419px:approveandrejectconnections (slice 2's default): the status pill was clipped past the slot's edge before the wrap, and with the wrap it moves to a second row.Item 7, Add variable.
previews/FlowVariablesPanel.tsxreplaces the read-onlyFlowVariablesList, in both the chromevariablessection and the classic side panel. It edits only withonPatch(the designer'scanEdit).variablesarray, in the shapeFlowVariableSchemaparses.objectNamerides along untouched.$-led (the spec'sflowBoundVariableNameSchema('variableName')), or held by another variable.true/false, a JSON object or list). A default the type cannot hold is held with a note, and so is a type change the current default cannot follow.flowVariableReadersreads a whole-word mention in any string of a step (template holes and bare CEL alike), connection conditions, and the flow'ssuccessMessage/errorMessage. The read is deliberately wide, so a refusal can be stricter than the engine, never looser.objectNamecannot be unticked (the spec refusesobjectNameon a non-input).Item 8, autosave says 已保存 in the header.
StudioDesignSurface.tsx(flow pillar): a landed draft save no longer callsannounceDraftSaved. It setsflowSavedFor, and the header actions showauto-autosaved: a ✓ and 已保存, with an sr-only sentence naming the flow, in arole="status". The next edit clears it.sent.unmoved()).toast.errornaming the flow, under one id per flow, beside the existing refusal strip.StudioPillarKit.tsx: comment only.announceDraftSavedno longer lists the flow pillar; its other callers are unchanged.Item 9, Runs says why it is empty.
previews/FlowRunsPanel.tsx: apublishedprop. Forfalseit says 发布并启用后… and does not fetch. Fortrue, a failed fetch names the engine alone. For an unknown value, the old sentence stays.StudioDesignSurface.tsx:readPublishedFlowNameslists the served flows per scope (the package and its pair) beside the flow list, and the chrome passespublishedfor the open flow. A failed read leaves it unknown.publishedcomes from "what the pillar already reads". It is a new read: onelistResponse('flow', { packageId })per scope per rail load, with no per-row fan-out. The seat acked it as an extension of amendment 6954475081.Shared. New and reworded keys in the lazy
studionamespace (en and zh). No eager pack changes. Changeset:@object-ui/app-shelland@object-ui/i18npatch.Tests
inspectors/flow-node-config.zhPanel-34818.test.ts(7 tests). This is the surface'sinspectorStrings.i18n-34818row, written against the field tables directly.jsonSchemaToFlowFields(z.toJSONSchema(ApprovalNodeConfigSchema / DecisionConfigSchema))).quorum/per_group.previews/FlowVariablesPanel-34818.test.tsx(10 tests): add (two unique names), the edit of all five properties into one row, a held default, the three name refusals (the spec agrees on$), the reference guard on rename and remove with a control that renames and removes, theobjectNameinput, the read-only control, the zh rows, and the reader's whole-word rule. Every write is parsed withFlowVariableSchema.previews/FlowRunsPanel.render.test.tsx: a new describe (4 tests): unpublished with no fetch, published engine-only, and the unknown and empty controls.studio-design/StudioDesignSurface.flowAutosave-34818.test.tsx(9 tests), on the realAutomationsPillarwith the realFlowPreview/FlowInspector:h1, its sr-only text names the flow, and no success toast; a second edit clears the badge; a refused save gives one error toast, the strip and no badge; the leaf control (an Interfaces page autosave still toasts by its label);showProps, and keeps the section canvas-only; control: Canvas keeps the aside;previews/emptyCollection-8526.test.tsx: the rewordednoVarssentence.previews/flowFieldChrome.i18n-10862-s4.test.tsx: an editable flow's variables panel shows Input / Output boxes and name values instead of in / out tags, so the case pins those keys.import '@objectstack/lint'(check:test-source-alias).Ablations (each restored, tree clean after):
flowsEmpty || section === 'debug'back toflowsEmptydebugTarget: nullsetFlowSavedFor(current.name)published: undefinedflowVariableReadersreturns[]localizeColumnwithout the help overlayAcceptance notes
approve/rejectconnections, the two decision buttons take 继续's place, and the toolbar wraps the status to a second row instead of clipping it.Verification
Measured on head
56a158240;84f3858adadds only the toolbar'sflex-wrap, after which the twoFlowSimulatorPanelsuites (6 tests) pass (basec6ecd1fab, main merged in atf825d67a9), on a shared box.metadata-adminandstudio-designthat touch flows, the edited i18n tables, autosave or toasts on the final head: 218 files, 2977 passed and 1 skipped, exit 0.packages/i18n: 102 files, 1894 passed, 13 skipped, exit 0.pnpm --filter @object-ui/app-shell type-check(both projects) exit 0 on the final head. A first run failed oncolumnMenuLabelin code main brought (feat(studio): the Records tab keeps Add field on screen, a header click opens the field, the name field leads, the inspector puts the label first #34926), because the local@object-ui/componentsdist predated it. Afterpnpm --filter @object-ui/components buildit exits 0. No file of this PR is involved.dispatch-gates --commandson the merged tree gave 38. All 38 were run, pluscheck:i18nandcheck:i18n-stale-fill. 37 exited 0 at once.check:test-source-aliasasked for the module-top lint import in three edited tests; after that it exits 0.studionamespace, and no eager pack changed.pnpm --filter @objectstack/example-showcase dev -- --fresh), the console under Vite withDEV_PROXY_TARGET, and Playwright at 1280×860 in zh-CN and en. The flow is a draft 「新会议提醒」 in an authored package, never published. The readings are in the comment below. The screenshots and the script are in the seat's project files underobjectstack-seat3/34818-live/slice3/.test:repoand the dogfood battery (no!and no(narrowing)arm).🤖 Generated with Claude Code
https://claude.ai/code/session_01WGufzgae1jRRi8FRrTxaZL