Skip to content

Dashboard: the chain review names a child's run condition - #308

Merged
msx752 merged 2 commits into
developfrom
fix/dashboard-chain-review-run-condition
Nov 26, 2026
Merged

msx752 merged 2 commits into
developfrom
fix/dashboard-chain-review-run-condition

Conversation

@msx752

@msx752 msx752 commented Nov 26, 2026

Copy link
Copy Markdown
Owner

The Review step of the chain builder showed child.runCondition || 'None'. On Success is 0, so a child set to run on success was shown as "None", and every other condition as a bare number.

Change

  • The review shows the name of the condition (On Success, On Failure, …) and "None" only when none is chosen.
  • The names and the label are in utilities/runConditions.ts, with tests; the condition picker uses the same list (same titles and values, matching RunCondition on the server).

What does not change

  • The values sent when the chain is created, the server.

Testing

  • runConditions.test.ts: 0 is On Success, every condition is named, a value held as text is read, empty is "None". A mutant that tests the value for truthiness again fails the full dashboard suite.
  • In a browser (sample app): a child set to On Success; before, the review said "Condition: None"; after, "Condition: On Success", and the child is still stored with run condition 0.
  • vue-tsc --build clean, no new lint messages. This PR changes no .NET file; every .NET test project passed on the same develop base.
  • An independent review of the diff found no issue.

The Review step of the chain builder showed child.runCondition || 'None'.
On Success is 0, so it read "None", and every other condition showed as
a bare number.

The review now shows the name of the condition (On Success, On Failure,
...) and "None" only when none is chosen. The names and the label are in
utilities/runConditions.ts, with tests; the condition picker uses the
same list.
…n-review-run-condition

# Conflicts:
#	src/SharpTicker.Dashboard/wwwroot/src/components/ChainJobsModal.vue
@msx752
msx752 merged commit 585b7f1 into develop Nov 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant