Repository navigation
fix(mobile): UX cluster — tab bar, initials, nav chrome, working search (#378, #381, #384, #385) - #413
Merged
Conversation
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]>
Contributor
…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]>
…xes) Co-Authored-By: Claude Fable 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.
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
thick+ near-opaque backing; blur kept for depth.MobileBottomNavisn't aBottomBar, soglobalBarHiddennever applied) → page bars now stack above the nav (fix(mobile): avatar badge clipping + stack page BottomBar above tab nav ui#13).#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)
/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.findRouteForPathpicked 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.#381 — header search dead end (three stacked causes, all fixed)
useUniversalSearchreadjobsData.jobsbutjobs.list()resolves{data, total}— the Jobs group was permanently empty.search-parentsrequiredindustryId, which universal search doesn't have) → now optional; the RPC ignores NULL industry. Added anonSettledguarantee so a failed lookup can't pin the spinner./searchwas 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 — newFeedImagecollapses 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+uitypecheck clean; breadcrumb + work-logs suites pass (81/81).🤖 Generated with Claude Code