Repository navigation
Conversation
… Undo steps (#442) Fixes the rest of #442: findings 2, 4 and 5 (1 and 3 were fixed in #494). - "Add an input" / "Add an output" use new nextInput / nextOutput helpers, which try every other step and return null when each suggested line already exists. The button is then disabled with a short reason, and change() ignores a change that returns the same workflow, so no no-op Undo entry is pushed. - The editor gets archived agents too (flagged) plus the agent list state. agentLabel names "Archived agent: <name>", "Loading agents…" or "Agents could not be loaded", and only says "Unavailable agent" when the list has loaded and the agent is not in it. The pipeline step select uses it as well. Archived agents are still not offered for new choices. - workflowIssues now checks the rules it was missing against orbit-domain's validate: at most 120 lines, an outcome named on a line that does not follow one, instructions over 4000 characters, step ids (slug, "start" reserved, unique) and line ids (non-empty, unique). - crates/orbit-domain/tests/fixtures/workflow-validation.json holds 28 valid and invalid workflows. validate must accept the valid ones and report the named path for the invalid ones; workflowIssues must accept the valid ones and report something for each invalid one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #442 (findings 2, 4 and 5; 1 and 3 were fixed in #494).
Summary
Fixes the rest of #442: findings 2, 4 and 5 (1 and 3 were fixed in #494).
which try every other step and return null when each suggested line
already exists. The button is then disabled with a short reason, and
change() ignores a change that returns the same workflow, so no no-op
Undo entry is pushed.
agentLabel names "Archived agent: ", "Loading agents…" or "Agents
could not be loaded", and only says "Unavailable agent" when the list
has loaded and the agent is not in it. The pipeline step select uses it
as well. Archived agents are still not offered for new choices.
orbit-domain's validate: at most 120 lines, an outcome named on a line
that does not follow one, instructions over 4000 characters, step ids
(slug, "start" reserved, unique) and line ids (non-empty, unique).
valid and invalid workflows. validate must accept the valid ones and
report the named path for the invalid ones; workflowIssues must accept
the valid ones and report something for each invalid one.
Testing
pnpm --filter @orbit/web typecheckandtest(97): passedcargo fmt --check,clippy -p orbit-domain --all-targets -D warnings,cargo test -p orbit-domain(84): passedcrates/orbit-domain/tests/fixtures/workflow-validation.json(28 cases) asserted byshared_validation_fixturein Rust and byworkflow.test.tspnpm docs:check: passedNot checked in a browser. Only an
orbit-domaintest changed on the Rust side, so the workspace-wide run was not repeated locally.🤖 Generated with Claude Code