[#675] Improve nav wallet UX#676
Conversation
- Shorten wallet address to first 6 chars (0x4d68) in nav - Remove disconnect button from nav bar - Add DisconnectButton component to profile page next to Human/AI Agent badge, shown only on own profile - Mobile: show compact Connect button / PFP+identifier in top nav bar next to hamburger, no longer hidden inside menu - ConnectWallet now supports compact prop for mobile variant - Hamburger menu still shows full nav links + wallet info Fixes #675 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
project7-interns
left a comment
There was a problem hiding this comment.
T2b APPROVE
Clean UX changes (+69/-17, 3 files):
- ConnectWallet.tsx —
compactprop for mobile,DisconnectButtonextracted and exported. Full mode showsshortAddr(first 6 chars). Disconnect removed from nav connected state. Responsive button sizing viacompactternary. - NavBar.tsx —
md:hidden/hidden md:blockresponsive toggle for compact vs full wallet display. Correct placement next to hamburger. - profile page —
DisconnectButtonguarded byisOwnProfile. Minimal 2-line addition.
Minor observation (non-blocking): When no Farcaster profile is connected, the full mode shows shortAddr as both the link text and the separate span — slight duplication. Not worth blocking over.
project7-interns
left a comment
There was a problem hiding this comment.
Verdict: REQUEST CHANGES
Summary
The overall direction is right, but the current ConnectWallet changes introduce a visible regression for non-profiled wallets and still miss the requested compact mobile identifier behavior.
Findings
- [medium] Users without a Farcaster profile now get the same short address rendered twice in the full nav state.
profile ?@${profile.username}: shortAddralready falls back toshortAddrin the link, and the new secondary span is unconditional, so desktop nav and the mobile hamburger wallet block become0x1234 0x1234instead of a single short address.- File:
src/components/ConnectWallet.tsx:91 - Suggestion: Keep the secondary address span conditional on
profile, as before.
- File:
- [medium] The new compact mobile variant still renders the full
@usernamewhen a profile exists, even though the issue requires a short identifier in the top nav. Long usernames can now consume the limited space next to the hamburger instead of staying compact.- File:
src/components/ConnectWallet.tsx:68 - Suggestion: Truncate the mobile identifier as well, or switch compact mode to a shortened address / shortened username representation.
- File:
Decision
Requesting changes because the PR is close, but these two UX regressions mean it does not yet fully match issue #675 / #330.
- Full nav: only show secondary address span when Farcaster profile exists (avoids 0x1234 0x1234 duplication for no-profile users) - Compact mobile: truncate username to 10 chars with ellipsis to prevent overflow next to hamburger icon Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
project7-interns
left a comment
There was a problem hiding this comment.
T2b APPROVE (re-review after fixes)
Both T2a concerns resolved:
- Secondary
shortAddrspan now conditional onprofile— no-profile users see address once only ✅ - Compact mode truncates username at 10 chars with ellipsis — prevents overflow ✅
project7-interns
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Summary
The latest commit resolves the remaining review concerns. Full nav no longer duplicates the shortened address for users without a Farcaster profile, and the compact mobile variant now uses a shortened identifier that fits the top-nav slot.
Findings
- No blocking findings.
Decision
Approving because the current head now matches issue #675 / #330: desktop nav is simplified, disconnect is moved to the own-profile header, and mobile gets a compact top-nav wallet control without reintroducing the earlier UX regressions.
Summary
0x4d68) instead of full truncated formatcompactprop: New variant for mobile top nav with smaller button and tighter layoutChanged files
src/components/ConnectWallet.tsx— addedcompactprop, exportedDisconnectButtoncomponent, removed disconnect from nav connected statesrc/components/NavBar.tsx— added compactConnectWalletin mobile top barsrc/app/profile/[address]/page.tsx— addedDisconnectButtonnext to Human/AI Agent badge on own profileTest plan
@username 0x1234style with no disconnectnpm run buildpassesFixes #675
🤖 Generated with Claude Code