Replace "Review and confirm" CTA with "Implement" and "View" in workplan empty state

What does this MR do and why?

Replaces the confusing "Review and confirm" button in the Duo Chat workplan empty state with two focused CTAs:

  • "View" (secondary, listed first) — toggles the workplan drawer, with aria-pressed reflecting the drawer state, consistent with the "View" toggle in the work item header UI
  • "Implement" (DuoWorkItemToMrAction) — starts the developer agent flow with the workplan as context

The old button simply toggled the workplan drawer. If the drawer was already open, clicking "Review and confirm" would close it — the opposite of what users expect. The new "View" button keeps the toggle behavior but is labeled honestly and exposes its pressed state.

The description copy is also updated from "A workplan has already been started for this item." to "View the workplan and implement it when you're ready." to guide users toward the next logical action while encouraging review first.

Screenshots / Screenrecording

Before After

References

Follow up

I believe the spacings between the next headline and its actions are wrong. I'd fix this in a follow up, I can't unseen it

Screenshot_2026-09-02_at_10.40.34

How to set up and validate locally

  1. Navigate to a work item that has an existing workplan
  2. Open Duo Chat — the empty state should show "Workplan found"
  3. Verify the "View" button appears first and toggles the workplan drawer open/closed (aria-pressed follows the drawer state)
  4. Verify the "Implement" button appears and triggers the developer agent flow

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Vanessa Otto

Merge request reports

Loading
Loading