Open
Conversation
…upper right corner of grant page
…upper right corner of grant page
…-4-Community/bcan into implement-main-view-sidebar
There was a problem hiding this comment.
Pull request overview
This PR implements a sidebar navigation to replace the previous horizontal header navigation, as specified in issue #299. The changes transform the main navigation from a top header to a left sidebar, providing a more modern UI layout for the application.
Changes:
- Replaced the Header component with a new NavBar sidebar component, introducing a reusable NavTab abstraction for navigation items
- Removed unused components (UserButton, AccountInfo) that displayed user account information
- Added placeholder pages for Settings and Cash Flow features
- Updated notification modal state management from string-based to boolean for simplification
- Adjusted notification popup positioning to accommodate the new sidebar layout
Reviewed changes
Copilot reviewed 12 out of 14 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| frontend/src/main-page/MainPage.tsx | Updated layout to flexbox row with sidebar and scrollable content area |
| frontend/src/main-page/navbar/NavBar.tsx | New sidebar navigation component with admin-conditional Users tab |
| frontend/src/main-page/navbar/NavTab.tsx | Reusable navigation tab component with active state styling |
| frontend/src/main-page/navbar/Bell.tsx | Simplified modal state from string to boolean |
| frontend/src/main-page/navbar/styles/Header.css | Added CSS file (contains unused styles) |
| frontend/src/main-page/navbar/styles/AccountInfo.css | Added CSS file (not imported anywhere) |
| frontend/src/main-page/notifications/NotificationPopup.tsx | Updated to use boolean modal state |
| frontend/src/main-page/grants/GrantPage.tsx | Added BellButton component to page |
| frontend/src/main-page/settings/SettingsPage.tsx | New placeholder settings page |
| frontend/src/main-page/cash-flow/CashFlowPage.tsx | New placeholder cash flow page |
| frontend/src/main-page/header/Header.tsx | Deleted old header component |
| frontend/src/main-page/header/UserButton.tsx | Deleted unused user button component |
| frontend/src/main-page/header/AccountInfo.tsx | Deleted account info modal component |
| frontend/src/styles/notification.css | Adjusted notification popup positioning for sidebar layout |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ℹ️ Issue
Closes #299
📝 Description
Write a short summary of what you added. Why is it important? Any member of C4C should be able to read this and understand your contribution -- not just your team members.
Briefly list the changes made to the code:
Header.tsxcomponent to now beNavBar.tsxwith abstracted tab componentNavTab.tsxUserButton.tsxandAccountInfo.tsx✔️ Verification
What steps did you take to verify your changes work? These should be clear enough for someone to be able to clone the branch and follow the steps themselves.
Provide screenshots of any new components, styling changes, or pages.

Test Changes
If your new feature required some test to be changed or added to fit the new functionality or changes please document these changes here.
N/A
🏕️ (Optional) Future Work / Notes