Skip to content

Workflow UI improvements, support for workflow v2 schema and new features#567

Merged
bgentry merged 4 commits intoprereleasefrom
bg/workflow-v2
May 8, 2026
Merged

Workflow UI improvements, support for workflow v2 schema and new features#567
bgentry merged 4 commits intoprereleasefrom
bg/workflow-v2

Conversation

@bgentry
Copy link
Copy Markdown
Contributor

@bgentry bgentry commented May 8, 2026

This moves riverui to be compatible with riverpro's upcoming workflow v2 schema with additional tables. It also adds support for new timer and signal features (collectively: "wait conditions").

It's based on the new prerelease branch because it requires workflows v2 given that it links against the riverpro version whose queries depend on that schema. We'll cut this as an RC alongside riverpro v0.24.0-rc.1.

It includes a ton of refinements to the workflow diagram and also adds a timeline to the workflow task section.

Light Dark
Screenshot 2026-05-08 at 11 13 49 AM Screenshot 2026-05-08 at 11 14 02 AM

Update the River Pro module set used by `riverproui` so the backend can
consume the newer workflow data exposed for workflow v2 wait, timer, and
signal support.
@bgentry bgentry requested a review from brandur May 8, 2026 16:19
@bgentry bgentry force-pushed the bg/workflow-v2 branch 2 times, most recently from c3482de to 69a6cc9 Compare May 8, 2026 16:46
bgentry added 3 commits May 8, 2026 14:48
Expose workflow v2 task data from the River Pro API, including task wait
reasons and the newer backend workflow fields needed by the UI. The
handler tests now exercise the serialized workflow detail shape instead
of relying on frontend-derived placeholders.

The wait-reason mapping uses a direct switch over the River Pro enum so
unknown values continue to fall back to the existing `none` state.
Render workflow v2 wait metadata in the diagram and detail views using
the final wait terminology instead of the earlier gate model. Tasks now
show wait phases, timer and signal evidence, dependency progress, and
wait reasons from the backend workflow detail payload.

Add the dedicated wait inspector, denser detail layouts, task timeline,
and Storybook coverage used to inspect workflow waits across timers,
signals, dependencies, and mixed conditions. The diagram tests and
factories now cover the wait-aware graph and node states directly.
Only expose workflow routes and navigation when the backend reports that
workflow v2 tables are available. Installations without those tables now
fall back to the empty-state guidance instead of linking users into views
that cannot load workflow detail data.

Move the availability check into the River Pro handler response so the UI
can make the routing decision from the same feature metadata it already
uses for navigation.
@bgentry
Copy link
Copy Markdown
Contributor Author

bgentry commented May 8, 2026

@brandur I don't think you need to do more than a light review on the actual UI parts here, but I'd certainly appreciate a thorough review of everything Go-related 🙏

Copy link
Copy Markdown
Collaborator

@brandur brandur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool. Let's go for it!

@bgentry bgentry merged commit 24cf623 into prerelease May 8, 2026
10 checks passed
@bgentry bgentry deleted the bg/workflow-v2 branch May 8, 2026 21:46
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.

2 participants