Skip to content

[feat] canvas: add automatic layout for independent Runs - #495

Merged
FayeSpica merged 2 commits into
ThinkFlowLab:mainfrom
FayeSpica:feat/canvas-run-layout
Nov 24, 2026
Merged

FayeSpica merged 2 commits into
ThinkFlowLab:mainfrom
FayeSpica:feat/canvas-run-layout

Conversation

@FayeSpica

Copy link
Copy Markdown
Collaborator

Summary

  • Let top-level Run groups opt into stable row layout. New or resized content reflows on save and later rows make room. Locked Runs stay fixed.
  • Keep plan nodes, generation settings and editor documents scoped to their Run. Different Runs can reuse registered source assets.
  • Use the same versioned layout operation from the canvas, CLI and Agent.

Linked issue

  • No linked GitHub issue applies.

Labels

  • type:feat and area:canvas

Test plan

  • Local: 261 backend tests passed across creation API, storage, contracts, CLI, generation and history. All five focused Run regressions passed after the final lock guard. The Agent tool gateway, production build, i18n and contract checks passed.
  • Local frontend: 86 focused tests passed. The full suite had 975 passes and three failures in the unchanged browser-host process tests because the sandbox denied ps with EPERM.
  • Left to CI: Standard repository checks and browser suite.

Evidence that it works

  • Chrome: Enabled Run layout from the English group menu, switched to Chinese, and verified that the Lock Run action was present. The API readback confirmed the group moved and retained its Run setting. No media attached.
  • API: Three Runs wrap into two rows. Growing the first moves the third, leaves the second unchanged and preserves each Run's plan and timeline. A second organize command returns a no-op.

Provider verification

  • No real provider calls were made. Layout validation uses isolated project fixtures.

Bilingual UI

  • English and Simplified Chinese menu actions and messages are included.

Signed-off-by: Weiming Liao <liaowm5@gmail.com>
Signed-off-by: Weiming Liao <liaowm5@gmail.com>
@FayeSpica FayeSpica added type:feat New capability or behaviour area:canvas Canvas, nodes and direct manipulation labels Nov 24, 2026
@FayeSpica
FayeSpica merged commit 6327926 into ThinkFlowLab:main Nov 24, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:canvas Canvas, nodes and direct manipulation type:feat New capability or behaviour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant