π Bug Report
Area: Sidebar β Navigation
Type: Bug β Missing Active State
Priority: Medium
π Description
The Sidebar navigation in FlowForge does not highlight
the currently active route. When a user navigates to
Dashboard, Projects, Workspace, or Chat, none of the
sidebar links show a visual active/selected state.
This makes it impossible for users to know which
page they are currently on just by looking at
the sidebar.
π Root Cause
The Sidebar component uses static link styling
without checking the current pathname. It needs
to use Next.js usePathname() hook to compare
the current route and apply active styles
conditionally.
β Current Behaviour
- All sidebar links look identical regardless
of which page is active
- User has no visual indication of current location
- Poor navigation UX β standard in all modern apps
β
Expected Behaviour
- The active route link should be visually
highlighted (e.g. background color, bold text,
or accent color indicator)
- Highlight should update automatically when
user navigates between pages
- Matches the app's existing emerald/teal
color scheme
π‘ Proposed Fix
In frontend/app/components/Sidebar.tsx:
- Import
usePathname from next/navigation
- Compare each link's
href with current pathname
- Apply active styles conditionally:
const pathname = usePathname();
// For each link:
className={`... ${pathname === href
? "bg-emerald-50 text-emerald-700 font-semibold"
: "text-slate-600 hover:bg-slate-100"}`}
π File to Change
frontend/app/components/Sidebar.tsx
π₯οΈ Steps to Reproduce
- Run app locally (
npm run dev)
- Log in and navigate to
/dashboard
- Look at the sidebar β Dashboard link looks
same as all other links
- Click Projects β again no visual difference
- No active state shown anywhere
@Shriii19
I'd like to work on this issue.
Could you please assign it to me?
nsoc26
π Bug Report
Area: Sidebar β Navigation
Type: Bug β Missing Active State
Priority: Medium
π Description
The Sidebar navigation in FlowForge does not highlight
the currently active route. When a user navigates to
Dashboard, Projects, Workspace, or Chat, none of the
sidebar links show a visual active/selected state.
This makes it impossible for users to know which
page they are currently on just by looking at
the sidebar.
π Root Cause
The Sidebar component uses static link styling
without checking the current pathname. It needs
to use Next.js
usePathname()hook to comparethe current route and apply active styles
conditionally.
β Current Behaviour
of which page is active
β Expected Behaviour
highlighted (e.g. background color, bold text,
or accent color indicator)
user navigates between pages
color scheme
π‘ Proposed Fix
In
frontend/app/components/Sidebar.tsx:usePathnamefromnext/navigationhrefwith current pathnameπ File to Change
frontend/app/components/Sidebar.tsxπ₯οΈ Steps to Reproduce
npm run dev)/dashboardsame as all other links
@Shriii19
I'd like to work on this issue.
Could you please assign it to me?
nsoc26