From 7b660769ef268e114e7994bb4561bc0d6da80099 Mon Sep 17 00:00:00 2001 From: eastagiletracker <310448263+eastagiletracker@users.noreply.github.com> Date: Thu, 13 Aug 2026 15:25:02 +0700 Subject: [PATCH] fix(accounts): keep the sidebar on the accounts page The accounts page rendered only its content with no NavBar, so navigating to /accounts dropped the sidebar and left the user with no way to move to another page. Wrap the content in the same flex + NavBar + main layout every other signed-in page uses, so the sidebar persists. Add a regression test asserting the accounts page renders the nav landmark. --- apps/frontend/src/app/accounts/page.tsx | 34 +++++++++++-------- .../test/components/AccountsPage.test.tsx | 10 ++++++ 2 files changed, 30 insertions(+), 14 deletions(-) diff --git a/apps/frontend/src/app/accounts/page.tsx b/apps/frontend/src/app/accounts/page.tsx index 010a80d3..330a9252 100644 --- a/apps/frontend/src/app/accounts/page.tsx +++ b/apps/frontend/src/app/accounts/page.tsx @@ -1,25 +1,31 @@ 'use client'; import React from 'react'; +import NavBar from '../components/Navbar'; import StaffCard from '../components/StaffCard'; import { facilitationTeam, teamMembers } from './mockUsers'; export default function AccountsPage() { return ( -