Skip to content

chore(ui): improved style and cleanups - #676

Merged
poshinchen merged 1 commit into
strands-agents:mainfrom
poshinchen:chore/ui-more-improvements
Nov 25, 2026
Merged

poshinchen merged 1 commit into
strands-agents:mainfrom
poshinchen:chore/ui-more-improvements

Conversation

@poshinchen

@poshinchen poshinchen commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR fixes what a review of the strands-evals ui page found. The review opened the page in a real browser, in light and dark mode and at window widths from 360px to 1440px. All changes are in the page's HTML, CSS and scripts, their tests, and two READMEs. No Python code, server route or page address changes.

Tooltips

  • A control that was just pressed stays quiet until the pointer leaves it. Before, clicking a run's tab left the pointer resting on the tab, and its tooltip then opened over the title of the view that had just opened.
  • While a tooltip shows, a screen reader reads it as the description of its control. A column head carries its explanation as a description too, because a column head cannot take keyboard focus.

Charts

  • Every chart is drawn at the width of its card, and is drawn again when the window, the sidebar or the guide panel changes that width. Before, charts with axes were drawn 640 units wide and stretched to fit, so their text was 16px on a wide window and about 5px on a phone. Chart text is now 12px at every width.
  • Chart titles and axis names are in sentence case and black, and captions use the sans font. The frame around each plot is gone.
  • A failing cell in a report's verdict grid carries a cross. Red and green alone are hard to tell apart for readers with red-green colour blindness.
  • The parts of the trial outcomes bar have gaps between them, and the "evaluator invalid" part is striped. Before, the red and amber parts touched and looked alike to those readers.
  • The budget line on the rollouts chart is drawn in a neutral colour. Red is kept for failures.
  • An estimate that the effects chart draws faint keeps its labels at full strength.

Narrow windows

  • Below 1080px wide, the sidebar is a panel that a button in the top bar opens. Choosing a view, pressing Escape or clicking outside puts it away. Before, the sidebar became a strip across the top that pushed the content down by about a third of the screen.
  • The top bar fits in a window 360px wide. Before, the theme toggle was pushed off-screen at phone width and the page scrolled sideways.

Page header

  • The top bar names the served folder on every page. When the bar is short of room the start of the path is cut, so the folder's name stays in view.
  • The browser tab is named for what is open, for example support/support.report.json · Reports · strands-evals. Before, every tab was titled strands-evals.
  • A report's header says only which experiment the report was made from. Its score and row counts are shown once, in the summary under the header, and the bar of rows passing moved into the tile that counts them.
  • A run's header says whether the run finished. The Result view gives the stop reason once.
  • The champion card and the table under it state the size of the objective's change. The sentence between them now reads only the interval.
  • A run's tabbed views no longer show a heading that repeats the tab's name. The heading is still there for screen readers.

Lists

  • The Reports, Experiments, Sessions and Runs lists sort by their column heads and filter by a box above each list.
  • List rows no longer show file size.
  • The Runs list marks a run only after the reader has opened it, and says why each run stopped in plain words.

Tags and wording

  • A tag is a tinted label with no outline, so it no longer looks like a button. Warnings are amber and errors are red. Before, both were red.
  • The Candidates filters use the same words as the tags in the rows: Feasible, Infeasible and Not scored.
  • Headlines for empty and not-found pages say what happened in plain words, such as "Report not found". The frog stays.

Reading

  • The stylesheet uses 10 font sizes. Before, it used 21. Session and trajectory transcripts are 13px to 14px. Before, they were 11px.
  • A message inside a transcript card is set off by a rule down its side. Before, boxes were nested up to four deep.
  • An optional field with nothing in it takes one line in the case editor, and the evaluator chips have a label.

Read-only mode

  • On a server started with --read-only, the case editor shows each file and offers nothing that changes it. Fields cannot be typed in, and the buttons that add, delete, save and revert are hidden. Before, the form accepted edits and only Save was disabled, so readers found out after editing.
  • This is a change in behaviour. Before, an edit made in read-only mode could be copied as Markdown. Now the edit cannot be made.

Keyboard, screen readers and print

  • The first stop for the keyboard is a link that skips to the content. Before, 27 stops came before the content when one sidebar list was open.
  • Text fields show a focus ring, list rows tell a screen reader that they open, and the remove and help buttons have a larger click area.
  • On a wide window a table's head stays in view while its rows scroll.
  • The page has a print layout that leaves out the bar, the sidebar and the buttons.

Left for a later decision

  • The stylesheet names Space Grotesk and JetBrains Mono, but the page ships no font files, so most readers see system fonts. Bundling the fonts would add third-party files and a licence notice to the repo. This PR only widens the list of fallback fonts and records the situation in a stylesheet comment.

Related Issues

None. This follows #670, which added the page, and #675, which renamed a run's views.

Documentation PR

None needed. This PR updates the ui part of README.md, the page's built-in guide, and tests/ui/README.md.

Type of Change

Other (please describe): fixes and usability improvements to the strands-evals ui page.

Testing

How have you tested the change? Verify that the changes do not break functionality or introduce new warnings.

  • I ran hatch run prepare
  • The 13 suites under tests/ui/ pass with 867 assertions, 45 more than before. The new ones cover the quiet tooltip after a press, sorting and filtering, the sidebar panel, the skip link, tab titles, the locked read-only editor, the cross on failing cells, and charts drawn at the width of their card.
  • The page was checked in headless Chrome in light and dark mode, and at window widths of 1440px, 720px, 390px and 360px. No text falls below the 4.5 to 1 contrast that accessibility guidelines ask for, apart from disabled buttons, which those guidelines exempt. No page scrolls sideways at 360px, and chart text measures 12px at each width.
  • hatch test tests/strands_evals/cli passes with 711 tests, and hatch fmt --linter is clean.

Checklist

  • I have read the CONTRIBUTING document
  • I have reviewed and understand every line of code in this PR, including any generated by AI tools, and I can explain why it works
  • My change is focused and reasonably small; I have split unrelated work into separate PRs
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@poshinchen
poshinchen requested a review from a team as a code owner November 25, 2026 01:13
@poshinchen
poshinchen deployed to auto-approve November 25, 2026 01:17 — with GitHub Actions Active
@github-actions github-actions Bot added the chore Maintenance tasks, dependency updates, CI changes, refactoring with no user-facing impact label Nov 25, 2026
@poshinchen
poshinchen merged commit d72ae39 into strands-agents:main Nov 25, 2026
23 of 24 checks passed

This branch is waiting to be deployed

1 active and 1 waiting deployments
manual-approval — 7b17ead7 Waiting Nov 25, 2026 by poshinchen via Trigger Strands Review #968
auto-approve — 7b17ead7 Deployed Nov 25, 2026 by poshinchen via Run integration tests #1276
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance tasks, dependency updates, CI changes, refactoring with no user-facing impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants