fix(web): fix #1057 mobile navigation identity confirmation - #1165
Merged
vjuliaife merged 1 commit intoAug 27, 2026
Merged
Conversation
|
@Owolabenjade Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Owolabenjade
force-pushed
the
fix/issue-1057-mobile-nav-user-email
branch
from
August 27, 2026 17:28
e239032 to
b76264b
Compare
|
Deployment failed for project tariff-shield-web with the following error: Learn More: https://vercel.com/docs/concepts/projects/project-configuration |
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.
Close #1057
This PR addresses issue #1057 where the top navigation bar (
apps/web/components/Nav.tsx) hid the logged-in user's email address on small/mobile viewports (< 640px) because the email<span>was styled with Tailwind utility classeshidden sm:inline.On narrow viewports (such as mobile screens), the navigation bar rendered only a generic "Log out" button and the active role link ("Bond dashboard" or "Surety admin"). This created identity ambiguity and UX friction when users switched between different importer or surety demo accounts on mobile devices, as there was no visible indicator of which account was currently authenticated.
Solution & Flow
apps/web/components/Nav.tsxto group the active role link and a mobile-specific user email element inside a column flexbox container (flex flex-col items-start leading-tight).<span className="text-[11px] text-muted sm:hidden max-w-[130px] truncate" title={user.email}>{user.email}</span>rendered directly beneath the role link.<span className="hidden sm:inline text-muted">{user.email}</span>to preserve horizontal inline rendering on screens640px(sm) and wider.Value & Impact
This change resolves account switching confusion on mobile viewports for issue #1057 without introducing header clutter or altering desktop visual layout and responsive breakpoints.
Changed
apps/web/components/Nav.tsx: Updated user section layout to displayuser.emailbeneath the dashboard role link on mobile viewports (sm:hidden) while preserving desktop inline behavior (hidden sm:inline), fixing Nav hides the logged-in user's email on mobile with no alternative way to confirm identity #1057.Testing
The fix was verified using the following static analysis and build verification scripts: