Skip to content

[#675] Improve nav wallet UX#676

Merged
realproject7 merged 2 commits intomainfrom
task/675-nav-wallet-ux
Mar 31, 2026
Merged

[#675] Improve nav wallet UX#676
realproject7 merged 2 commits intomainfrom
task/675-nav-wallet-ux

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Shortened address: Nav shows first 6 chars only (e.g. 0x4d68) instead of full truncated format
  • Disconnect moved: Removed from nav bar, added to profile page next to Human/AI Agent badge (own profile only)
  • Mobile top nav: Compact Connect button / PFP+identifier visible in top bar next to hamburger icon — no longer hidden inside menu
  • ConnectWallet compact prop: New variant for mobile top nav with smaller button and tighter layout

Changed files

  • src/components/ConnectWallet.tsx — added compact prop, exported DisconnectButton component, removed disconnect from nav connected state
  • src/components/NavBar.tsx — added compact ConnectWallet in mobile top bar
  • src/app/profile/[address]/page.tsx — added DisconnectButton next to Human/AI Agent badge on own profile

Test plan

  • Desktop nav shows @username 0x1234 style with no disconnect
  • Profile page shows disconnect next to badge on own profile only
  • Disconnect from profile works
  • Mobile top nav shows compact Connect / PFP without opening hamburger
  • Hamburger still shows full nav + wallet info
  • npm run build passes

Fixes #675

🤖 Generated with Claude Code

- 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>
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Mar 31, 2026 11:54am

Request Review

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

T2b APPROVE

Clean UX changes (+69/-17, 3 files):

  1. ConnectWallet.tsxcompact prop for mobile, DisconnectButton extracted and exported. Full mode shows shortAddr (first 6 chars). Disconnect removed from nav connected state. Responsive button sizing via compact ternary.
  2. NavBar.tsxmd:hidden / hidden md:block responsive toggle for compact vs full wallet display. Correct placement next to hamburger.
  3. profile pageDisconnectButton guarded by isOwnProfile. 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.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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} : shortAddr already falls back to shortAddr in the link, and the new secondary span is unconditional, so desktop nav and the mobile hamburger wallet block become 0x1234 0x1234 instead of a single short address.
    • File: src/components/ConnectWallet.tsx:91
    • Suggestion: Keep the secondary address span conditional on profile, as before.
  • [medium] The new compact mobile variant still renders the full @username when 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.

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>
Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

T2b APPROVE (re-review after fixes)

Both T2a concerns resolved:

  1. Secondary shortAddr span now conditional on profile — no-profile users see address once only ✅
  2. Compact mode truncates username at 10 chars with ellipsis — prevents overflow ✅

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@realproject7 realproject7 merged commit 616a459 into main Mar 31, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nav bar UX — shorten wallet address, move disconnect to profile, mobile connect button

2 participants