Repository navigation
Gia2/UI inconsistencies - #346
Conversation
✅ Deploy Preview for hope-for-haiti ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Greptile SummaryThis PR standardizes page headers across admin and partner screens by unifying font weight ( Confidence Score: 5/5
Important Files Changed
|
| <div className="h-4"></div> | ||
|
|
||
| <div className="flex items-start justify-between"> | ||
| <h1 className="text-2xl font-semibold text-gray-primary mb-2"> | ||
| Wishlist | ||
| <h1 className="text-2xl font-semibold text-gray-primary m-0 -mt-3"> | ||
| My Wishlist | ||
| </h1> |
There was a problem hiding this comment.
Inconsistent spacing approach and redundant negative margin
A h-4 spacer div (16px) is placed before the header, then m-0 -mt-3 is applied to the h1 — effectively reducing the spacing to 4px. Every other screen in this PR places the spacer after the heading and doesn't use negative margins. This inconsistency undermines the consistency goal of the ticket.
| <div className="h-4"></div> | |
| <div className="flex items-start justify-between"> | |
| <h1 className="text-2xl font-semibold text-gray-primary mb-2"> | |
| Wishlist | |
| <h1 className="text-2xl font-semibold text-gray-primary m-0 -mt-3"> | |
| My Wishlist | |
| </h1> | |
| <div className="flex items-start justify-between"> | |
| <h1 className="text-2xl font-semibold text-gray-primary m-0"> | |
| My Wishlist | |
| </h1> | |
| </div> | |
| <div className="h-4"></div> |
Context Used: Fill out this checklist in addition to code commen... (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
| <div className="flex items-start justify-between"> | ||
| <h1 className="text-2xl font-semibold text-gray-primary m-0"> | ||
| Available Items | ||
| </h1> | ||
| </div> | ||
|
|
||
| <div className="h-4"></div> |
There was a problem hiding this comment.
Spacer div instead of padding/gap; redundant flex wrapper
The project checklist requires using flex gaps and paddings instead of spacer elements. The <div className="h-4"> should be replaced with pt-4 on the AdvancedBaseTable's wrapper or gap-4 on a flex parent. The same pattern appears in AccountManagement, AdminUnallocatedItems, PartnerRequests, and PartnerWishlist — all five instances should be changed.
Additionally, the flex items-start justify-between wrapper div has only one child (h1), making the flex layout redundant. The same occurs in PartnerRequestsScreen.tsx and ProfileScreenPartner.tsx.
Context Used: Fill out this checklist in addition to code commen... (source)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Description
Resolves ticket number: #338
Explain what your code changes:
Fixes the headers for all pages for both partners and admin to be consistent between pages.
List the steps you took to test your code:
I switched through the different account types and pages. I took pictures between tabs to make sure headers were the same between pages.
Checklist