Skip to content

feat(layout): mirror new IA in bottom-nav - #213

Open
samuel2926i39-art wants to merge 1 commit into
Stellar-Insightss:mainfrom
samuel2926i39-art:feat/bottom-nav-ia-parity
Open

feat(layout): mirror new IA in bottom-nav#213
samuel2926i39-art wants to merge 1 commit into
Stellar-Insightss:mainfrom
samuel2926i39-art:feat/bottom-nav-ia-parity

Conversation

@samuel2926i39-art

Copy link
Copy Markdown

Summary

sidebar.tsx already groups navigation under the pivot information architecture (Overview, Assets, Wallets, Soroban, Rankings, Validators, Explorer — see its navGroups), but bottom-nav.tsx, the mobile-web equivalent, still used the old flat 4-item list (Dashboard, Corridors, Anchors, Analytics). None of those four map onto the new grouping, so mobile users saw a nav bar that no longer matched the desktop sidebar's structure.

Bottom-nav only has room for a handful of tabs, so rather than trying to fit all 7 groups, this surfaces one representative route per top-priority group:

Tab Route Mirrors sidebar group
Overview /dashboard overview
Assets /trustlines assets
Wallets /wallet wallets
Soroban /soroban soroban
Rankings /rankings rankings

Validators and Explorer are dropped from the bottom bar — the same two groups sidebar.tsx treats as lower-priority (Explorer is sidebar's demoted-utilities section), consistent with the issue's own guidance that Overview/Assets/Wallets/Soroban/Rankings "probably outrank Explorer on a small screen." Icons reuse the same lucide-react icons sidebar.tsx already uses for each of these routes, for visual consistency between desktop and mobile nav.

Before / after

  • Before: Dashboard · Corridors · Anchors · Analytics
  • After: Overview · Assets · Wallets · Soroban · Rankings

All five routes already exist in frontend/src/app/[locale]/ (verified before writing the change).

Testing

  • npx eslint src/components/layout/bottom-nav.tsx → no errors.
  • Verified each new route (/dashboard, /trustlines, /wallet, /soroban, /rankings) exists under frontend/src/app/[locale]/ so no tab points at a dead page.
  • No existing test file covers bottom-nav.tsx (nor does its sibling sidebar.tsx), so no new test convention was introduced here — kept consistent with the current layout component testing pattern (untested) rather than adding one-off coverage this folder doesn't otherwise have.

Scope note

This only changes the nav item list and its icons/labels; the component's structure, active-state logic, and styling are untouched.

Closes #180

sidebar.tsx already groups navigation under the pivot IA (Overview,
Assets, Wallets, Soroban, Rankings, Validators, Explorer), but
bottom-nav.tsx (the mobile-web equivalent) still used the old flat
4-item list (Dashboard, Corridors, Anchors, Analytics), none of which
line up with the new grouping.

Bottom-nav has room for only a handful of tabs, so this surfaces one
representative route per top-priority group instead of the full IA:
Overview (/dashboard), Assets (/trustlines), Wallets (/wallet),
Soroban (/soroban), and Rankings (/rankings) — matching the priority
order called out in the issue and dropping Validators/Explorer, the
same lower-priority groups sidebar.tsx demotes into its "explorer"
section. Icons reuse the same lucide icons sidebar.tsx uses for each
of these routes for visual consistency.

Closes Stellar-Insightss#180
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.

Update bottom-nav.tsx to mirror new information architecture

1 participant