T2.3 - B2: a breakpoint plan for the project switcher, not an ellipsis
"Micron EUV Cleanroom Enable 2667008" did not fit. The switcher capped the name
at 240px inside a 280px button, so the real project name was ellipsised to
"Micron EUV Clean..." on the one control whose job is to tell you which job you
are in - which is the failure this item exists to prevent.
The plan, now written into docs/reference/file-map.md so it is not re-litigated:
>= 1024px the full project NAME. Caps raised to 400px / 340px, which is
enough for a real name with no ellipsis.
< 1024px the project NUMBER alone, e.g. 2667008. Dropping the name beats
shortening it: short, stable, unambiguous.
The number is no longer prefixed to the name at wide widths. Real names already
end with their number, so the old format printed it twice - the test project
rendered as "2667008 - Micron EUV Cleanroom Enable 2667008".
The full name stays reachable at every width by three routes, none hover-only,
because the Field View is a touch surface:
- the drawer, which now shows the active project under its head, wrapping onto
as many lines as it needs and never truncated. This is the guaranteed route,
and it subscribes to ProjectData.onActiveChange so it does not go stale when
the launcher switches project without reloading.
- the switcher's title attribute, carrying the full number and name, which
surfaces on keyboard focus as well as hover.
- the switcher popover, which lists every project in full.
Crossing the breakpoint re-labels, so a resized window does not keep whichever
form was chosen at load.
Verified with the real long name at 390, 768, 1024 and 1440: nothing truncated
at any width (scrollWidth vs clientWidth, not by eye), and the drawer carries
the whole name at all four. T1.1 correctness holds - the switcher never reads
"Select a project" while a project is active.
f_items: F1-F5 FIXED, F3 still passing at all four widths with the wider
switcher. browser_check 71/71.
Wave 2 complete: one drawer on six pages, no flat strip, F2 resolved for real,
S4 closed.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -229,6 +229,35 @@ cannot decide says `INCONCLUSIVE`.
|
||||
|
||||
---
|
||||
|
||||
## The project switcher: what it shows at each width (`B2`, `T2.3`)
|
||||
|
||||
Written here because `T2.3` says to, so it is not re-litigated. Test name is always
|
||||
**"Micron EUV Cleanroom Enable 2667008"** — the real one, and the one that breaks things.
|
||||
|
||||
| Width | The app bar shows | Why |
|
||||
|---|---|---|
|
||||
| **≥ 1024px** | the full project **name** | There is room. The cap is raised to 400px (button) / 340px (name) so a real name fits without an ellipsis. |
|
||||
| **< 1024px** | the project **number** alone, e.g. `2667008` | Short, stable, unambiguous. Dropping the name entirely beats shortening it to "Micron EUV Clean…" on the one control whose job is to tell you which job you are in. |
|
||||
|
||||
The number is not prefixed to the name at wide widths. Real project names already end
|
||||
with their number, so `2667008 — Micron EUV Cleanroom Enable 2667008` printed it twice.
|
||||
|
||||
**The full name is reachable at every width by three routes**, none of them hover-only
|
||||
(Field View is a touch surface — `C1`):
|
||||
|
||||
1. **The drawer** — `.wp-sidenav-proj`, under the drawer head, on every page. Wraps onto
|
||||
as many lines as it needs and is never truncated. This is the guaranteed one.
|
||||
2. **The switcher's `title`** — the full `number — name`, so it surfaces on hover *and*
|
||||
on keyboard focus.
|
||||
3. **The switcher popover** — every project is listed with its full name and number.
|
||||
|
||||
The ellipsis is kept only as a backstop for a name longer than anything real. Verified
|
||||
at 390, 768, 1024 and 1440: no truncation at any of them, and the drawer carries the
|
||||
whole name at all four.
|
||||
|
||||
`T1.1` correctness is preserved — with a project active the switcher never reads
|
||||
"Select a project"; with none active it reads exactly that at every width.
|
||||
|
||||
## Discrepancies
|
||||
|
||||
Things the plan asserts that the repo contradicts. Listed per T0.1's fourth done-when.
|
||||
|
||||
Reference in New Issue
Block a user