Skip to content

fix(app): the turn status line no longer overlaps itself on a phone (RANCH-5) - #255

Merged
maksymhryzodub-prog merged 1 commit into
mainfrom
fix/RANCH-5-header-line-overlap
Nov 30, 2026
Merged

maksymhryzodub-prog merged 1 commit into
mainfrom
fix/RANCH-5-header-line-overlap

Conversation

@maksymhryzodub-prog

Copy link
Copy Markdown
Contributor

Task: RANCH-5

What was wrong

On a phone, after a turn, the status line under the agent's name reads "Done · 2 steps · 0:16". The count of steps was shrink-0 inside a box that was not clipped, so in a narrow header it was drawn over the clock.

What changes

  • The line is clipped to its own room.
  • The count of steps wraps to a second, clipped line where it does not fit whole: it is left out, never cut in half. The marks on the ring say the same.
  • In a narrow sheet (≤ 520 px) the dot before the clock goes; that is the room a six-letter word needed to be shown whole.

Result: a phone shows DONE 0:05; the narrow header beside the map shows DONE · 0:05; a wide header keeps DONE · 2 STEPS · 0:05.

Twin consoles

app only: the status line exists only in the app console's agent header.

Checks

  • New browser check specs/041-agent-turn-indicators/e2e/fit.mjs: plays a turn at 390 px and 1440 px and, at every phase (waiting, step, writing, done), measures the pieces of the line: none over another, none past the line or under a control, none cut in half at the end. 24 checks pass; on the header before this change it fails at 390 px.
  • turn.mjs (53 checks) still passes; nuxt typecheck clean.
  • No console errors, no failed requests.

… (RANCH-5)

After a turn the agent header reads "Done · 2 steps · 0:16". The count of
steps could not shrink, so in a narrow header it was drawn over the clock.

The line is now clipped to its own room. The count of steps wraps to a
second, clipped line where it does not fit whole, so it is left out and
never cut in half; the marks on the ring say the same. In a narrow sheet
the dot before the clock goes, which is what a six-letter word needed to
be shown whole beside it.

Browser check: specs/041-agent-turn-indicators/e2e/fit.mjs plays a turn at
390 px and 1440 px and measures the pieces of the line at every phase. It
fails on the header before this change.
@maksymhryzodub-prog
maksymhryzodub-prog merged commit 59c1df8 into main Nov 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant