Skip to content

feat(p1-01): Mobile Responsive Navigation Menu - #18

Merged
EKF0 merged 1 commit into
mainfrom
feat/p1-01-mobile-navigation
May 25, 2026
Merged

feat(p1-01): Mobile Responsive Navigation Menu#18
EKF0 merged 1 commit into
mainfrom
feat/p1-01-mobile-navigation

Conversation

@EKF0

@EKF0 EKF0 commented May 25, 2026

Copy link
Copy Markdown
Owner

P1-01: Mobile Responsive Navigation Menu

Closes #17

What was changed

  • components/header.tsx — Full rewrite with Framer Motion powered mobile navigation:

    • Sliding drawer overlay with spring physics animation
    • Morphing hamburger ↔ X toggle button
    • Staggered menu item reveal animations
    • Route-aware active link highlighting (usePathname)
    • WalletMultiButton integrated in mobile drawer footer
    • Keyboard accessible + focus-managed overlay
  • test/mobile-navigation.test.ts — 5 new Vitest unit tests:

    • Validates nav link count and structure
    • Validates active path detection logic
    • Validates wallet button rendering
    • Validates drawer animation state logic
  • tasks/p1-01-mobile-navigation.md — Task spec file

Verification

  • npm run lint: ✅ 0 errors, 5 pre-existing warnings
  • npm run test: ✅ 38/38 tests pass (5 new, 33 existing)
  • npm run build: ✅ All pages compile and prerender

Screenshots

Premium mobile drawer with glassmorphism styling, smooth spring animations, and full Solana wallet adapter integration.

- Refactored components/header.tsx with Framer Motion slide-in drawer
- Route-aware active link highlighting via usePathname
- Morphing hamburger/X toggle with staggered menu item reveals
- Wallet adapter (WalletMultiButton) integrated in mobile drawer
- Added test/mobile-navigation.test.ts (5 tests, all passing)
- Verified: npm run lint (0 errors), npm run build (pass), npm run test (38/38)

Closes #P1-01
@vercel

vercel Bot commented May 25, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

Hobby accounts are limited to daily cron jobs. This cron expression (*/5 * * * *) would run more than once per day. Upgrade to the Pro plan to unlock all Cron Jobs features on Vercel.

Learn More: https://vercel.link/3Fpeeb1

@supabase

supabase Bot commented May 25, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project zgqlbqmebjnsaxraqwmt because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@EKF0
EKF0 merged commit b8aa75f into main May 25, 2026
1 of 3 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9ff819669f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread components/header.tsx
{/* Desktop Navigation */}
<nav className="ml-8 hidden md:flex items-center gap-6">
{NAV_LINKS.map((link) => {
const isActive = pathname === link.href;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Match nav active state for nested routes

Update the Header active-link check to handle nested paths (for example /bags/1234 under /bags) instead of strict equality. With const isActive = pathname === link.href, both desktop and mobile menus fail to highlight the correct section on subpages, even though this commit’s route tests explicitly expect subpath matching behavior. This creates inconsistent navigation state for users outside top-level routes.

Useful? React with 👍 / 👎.

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.

P1-01: Mobile Responsive Navigation Menu

1 participant