Render the redesigned session inbox row in the Duo panel

What does this MR do and why?

Adds panel/agent_session_inbox_item.vue, the redesigned session row for the Duo panel inbox (#616494 (closed)), and uses it in agent_session_inbox_tab.vue. Behind the existing duo_panel_session_inbox flag.

Each row shows a status icon, the status label in its status colour, the relative age, the session title, and a session ID · flow name · project name line. agent_flow_list.vue gains a row scoped slot that defaults to today's agent_flow_list_item, so the full page and the flag-off panel are unchanged.

Notes for review:

  • Status labels are a small override table keyed on the raw status enum (four entries), falling back to formatAgentStatus(item.humanStatus). There was no existing label map to rename; this adds the first one.
  • Colour comes from AGENT_PLATFORM_STATUS_BADGE, read directly rather than through getAgentStatusBadge, because that helper falls back to FAILED and would paint unknown statuses red. Unknown statuses resolve to gl-text-status-neutral, and a spec pins that.
  • Click handling is copied from agent_flow_list_item.vue on purpose: real href, early return on metaKey || ctrlKey || shiftKey, then preventDefault and $router.push. All four paths have specs.

Out of scope: the summary line (moved to #616495) and the Merged label (needs mergeRequest { state } on the query).

Screenshots

Chromium against GDK, flag enabled.

01-needs-a-decision

02-row-hover

03-all-tab

04-in-panel-navigation

Clicking a row opens the session detail inside the panel without changing the page URL. Ctrl/Cmd/Shift-click opens the href in a new tab. The detail header still reads "Input required" because the session detail view is a separate component.

How to set up and validate locally

  1. Feature.enable(:duo_panel_session_inbox), then reload.
  2. Duo panel → Sessions. An awaiting-input row reads Waiting for input, a plan-approval row Approval gate, a tool-approval row Confirm action.
  3. Click a row: navigates inside the panel. Ctrl/Cmd-click: opens the session in a new tab.
  4. Feature.disable(:duo_panel_session_inbox), reload. Panel and full page unchanged.

yarn jest ee/spec/frontend/ai/duo_agents_platform passes under Vue 2 and VUE_VERSION=3; ee/spec/frontend/msw_integration/ai_duo_panel passes.

Edited by Andrew Fontaine

Merge request reports

Loading
Loading