Skip to content

Workflow runner modal: display MESSAGE before COMMAND in the step detail panel #20

Closed

Description

@falbany

Summary

In the workflow runner modal (src/profiles/web/src/components/WorkflowRunnerModal.tsx), the step detail panel renders the COMMAND section before the MESSAGE section. The order should be reversed: MESSAGE first, COMMAND after.

Rationale

The two step keys target different audiences (see the Message Display Rules):

  • message: — the human-readable, Markdown-rendered explanation intended for every user.
  • command: — the shell command template, useful mainly for engineers / technical users.

Today a non-technical user opening the runner is greeted by a wall of shell text before the sentence that explains what is going on. Message-first also matches the precedence already used by the interactive prompts: the waiting_ask, waiting_notify and waiting_notice panels all render the message above the technical content.

Current behavior

The generic step detail panel (the "Priority 3" block, WorkflowRunnerModal.tsx ~lines 403–440) renders its sections in this order:

  1. Command (monospace box)
  2. Message (rendered Markdown) — only when the step has one
  3. Output
  4. Workflow Guard (ask)
  5. Log (note)

Expected behavior

  1. Message (when present)
  2. Command
  3. Output
  4. Workflow Guard (ask)
  5. Log (note)

Scope / implementation notes

  • Swap the two blocks in WorkflowRunnerModal.tsx — the Command: block (~line 405) and the Message: block (~line 411). No backend change: WorkflowStepRecord already carries message.
  • Optional follow-up in the same spirit: the left sidebar step list (~line 270) also shows st.command as the primary line under the action name; when a step carries a message, its first line could be shown instead (keep the command available via the title tooltip).
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

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions