Skip to content
This repository was archived by the owner on Oct 5, 2026. It is now read-only.
This repository was archived by the owner on Oct 5, 2026. It is now read-only.

Show upcoming workflow state immediately on action click #6

Description

@Neokil

Problem

After clicking an action button (e.g. "Approve" on an Investigation step), the UI waits for the server to confirm the state transition before updating the timeline. This introduces a noticeable delay and gives no immediate feedback that the action was registered, making the interface feel unresponsive.

Solution

  1. On action button click, optimistically append the next state to the timeline immediately.
  2. Switch the active view to the new state and show a "running" indicator in the body.
  3. When the SSE event for the transition arrives, replace the optimistic state with the confirmed server state.
  4. If the action fails, roll back the optimistic update and surface an error.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions