Consolidate admin/assigned and admin/completed UI#57
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Refactors the admin “Assigned” and “Completed” review pages to share a common layout component, consolidating duplicated page scaffolding and introducing in-page navigation between the two review views.
Changes:
- Introduce a new shared
ReviewsPageLayoutused by both Assigned and Completed pages. - Update
AssignedPageandCompletedPageto render viaReviewsPageLayoutprops (header/table/detail panel). - Remove the “Completed” item from the main admin sidebar navigation.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| client/web/src/pages/admin/completed/CompletedPage.tsx | Switches to shared ReviewsPageLayout wrapper for consistent header/table/detail composition. |
| client/web/src/pages/admin/assigned/AssignedPage.tsx | Switches to shared ReviewsPageLayout, moving header UI into layout props. |
| client/web/src/pages/admin/_shared/ReviewsPageLayout.tsx | New shared layout providing header (incl. Assigned/Completed tabs), table container, and detail panel slot. |
| client/web/src/pages/admin/_shared/index.ts | Re-exports ReviewsPageLayout for cleaner imports. |
| client/web/src/pages/admin/_shared/AppSidebar.tsx | Removes the sidebar “Completed” nav entry. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| detailPanel, | ||
| }: ReviewsPageLayoutProps) { | ||
| const location = useLocation(); | ||
| const isAssigned = location.pathname === "/admin/assigned"; |
Collaborator
Author
There was a problem hiding this comment.
now that i think about this, this prob isnt the cleanest way to do this, ima change it up rq
Collaborator
Author
There was a problem hiding this comment.
made better in most recent commit
| @@ -38,11 +37,6 @@ const applicantsNav = [ | |||
| url: "/admin/assigned", | |||
| icon: UserCheck, | |||
| }, | |||
Collaborator
Author
Collaborator
Author
Collaborator
Author
|
Maybe rename the left from assigned to reviews? |
Collaborator
|
yeah true. I'll do some clean up with these naming conventions. |
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.




Consolidated the page and removed the Complete area on the side nav menu as it was redundant.