Repository navigation
Conversation
This was referenced Oct 28, 2026
yohamta0
force-pushed
the
stack/25-ui22
branch
2 times, most recently
from
October 30, 2026 06:44
c13555d to
2de8bcf
Compare
yohamta0
force-pushed
the
stack/26-ui23
branch
3 times, most recently
from
October 30, 2026 08:43
e67674f to
d71c961
Compare
yohamta0
force-pushed
the
stack/25-ui22
branch
2 times, most recently
from
October 30, 2026 11:03
a60260d to
5b56b0f
Compare
yohamta0
force-pushed
the
stack/26-ui23
branch
from
October 30, 2026 11:03
d71c961 to
1d70972
Compare
yohamta0
force-pushed
the
stack/25-ui22
branch
from
October 30, 2026 11:47
5b56b0f to
5083424
Compare
yohamta0
force-pushed
the
stack/26-ui23
branch
from
October 30, 2026 11:47
1d70972 to
a5233fe
Compare
yohamta0
force-pushed
the
stack/25-ui22
branch
from
October 31, 2026 04:50
5083424 to
c2bbdad
Compare
yohamta0
force-pushed
the
stack/26-ui23
branch
from
October 31, 2026 04:50
a5233fe to
a100408
Compare
yohamta0
force-pushed
the
stack/25-ui22
branch
from
October 31, 2026 05:37
c2bbdad to
bc9c90e
Compare
yohamta0
force-pushed
the
stack/26-ui23
branch
2 times, most recently
from
October 31, 2026 06:28
3aa5d62 to
28e69ea
Compare
yohamta0
force-pushed
the
stack/25-ui22
branch
2 times, most recently
from
October 31, 2026 09:21
01b3027 to
891d5a6
Compare
yohamta0
force-pushed
the
stack/26-ui23
branch
from
October 31, 2026 09:21
28e69ea to
7befd74
Compare
yohamta0
force-pushed
the
stack/25-ui22
branch
from
October 31, 2026 10:45
891d5a6 to
84ee988
Compare
dagucloud#3405) * UI: dags/components, pages, visual-editor/inspector * Cover null-prototype issue maps in tests * Keep sub-runs and workspaces on old run links * Test __proto__ fields and IME keys in inspector * Fix Mermaid retry, run link and Kanban Ctrl-click * Resolve latest run links and trust the next run * Test that Show in all workspaces selects them
Several fixes of earlier PRs change behavior that the tests of this PR pin, or need a test file that only this PR adds. Updated for the new behavior: - Explicit step names win over server details matched by position. The host rename test now renames in the YAML text, and the run snapshot INPUT test uses a spec whose step names match its scope. - opSetRouteTargets writes a target given by id as the step name that the server resolves. - The launchers test gives the server time zone that the Cron panel now reads for its preview. New regression tests: - The rename popover ignores Enter and Escape during an IME composition. - A command step that becomes an action loses a classic `command` key. - continue_on reads the `failed` alias and replaces it with `failure`, and its nested keys and each dependency show their issues. - Alt+Up and Alt+Down cannot move lines across the edge of the step scope in the YAML editor. - The step schema check names an unknown key such as `constructor`.
Several tests passed only because of the order, the time zone, or test ids that nothing renders: - Fake timers, the canvas size, the saved spec and the stored canvas direction now reset before or after each test, so one failure or a reordered run does not change the next test. - The reused-input tests capture at noon UTC, so the shown date is the same in every time zone. - The launcher test checks the options of the Add step list by name, and the layout tests drop checks of a button that no longer exists. - The diff performance test inserts two separate blocks, so it runs the Myers search and not only the prefix and suffix shortcut. - The builtin action count is a lower bound, so a schema that adds an action does not fail the test.
The step schema check warns about an unknown key in the with block of a run step, and the outputs input adds no entry on the Enter that confirms an input method's text. Both test fixes from earlier in the stack, whose test files start here.
While no text has parsed, the editor draws the steps of the server DAG, frozen, under a banner that names the line of the first error.
Route targets send nothing on an untouched blur and compare edited lists item by item. The step run panel labels a step reused only from the run record and reads no outputs while it waits. The cycle check follows step output references. Their test files start here.
A step added with the + button of an inferred edge now precedes the target, as its ghost showed. The structure and gesture tests expect the target to depend on the new step.
Tests for fixes from earlier in the stack whose test files start here: continue_on keeps an explicit off state, custom action refs resolve in their schema, layout keeps a step named __proto__, output variables and named outputs show as separate rows, and the inspector edits shell, script, outputs and preconditions as the server reads them.
The test called the drawer's onClose without checking the result, and outside act. It now closes the drawer inside act and asserts that the drawer is no longer open, so the close path is covered.
yohamta0
force-pushed
the
stack/26-ui23
branch
from
October 31, 2026 10:46
7befd74 to
4ff951c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
All PRs of the stack
Summary
This PR adds 55 test files for the visual editor, the canvas, the document model, the inspector, the reference panels and the run overlay. It changes no production code. All files are new.
Why
The editor code landed in earlier PRs (5 to 22). These tests are kept in a separate PR so that the code PRs stay small. They pass on top of PR 25. PR 24 has the matching tests for the workspace shell. PR 27 adds the remaining tests and the guard tests.
Changes
55 files, all new, all tests. No existing file is modified.
Groups of tests:
VisualEditor.test.tsx,.addStep,.hosted,.launchers,.layout;contracts.test.ts; hooksuseDocModel,useEditSession,useYamlEditorSync.VisualCanvas,graph,layout,useCanvasLayout,gestures,ghost,paletteModel,useCanvasKeymap,contextMenu(and its a11y test),KeyHelpDialog,RenameStepPopover,index.test.ts.parse,patch,stepIndex,structure. These check that YAML edits keep the text around them.General,Action,Flow,Timing,Outputs,Parameters,Preconditions,ContinueOn,RouteTable,RunEditor,StepYaml), plusactionRules,catalog,catalogSearch,stepSchemaCheck,stepYamlText,withSchema.candidates,monacoCompletion,monacoHover,upstreamTree,DeclaredOutputsPanel,UpstreamDataPanel(with a reused-run case).runOverlay,useRunOverlay,StepRunPanel, andworkflow-workspace/executions/__tests__/RunSnapshotCanvas.test.tsx.How to review
VisualEditor.test.tsxfor the shared setup.doc/__tests__/patch.test.tsandstructure.test.ts.canvas/__tests__/VisualCanvas.test.tsxandgestures.test.ts.inspector/__tests__/StepYaml.test.tsxandRunEditor.test.tsx.Most attention: the document model tests, since they pin the rule that an edit changes only the lines it must.
Tests
All files run with
pnpm testinui/. Each sits in a__tests__folder next to its module.Screenshots
No visible UI change in this PR. The behaviour it tests is visible in the editable graph and the YAML panel of the workflow page.