Skip to content

fix(mobile): UX cluster — tab bar, initials, nav chrome, working search (#378, #381, #384, #385) - #413

Merged
thinkclay merged 5 commits into
mainfrom
fix/mobile-ux-cluster
Jul 22, 2026
Merged

thinkclay merged 5 commits into
mainfrom
fix/mobile-ux-cluster

Conversation

@thinkclay

@thinkclay thinkclay commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The v1.14.0 mobile UX cluster. Paired with Scaffald/ui#13 (submodule pointer bumped here).

Fixes #378
Fixes #381
Fixes #384
Fixes #385

#378 — tab bar bleed-through

  • Web glass surface was 45% opaque → now thick + near-opaque backing; blur kept for depth.
  • Page toolbars (Jobs/Workers) overlapped the nav pill (MobileBottomNav isn't a BottomBar, so globalBarHidden never applied) → page bars now stack above the nav (fix(mobile): avatar badge clipping + stack page BottomBar above tab nav ui#13).
  • Bottom content inset verified already correct — not changed.

#384 — avatar initials

Consolidated three implementations on shared getInitials() (hero showed "MA", drawer "M"); badge no longer clips the second initial (Scaffald/ui#13).

#385 — nav chrome (all four items)

  1. Active tab: /profile//employer routes were mapped to Home and unmatched routes fell back to Home — now only real tab sections highlight; otherwise no tab is lit.
  2. Header titles: findRouteForPath picked the first prefix-match, so ancestors won by flatten order ("Employers" on Record Work Log). Now picks the most specific match (static segments, then length) — fixes every detail/create title generically. Job detail additionally titles with the actual job name.
  3. Breadcrumb: job detail passes explicit crumbs — "Home > Jobs > " (no more "Jobs > Jobs"). (A generic label-dedupe was attempted and reverted — it broke a legitimate test where sibling crumbs share labels with distinct hrefs.)
  4. Employer mode: worker tab bar is hidden in employer mode instead of implying worker context; employer nav lives in the drawer until an employer tab set is designed.

#381 — header search dead end (three stacked causes, all fixed)

  1. useUniversalSearch read jobsData.jobs but jobs.list() resolves {data, total} — the Jobs group was permanently empty.
  2. The skills lookup 400'd every call (search-parents required industryId, which universal search doesn't have) → now optional; the RPC ignores NULL industry. Added an onSettled guarantee so a failed lookup can't pin the spinner.
  3. /search was a bare route with no section _layout → rendered without app chrome. Moved to /search/ with a DrawerLayout layout like other sections.

Verified: searching "welder" from the header shows the Jobs group (incl. Pipe Welder / Fabricator) with See-all under normal app chrome.

#387 — partial (issue stays open)

Fixed: desktop-only "on the left" copy; "1 weeks ago" pluralization (new shared formatRelativeDate); broken feed images — new FeedImage collapses on error instead of rendering ~40%-viewport gray blocks (dashboard widget, PostCard, PostDetailPage, PublishedPostsGallery).
Remaining on #387: profile empty states, work-auth negatives, sign-out destination, industries error state.

Verification

All verified in-browser at 375×812 as [email protected] (screenshots in session log): opaque bar + stacked toolbars, "MR" everywhere, correct titles/breadcrumbs, working search under chrome, clean text-only feed cards. scf-core + ui typecheck clean; breadcrumb + work-logs suites pass (81/81).

🤖 Generated with Claude Code

thinkclay and others added 2 commits July 22, 2026 14:52
Mobile UX cluster, first batch (#378, #384, part of #387).

#378 — bottom tab bar:
- Web surface used GlassSurface material="thin" (45% white); scrolled
  page text read straight through the bar on every tab screen. Switched
  to "thick" plus a near-opaque backing colour — blur is kept for depth
  but the surface now reads solid.
- Page toolbars (Jobs/Workers) rendered on top of the nav pill; they now
  stack above it (see paired @scaffald/ui change). Bottom content inset
  was already correct via DashboardLayout's navBarHeight.

#384 — avatar initials, one helper everywhere:
- Profile hero used displayName.slice(0, 2) → "MA" for Marcus Rivera.
- Drawer used charAt(0) → "M".
- Both now use the shared getInitials(); header already did. Badge
  clipping fixed in @scaffald/ui.

#387 (partial):
- "Search and add certifications on the left" / "form on the left" is
  wrong on mobile, which stacks vertically — reworded.
- "1 weeks ago" / "1 months ago": added a shared, pluralization-correct
  formatRelativeDate and pointed both job cards at it (three near-copies
  of this helper existed).

Verified at 375x812 as marcus.rivera: no text through the tab bar on
Dashboard/Jobs, page toolbar stacked above the nav, and header, drawer
and profile card all show "MR".

Co-Authored-By: Claude Fable 5 <[email protected]>
/profile, /employers, /workers and /assessments were listed under the
Home tab's matchPrefixes, and getActiveSectionIndex fell back to index 0
for anything unmatched — so Home stayed lit on Profile and on every
employer screen, including in employer mode.

Home now matches only /dashboard, and getActiveSectionIndex returns -1
when no tab owns the route; the active pill hides rather than stranding
itself on Home.

Verified at 375x812: Profile and employer screens highlight nothing,
/jobs and /jobs/:id still highlight Jobs, /communities highlights
Community.

Refs #385

Co-Authored-By: Claude Fable 5 <[email protected]>
@thinkclay thinkclay changed the title fix(mobile): opaque tab bar, consistent avatar initials, copy cleanup (#378, #384) fix(mobile): opaque tab bar, avatar initials, active tab, copy cleanup (#378, #384) Jul 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

0 tests  ±0   0 ✅ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ❌ ±0 

Results for commit e777a93. ± Comparison against base commit 0a2fc68.

thinkclay and others added 2 commits July 22, 2026 15:18
…381, #385)

#385 items 2–4:
- findRouteForPath picked the FIRST prefix-matching route, so ancestors
  won by flatten order: the Record Work Log page was titled "Employers",
  job detail "Jobs". Now picks the most specific match (most static
  segments, then longest path) so .../logs/create beats
  .../logs/:workLogId and every detail/create screen gets its own title.
- Job detail passes the actual job title as pageTitle + breadcrumb, so
  the header reads the job name and the crumb is
  "Home > Jobs > <job title>" instead of "Home > Jobs > Jobs".
- Employer mode hides the worker tab bar (Home/Jobs/Community) instead
  of implying worker context; employer navigation lives in the drawer
  until an employer tab set is designed.

#381 — header search was a dead end. Three stacked causes:
- useUniversalSearch read jobsData.jobs but jobs.list() resolves
  {data, total} — the Jobs group was permanently empty.
- The skills lookup 400'd every call: /profiles/skills/search-parents
  required industryId, which universal search doesn't have. Now optional
  (the search_parent_skills RPC ignores a NULL industry), plus an
  onSettled guarantee so a failed lookup can't pin the spinner.
- /search was a bare route in (protected) with no section layout, so it
  rendered without the app header or tab bar. Moved to /search/ with a
  DrawerLayout _layout matching the other sections.

Verified at 375x812: searching "welder" from the header shows the Jobs
group (incl. Pipe Welder / Fabricator) with See-all, under the normal
app chrome; Record Work Log titles "Create Work Log"; job detail titles
the job name with a deduped breadcrumb.

Fixes #381
Refs #385

Co-Authored-By: Claude Fable 5 <[email protected]>
Feed/post images render at a fixed height over a muted backing, so a
broken URL showed as a huge empty gray block (~40% of the mobile
viewport) on the dashboard Communities widget and community feeds.

Added FeedImage — an Image that hides itself onError — and swapped it
into the dashboard widget, PostCard, PostDetailPage and
PublishedPostsGallery. Text content closes the gap; nothing renders for
a dead URL.

Refs #387

Co-Authored-By: Claude Fable 5 <[email protected]>
@thinkclay thinkclay changed the title fix(mobile): opaque tab bar, avatar initials, active tab, copy cleanup (#378, #384) fix(mobile): UX cluster — tab bar, initials, nav chrome, working search (#378, #381, #384, #385) Jul 22, 2026
@thinkclay
thinkclay merged commit b4ca6ef into main Jul 22, 2026
2 of 15 checks passed
@thinkclay
thinkclay deleted the fix/mobile-ux-cluster branch July 30, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment