fix(jobs): stop the due/worth line breaking mid-phrase #219
No reviewers
Labels
No labels
adr
android
area/calendar
area/design-system
area/i18n
area/jobs
area/offline
area/server
area/testing
bug
ci
duplicate
enhancement
help wanted
invalid
notifications
question
reliability
security
severity/low
severity/medium
tracking
web
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
eagraiclainne/app!219
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/job-card-meta-line"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From
build-review-01.md:Late — was due yesterday · 22 pointsbroke overtwo lines on the deployed board, with the separator dot stranded on its own.
On web the line was four independent flex items — icon, due phrase,
separator, points — in a row that could not wrap. Flex items shrink, so at card
width the text wrapped inside a phrase and the
·was free to land alone.On Android it was worse than untidy. The twin was a plain
Rowwith no wrapat all, and a real-layout Robolectric test at the grid's own 270dp cell width
showed
10 pointsrendering aboveLate — was due 09:45— inverted, notmerely wrapped. That is the kind of thing a semantics-walking test cannot see.
Both surfaces now group the line into two atomic units — icon plus due phrase,
separator plus points — each held unwrapping inside a wrapping container. A
break can only fall between the phrases, and the separator can never leave the
points it belongs to because it is inside that unit rather than beside it.
Stacking rather than shrink-to-fit, which is what §4f's own wording implies.
Measured at the 320px responsive floor and at 1.33× text scale.
The wrap was also a real height hazard: at narrow width and large text it
inflated one card by 144px against its neighbours, and equal height is
structural on a grid with no masonry.
Two tests, each confirmed failing first — a structural one on web, since jsdom
has no layout, and a real-layout one on Android that reproduced the inversion.
Also fixed while there: the Android separator was rendering in the default text
style rather than
labelMedium, which the geometry test surfaced.🤖 Generated with Claude Code
Test report
Coverage: 27.0%
Updated by the check workflow · commit
2b5fa8f90dAndroid test report
Coverage:
Updated by the android workflow · commit
2b5fa8f90da58380408f2b5fa8f90d