-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: adopt primer design system ui components #1589
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Lovely, nice touch. |
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Sure, testing this locally now :) |
A minor nitpick: there's now two different versions of green. The Gitify logo in the tray, when there's notifs, is one -- I think the same as open PR green? The sidebar icons are another, along with the sub-icons for a notification. |
Good feedback. The sidebar icons are now using the GitHub design tokens (colors), while the others (notification type icon and tray icons) are unchanged. Post this PR I do intend to use the GitHub design token colors more extensively and reduce the amount of tailwind colors we're using |
Yeah I think temporary mismatches are fine, too. |
During further testing, noticed that when a notification row is animating out (mark as read, etc) a horizontal scroll bar is being shown temporarily. Added as an open task to the OP |
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
I think open in background is broken on this branch |
Just tested and it's working for me... |
Will do some more testing |
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
How has the testing been going @bmulholland ? For me it's been really stable. Once this is merged I plan to (finally) move forward with #985 - I have configured this on the atlassify codebase so should be an easy port across |
Signed-off-by: Adam Setch <[email protected]>
Yeah it's been working well for me :) |
@afonsojramos - I know you're a busy man atm, but if you do happen to have time to shake this down would love your feedback, too |
Giving it a try! 👀 |
Wow, this has been a huge amount of work! Everything looks great! However, I've found a couple of visual issues:
And got a few questions regarding implementation on some things. I know that to add primer/react we needed to add I'm also (sometimes) seeing some errors on the console, but I think that is related to this: https://styled-components.com/docs/faqs#shouldforwardprop-is-no-longer-provided-by-default |
<div className="mx-6 mt-2 py-2"> | ||
<Stack direction="horizontal" justify="space-between"> | ||
<IconButton | ||
aria-label="Go Back" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aria-label="Go Back" | |
aria-labelledby="Go Back" |
Personally, I'd remove the tooltip from the back button by using aria-labelledby
instead 👀
Appreciate the kind words @afonsojramos and the feedback on some visual inconsistencies. I'll address them shortly 👨💻 |
Closes: #1541
Adopts the excellent GitHub Primer Design System Component Library - https://primer.style/components to replace our custom components and provide a level-up on user experience and visual consistency.
This PR, though sizeable, focuses on replacing the following components
I have also replaced most tests to use
data-testid
andgetByTestId
so that they're more resilient to UI changesItems found during testing that should be resolved