Repository navigation
fix(app): the turn status line no longer overlaps itself on a phone (RANCH-5) - #255
Merged
Merged
Conversation
… (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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-0inside a box that was not clipped, so in a narrow header it was drawn over the clock.What changes
Result: a phone shows
DONE 0:05; the narrow header beside the map showsDONE · 0:05; a wide header keepsDONE · 2 STEPS · 0:05.Twin consoles
apponly: the status line exists only in the app console's agent header.Checks
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 typecheckclean.