patchwise-agent-studio / docs /design /UI-REVIEW-3.md
EnergyVenom's picture
Astra: regression catalogue, runner robustness, idempotent Agent Studio contract, key-screen design (2182ef729b22)
152e0c1 verified
|
Raw History Blame Contribute Delete
9.23 kB

Historical record. This page describes the product as it was when it was written, under an earlier name, and is not kept up to date. For the current system (Astra) read DESIGN_SYSTEM.md for the UI, and ARCHITECTURE.md, DEPLOYMENT.md, RUNBOOK.md, REMOTE_RUNNER.md and SECURITY.md.

UI review 3: review-2 fixes and step 4 (approvals and failure decision)

Reviewed: f9fab2a (review-2 must-fixes), 4cae29d (review-2 should-fixes + N2, N5), 6fe0316 (step 4), against UI-REDESIGN.md, UI-REVIEW-2.md. Sources: shots/review2-fixes/* (27), shots/step4/* (23), and code (pages/TeamBoard.tsx, pages/AgentTeamPage.tsx, pages/ScenarioReview.tsx). No product code edited.

Note on the evidence: the board-* and agents-page-* screenshots in review2-fixes were taken at 22:52-22:55, before 4cae29d (23:22), so they still show the zero counters and the old /agents breadcrumb. The code has both fixes (TeamBoard.tsx line 208 drops zero parts; AgentTeamPage.tsx has "Settings › Advanced" and "New test run"). I accept them from the code; please re-shoot board-desktop-panel-open-light and agents-page-desktop-light with the next batch.

Review-2 status

Item Status Evidence
R2-M1 honest engine labels Fixed (one gap, R3-S1) board-desktop-panel-open-light: "AI on this run: none (built-in rules only)", cards "Built-in rules (no AI model on)" / "(no AI model used)", mint avatars; /agents cards "Designed for … / Now: built-in rules (no model connected)"
R2-M2 board columns by container Fixed 3 x 2 at 1440 with panel open, no clipping; 6 when folded; 1 column on phone
R2-M3 unbroken names Fixed "Synthesizer", "Script builder" whole; YOU tag in the corner
R2-S1 crowded top bar Fixed topbar-panel-open-desktop-light: "Waiting for you" short chip, full title, Cancel in All details
R2-S2 paused in amber Fixed board-paused-desktop-light: amber Coordinator, "Paused here"
R2-S3 one action on Team Fixed Coordinator card only
R2-S4 phone switcher scroll Fixed switcher-team-phone-*
R2-S5 skeleton Fixed steps-loading-skeleton-desktop-light
N2, N5 Fixed in code, re-shoot needed see note above

Lead's check (board at 1440, panel open, honest labels, 3 columns, no clipping): confirmed.


Must-fix

None. Step 4 can be signed off once the should-fixes below are in, or they can ride with step 5 if the lead prefers; none of them loses a function or misleads the user except R3-S1 and R3-S2, which I would not defer past step 5.

Should-fix

R3-S1. /agents right-hand "Workflow" list still states the design engine as fact

  • Where: agents-page-desktop-light, right column: Research "External AI model", Data planner "Local AI model", Triage "Local AI model" pills with no qualifier, beside cards that correctly say "Now: built-in rules (no model connected)".
  • Fix: prefix the column header with "Designed for" (header text: "Workflow · designed engine per agent"), and render the pills in the outline variant with the tooltip "Designed for: External AI model. Now: built-in rules (no model connected)." using the same nowLine(agent, cfg) helper as the cards. When a model is connected, the pill may stay solid.

R3-S2. Dry-run time is shown as raw UTC text without a zone

  • Where: approval-cards-fixture-*, approval-card-*: "Dry run passed on Local mock pod · 2026-10-17 11:23". The code (ScenarioReview.tsx lines 41 and 80) slices the ISO string, so a consultant in India reads a UTC time as local.
  • Fix: use shortWhen(d.at) (viewer's time zone, "17 Oct 16:53") in both places; put the full ISO timestamp with "UTC" in title.

R3-S3. Approve / Skip order differs between AI cards and scenario rows

  • Where: AI cards show [Skip] [Approve]; process-step rows show [Approve] [Skip for this patch].
  • Fix: one order everywhere: Approve first, then Skip for this patch (the existing row order, which the unit tests and muscle memory already use). On cards narrower than 360px the visible Skip label may shorten to "Skip"; the aria-label stays "Skip for this patch" (it already does).</li> </ul> <h3 class="relative group flex items-baseline"> <a id="r3-s4-the-nextstep-banner-offers-a-button-to-the-page-you-are-on" class="block pr-1.5 text-lg md:absolute md:p-1.5 md:opacity-0 md:group-hover:opacity-100 md:right-full" href="#r3-s4-the-nextstep-banner-offers-a-button-to-the-page-you-are-on" > <span class="header-link"><!--[--><svg class="text-gray-500 hover:text-black dark:hover:text-gray-200 w-4" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!--]--></span> </a> <span> R3-S4. The NextStep banner offers a button to the page you are on </span> </h3> <ul> <li><strong>Where:</strong> <code>failures-detail-desktop-light</code> ("Open failure review" on the Failures view), <code>scenarios-desktop-light</code> and <code>scenarios-phone-light</code> ("Open scenario review" on the Scenarios view).</li> <li><strong>Fix:</strong> in <code>NextStep</code>, drop the action when its target tab equals the current tab; keep the title and text. On phone, collapse the banner on these two views to one line ("Your review: approve the scenarios") because the page itself is the action; this saves about 140px above the list on 390px.</li> </ul> <h3 class="relative group flex items-baseline"> <a id="r3-s5-the-quick-simulation-no-screen-box-in-the-judge-card-sits-between-the-choices-and-submit" class="block pr-1.5 text-lg md:absolute md:p-1.5 md:opacity-0 md:group-hover:opacity-100 md:right-full" href="#r3-s5-the-quick-simulation-no-screen-box-in-the-judge-card-sits-between-the-choices-and-submit" > <span class="header-link"><!--[--><svg class="text-gray-500 hover:text-black dark:hover:text-gray-200 w-4" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!--]--></span> </a> <span> R3-S5. The quick-simulation "no screen" box in the Judge card sits between the choices and Submit </span> </h3> <ul> <li><strong>Where:</strong> <code>judge-desktop-light</code>, <code>judge-quicksim-desktop-light</code>: an 85px dashed box under the three choices pushes "Submit my decision" down.</li> <li><strong>Spec 3.4 / review-1 M4:</strong> for quick simulations the screen column shows the empty state <em>in the screen column</em>; when the column stacks (card < 640px wide, accepted deviation), it should not cost that much height.</li> <li><strong>Fix:</strong> when stacked <strong>and</strong> the run is a quick simulation, replace the dashed box with one dim line directly under the We expected / What happened row: icon + "No screen: quick simulations don't open a browser." (13px, <code>--fpt-dim</code>). Keep the dashed empty state only in the side-by-side layout (>= 640px card width), where it fills the column instead of adding height. Same rule on the Failures detail view (<code>failures-detail-desktop-light</code> is side-by-side, so it is fine there).</li> </ul> <h3 class="relative group flex items-baseline"> <a id="r3-s6-failed-agent-card-shows-a-raw-engineering-error-to-consultants" class="block pr-1.5 text-lg md:absolute md:p-1.5 md:opacity-0 md:group-hover:opacity-100 md:right-full" href="#r3-s6-failed-agent-card-shows-a-raw-engineering-error-to-consultants" > <span class="header-link"><!--[--><svg class="text-gray-500 hover:text-black dark:hover:text-gray-200 w-4" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!--]--></span> </a> <span> R3-S6. Failed-agent card shows a raw engineering error to consultants </span> </h3> <ul> <li><strong>Where:</strong> <code>failed-agent-card-*</code>: "Playwright produced no JSON report at attempt-0.json (exit 1); see the run folder".</li> <li><strong>Fix:</strong> card body shows a consultant sentence by agent: Test runner "The test browser stopped without saving results."; any other agent "This step stopped with an error." Below it a "Technical details" disclosure (collapsed, 12px mono) with the original message, first 400 chars. Admins see it expanded by default. The Coordinator line already gives the run-level action.</li> </ul> <h2 class="relative group flex items-baseline"> <a id="nice" class="block pr-1.5 text-lg md:absolute md:p-1.5 md:opacity-0 md:group-hover:opacity-100 md:right-full" href="#nice" > <span class="header-link"><!--[--><svg class="text-gray-500 hover:text-black dark:hover:text-gray-200 w-4" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!--]--></span> </a> <span> Nice </span> </h2> <ul> <li><strong>N1.</strong> Model name wraps at its hyphen ("mistral- / large-2512") on AI cards. Wrap the model name in <code>white-space: nowrap</code> (and the whole meta line may ellipsis with the full text in <code>title</code>).</li> <li><strong>N2.</strong> Judge card "Show the steps" is a bare text button floating 8px right of the content edge. Give it the <code>IconListDetails</code> icon and align it to the content edge, matching "Show steps" on AI cards.</li> <li><strong>N3.</strong> Phone top bar still shows the full chip "Waiting for your scenario review" (<code>scenarios-phone-light</code>), pushing the env pill off screen. Use the short chip form on phone too.</li> <li><strong>N4.</strong> Failures detail view: the verdict radios start empty while the Judge card preselects the suggestion. Keep the behaviour (it is the existing function), but mark the suggested option with "· suggested" as the Judge card does, so the two views read alike.</li> </ul> <hr> <h2 class="relative group flex items-baseline"> <a id="verdicts-on-the-stated-deviations" class="block pr-1.5 text-lg md:absolute md:p-1.5 md:opacity-0 md:group-hover:opacity-100 md:right-full" href="#verdicts-on-the-stated-deviations" > <span class="header-link"><!--[--><svg class="text-gray-500 hover:text-black dark:hover:text-gray-200 w-4" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg><!--]--></span> </a> <span> Verdicts on the stated deviations </span> </h2> <div class="max-w-full overflow-auto"> <table> <thead><tr> <th>#</th> <th>Deviation</th> <th>Verdict</th> <th>Note</th> </tr> </theader> <tbody><tr> <td>1</td> <td>Board breakpoints 532 / 1072px (container) to guarantee 160px cards</td> <td><strong>Accept</strong></td> <td>Correct arithmetic including gaps and padding; update UI-REVIEW-2 R2-M2 numbers to these.</td> </tr> <tr> <td>2</td> <td>"See the failed screen" link replaced by a screen column with "See all screens"</td> <td><strong>Accept</strong></td> <td>Matches spec 3.4.</td> </tr> <tr> <td>3</td> <td>Screen column beside the text only when the card is >= 640px; stacks below at 1440 with panel open</td> <td><strong>Accept, with R3-S5</strong></td> <td>Stacking is right; the quick-simulation case must not add the dashed box when stacked. For browser runs, cap the stacked image at 220px high (<code>object-fit: contain</code>, click for full size) so Submit stays near.</td> </tr> <tr> <td>4</td> <td>"See all screens" does not force the Failed filter, except when a waiting browser run is opened</td> <td><strong>Accept</strong></td> <td>Forcing a filter on every click would surprise; the opening rule covers the useful case. Make the Failed chip show its count ("Failed 1") so it is one click away.</td> </tr> <tr> <td>5</td> <td>Dev-only fixture routes <code>/dev/board-fixture</code>, <code>/dev/approval-fixture</code> behind <code>import.meta.env.DEV</code></td> <td><strong>Accept</strong></td> <td>Lead verified they are absent from the production bundle. Add a unit test asserting the routes are not registered when <code>import.meta.env.DEV</code> is false, and keep fixture data free of client-like names.</td> </tr> <tr> <td>—</td> <td>Not verified with real data: AI approval cards (fixture + unit tests) and the failed-screen column with a real screenshot</td> <td><strong>Accept for step 4, carry an open item</strong></td> <td>Before release, one screenshot pair each from a real run: AI cards from an Oracle Fusion pod run (practice pod writes none), and the screen column from a full browser run with a failing scenario. Track as "open visual checks" in the step 5 hand-off.</td> </tr> </tbody> </table> </div>