Repository navigation
fix(Breadcrumb, Tabs): stop running off the right edge of a phone - #25
Merged
Merged
Conversation
Two pieces of page chrome ran past the edge of a 390px screen with nothing
saying they continued.
─── Tabs ──────────────────────────────────────────────────────────────────
Five tabs on one line put "Audit Log" half off-frame, so it read as the end
of the strip rather than a tab you could reach. A clipped tab is worse than a
clipped label: it is a navigation target the user does not know exists.
Below `wrapBelow` (768, matching Lane and Table) a horizontal strip wraps.
Callers who passed `scrollable` keep their scroller — they asked for one.
Wrapping rather than scrolling is the same call as the filter chip strip: an
item scrolled out of frame is an item nobody knows is there. Five short tabs
take two lines, and all five are visible.
─── Breadcrumb ────────────────────────────────────────────────────────────
Two separate causes, and fixing one alone would not have been enough:
1. Four crumbs did not fit. Below `collapseBelow` (768) the trail falls
back to "Home > ... > Current" — keeping the LAST crumb, which is the
one worth reading because it names where you are. An explicit `maxItems`
still wins.
2. The last crumb was itself wider than the screen. "Review Background
Checks" alone exceeds 390px, so the trail's existing `flexWrap` had
nothing to wrap and the text was cut mid-word. The label now truncates
with an ellipsis, which needed `flexShrink` AND `minWidth: 0` on both
the item row and its Pressable wrapper — flexShrink on the Text alone
does nothing while an ancestor's intrinsic width is the floor.
Verified against the real app at 390px:
breadcrumb: ["Home", "...", "Review Background Checks"]
tabs: Checks=onscreen Disputes=onscreen Metrics=onscreen
Catalog=onscreen Audit Log=onscreen
Breadcrumb renders as plain Views, so its behaviour is asserted directly —
unlike Table, whose rows come from a FlatList that renders nothing in jsdom.
Co-Authored-By: Claude Opus 5 <[email protected]>
thinkclay
added a commit
to Scaffald/SaaS
that referenced
this pull request
Aug 27, 2026
Closes #664. Two pieces of page chrome ran past the right edge of a 390px phone with nothing saying they continued: Home > Office > ATS > Review Background Ch… cut mid-word Checks Disputes Metrics Catalog Audit Lo… fifth tab half off-frame The tab is the one that matters. A clipped label is ugly; a clipped tab is a navigation target the user does not know exists. Scaffald/ui#25 fixes both. Tabs wrap below 768 rather than running off — wrapping, not scrolling, for the same reason the filter chip strip wraps: an item out of frame is an item nobody knows is there. The breadcrumb collapses to "Home > … > Current", keeping the crumb that names where you are, and its label truncates so a single long crumb cannot overflow on its own. smoke-wide-tables.mjs now ASSERTS the chrome instead of reporting it. It was reported-not-asserted while #664 was open, so the table smoke would not go permanently red for something it did not own. That distinction is gone now that the chrome is fixed. ✓ mobile rowOverflow=0px columnsOnScreen=4/4 tableClipped=0 ✓ desktop rowOverflow=0px columnsOnScreen=4/4 tableClipped=0 and, checked directly: breadcrumb: ["Home", "...", "Review Background Checks"] tabs: all five on screen Submodule pointer: 14e11f7..b0ab20c Co-authored-by: Claude Opus 5 <[email protected]>
Open
8 of 10 tasks
thinkclay
added a commit
to Scaffald/SaaS
that referenced
this pull request
Aug 27, 2026
…ock the biome bump Lands the five open dependabot PRs as one revertible commit. Four of them touch pnpm-lock.yaml and the catalog, so they conflict pairwise and cannot merge independently; the lockfile here is regenerated from scratch rather than merged. Taken: * actions pnpm/action-setup v6.0.9 → v6.0.10 across five workflows (#550) * dev @nx/* and nx 22.7.7 → 22.7.8, @vitest/ui 4.1.10 → 4.1.11 (#641) * test @testing-library/user-event 14.5.2 → 14.6.5 (#551) * backend @sentry/react 10.69 → 10.70, posthog-js 1.407 → 1.418, posthog-react-native 4.61 → 4.63, posthog-node 5.46 → 5.50 (#619) * misc @hookform/resolvers 5.5.7 → 5.9.1, react-hook-form 7.83 → 7.85, fast-xml-parser 5.10.1 → 5.11.0, mapbox-gl 3.27 → 3.29, supabase CLI 2.110.0 → 2.115.0, swr 2.4.2 → 2.5.1, zustand 5.0.14 → 5.0.15, pg 8.22 → 8.23, @types/pg, uuid, baseline-browser-mapping, flow-remove-types (#642) Two bumps are held back, each with the comment already on its catalog entry: * @rnmapbox/maps 10.1.45 → 10.3.5 still pulls MapboxCommon 24.x from Mapbox's gated downloads API, and MAPBOX_DOWNLOADS_TOKEN is still set in no env file and no EAS environment — so `pod install` still 403s and the iOS build still breaks. Second wave in a row; see #509. Note mapbox-gl 3.29.0 IS taken: that is the web GL library and never touches the CocoaPods path. * @supabase/supabase-js — dependabot moved the catalog to ~2.112.3 while the pnpm override still says ~2.86.0, which is #453 verbatim. lint:overrides would have caught it. The build-time half of the block is gone (#512 moved the EAS builder to Node 22 and validated it), but the 2.86 → 2.110 auth and realtime surface has not been runtime-validated, and that belongs in its own PR rather than inside a dependency batch. @biomejs/biome 2.4.9 → 2.5.10 was the third hold-back. It is taken here, because the two sites blocking it are fixed (#510): * packages/supabase completion.router.ts guarded `preferencesData?.user_types` with Array.isArray and then read it back through a `as string[]` cast. The cast erases undefined, so the guard narrowed nothing. Reading it into a local first makes the narrowing real and drops the cast — the filter now carries a type predicate instead. * packages/ui useFilePicker.ts had the same shape around a forwarded ref, and lives in the submodule. Fixed in Scaffald/ui#23, which main already carries via the pointer at Scaffald/ui#25. 2.5.10 also errors on one site 2.5.5 did not: reviews.ts built its grouping map with `(grouped[key] ??= []).push(skill)`, which trips noAssignInExpressions. Rewritten as three statements. Also: the supabase CLI's local stack writes a minified bundle into packages/supabase/.temp/start-secrets, which biome linted and failed on. That path is generated output — added to the biome ignore list beside the other generated paths. @vitejs/plugin-react 5.1.3 → 6.1.0 rides along, closing #456. Its only hard peer is vite ^8.0.0 and vite 8.0.14 already resolves here; the other three peers are optional. packages/sdk/examples/react stays on 5.x — it is in the sdk submodule and not worth a pointer bump for an example app. Verified locally, since CI is billing-blocked (#375). nx cache reset first, in a clean worktree off main with both submodule dists rebuilt — a stale packages/ui dist reports a misleading `has no exported member 'ListToolbar'` at typecheck, and an unbuilt packages/sdk dist reports `Cannot find module '@scaffald/sdk'`. pnpm check (locales + lint 10 projects + typecheck 12 projects) pass pnpm lint:routes / lint:sorted-keys / lint:overrides pass @scaffald/sdk 783/783 pass nx run-many -t test at parity scf-core:test reports 12 failures, 1128/1198 passing. They are pre-existing on main — baselined with the batch stashed, same twelve test names — and are now tracked as #661. Closes #550, closes #551, closes #619, closes #641, closes #642 Closes #456, closes #510 Refs #453, refs #509, refs #661 Co-Authored-By: Claude Opus 5 <[email protected]>
thinkclay
added a commit
to Scaffald/SaaS
that referenced
this pull request
Aug 27, 2026
…ock the biome bump (#668) Lands the five open dependabot PRs as one revertible commit. Four of them touch pnpm-lock.yaml and the catalog, so they conflict pairwise and cannot merge independently; the lockfile here is regenerated from scratch rather than merged. Taken: * actions pnpm/action-setup v6.0.9 → v6.0.10 across five workflows (#550) * dev @nx/* and nx 22.7.7 → 22.7.8, @vitest/ui 4.1.10 → 4.1.11 (#641) * test @testing-library/user-event 14.5.2 → 14.6.5 (#551) * backend @sentry/react 10.69 → 10.70, posthog-js 1.407 → 1.418, posthog-react-native 4.61 → 4.63, posthog-node 5.46 → 5.50 (#619) * misc @hookform/resolvers 5.5.7 → 5.9.1, react-hook-form 7.83 → 7.85, fast-xml-parser 5.10.1 → 5.11.0, mapbox-gl 3.27 → 3.29, supabase CLI 2.110.0 → 2.115.0, swr 2.4.2 → 2.5.1, zustand 5.0.14 → 5.0.15, pg 8.22 → 8.23, @types/pg, uuid, baseline-browser-mapping, flow-remove-types (#642) Two bumps are held back, each with the comment already on its catalog entry: * @rnmapbox/maps 10.1.45 → 10.3.5 still pulls MapboxCommon 24.x from Mapbox's gated downloads API, and MAPBOX_DOWNLOADS_TOKEN is still set in no env file and no EAS environment — so `pod install` still 403s and the iOS build still breaks. Second wave in a row; see #509. Note mapbox-gl 3.29.0 IS taken: that is the web GL library and never touches the CocoaPods path. * @supabase/supabase-js — dependabot moved the catalog to ~2.112.3 while the pnpm override still says ~2.86.0, which is #453 verbatim. lint:overrides would have caught it. The build-time half of the block is gone (#512 moved the EAS builder to Node 22 and validated it), but the 2.86 → 2.110 auth and realtime surface has not been runtime-validated, and that belongs in its own PR rather than inside a dependency batch. @biomejs/biome 2.4.9 → 2.5.10 was the third hold-back. It is taken here, because the two sites blocking it are fixed (#510): * packages/supabase completion.router.ts guarded `preferencesData?.user_types` with Array.isArray and then read it back through a `as string[]` cast. The cast erases undefined, so the guard narrowed nothing. Reading it into a local first makes the narrowing real and drops the cast — the filter now carries a type predicate instead. * packages/ui useFilePicker.ts had the same shape around a forwarded ref, and lives in the submodule. Fixed in Scaffald/ui#23, which main already carries via the pointer at Scaffald/ui#25. 2.5.10 also errors on one site 2.5.5 did not: reviews.ts built its grouping map with `(grouped[key] ??= []).push(skill)`, which trips noAssignInExpressions. Rewritten as three statements. Also: the supabase CLI's local stack writes a minified bundle into packages/supabase/.temp/start-secrets, which biome linted and failed on. That path is generated output — added to the biome ignore list beside the other generated paths. @vitejs/plugin-react 5.1.3 → 6.1.0 rides along, closing #456. Its only hard peer is vite ^8.0.0 and vite 8.0.14 already resolves here; the other three peers are optional. packages/sdk/examples/react stays on 5.x — it is in the sdk submodule and not worth a pointer bump for an example app. Verified locally, since CI is billing-blocked (#375). nx cache reset first, in a clean worktree off main with both submodule dists rebuilt — a stale packages/ui dist reports a misleading `has no exported member 'ListToolbar'` at typecheck, and an unbuilt packages/sdk dist reports `Cannot find module '@scaffald/sdk'`. pnpm check (locales + lint 10 projects + typecheck 12 projects) pass pnpm lint:routes / lint:sorted-keys / lint:overrides pass @scaffald/sdk 783/783 pass nx run-many -t test at parity scf-core:test reports 12 failures, 1128/1198 passing. They are pre-existing on main — baselined with the batch stashed, same twelve test names — and are now tracked as #661. Closes #550, closes #551, closes #619, closes #641, closes #642 Closes #456, closes #510 Refs #453, refs #509, refs #661 Co-authored-by: Claude Opus 5 <[email protected]>
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.
Fixes the UI half of Scaffald/SaaS#664.
Two pieces of page chrome ran past the edge of a 390px screen with nothing saying they continued.
Tabs
Five tabs on one line put Audit Log half off-frame, so it read as the end of the strip rather than a tab you could reach. A clipped tab is worse than a clipped label — it is a navigation target the user does not know exists.
Below
wrapBelow(768, matchingLaneandTable) a horizontal strip wraps. Callers who passedscrollablekeep their scroller; they asked for one.Wrapping rather than scrolling is the same call as the filter chip strip: an item scrolled out of frame is an item nobody knows is there. Five short tabs take two lines and all five are visible.
Breadcrumb — two causes, and one alone would not have done it
Four crumbs did not fit. Below
collapseBelow(768) the trail falls back toHome > ... > Current, keeping the last crumb — the one worth reading, because it names where you are. An explicitmaxItemsstill wins.The last crumb was itself wider than the screen. "Review Background Checks" alone exceeds 390px, so the trail's existing
flexWraphad nothing to wrap and the text was cut mid-word. The label now truncates with an ellipsis.That second one needed
flexShrinkandminWidth: 0on both the item row and its Pressable wrapper —flexShrinkon theTextalone does nothing while an ancestor's intrinsic width is the floor. I fixed it at the Text first and the measurement did not move, which is what sent me looking at the ancestors.Verified against the real app at 390px
8 tests.
Breadcrumbrenders as plain Views so its behaviour is asserted directly — unlikeTable, whose rows come from aFlatListthat renders nothing in jsdom, which is why its equivalent coverage is a pure function plus a live smoke.🤖 Generated with Claude Code