-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
feat: hide highlights tab components on profiles without highlights #1304
feat: hide highlights tab components on profiles without highlights #1304
Conversation
β Deploy Preview for design-insights ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
β Deploy Preview for oss-insights ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
PR Compliance Checks Passed!
@babblebey works correctly in my testing also |
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.
π
## [1.54.0-beta.6](v1.54.0-beta.5...v1.54.0-beta.6) (2023-06-27) ### π Features * hide highlights tab components on profiles without highlights ([#1304](#1304)) ([976739f](976739f))
π This PR is included in version 1.54.0-beta.6 π The release is available on GitHub release Your semantic-release bot π¦π |
## [1.54.0](v1.53.0...v1.54.0) (2023-06-28) ### π Bug Fixes * fix yellow color for `<Pill />` component ([#1299](#1299)) ([2f2d9f5](2f2d9f5)) ### π Features * hide highlights tab components on profiles without highlights ([#1304](#1304)) ([976739f](976739f)) * add `BillBoard` component to design system ([#1306](#1306)) ([1181cfd](1181cfd)) * add `FeaturedHighlightPanel` component to design system ([#1307](#1307)) ([452213c](452213c)) * add `UserCard` component to storybook design system ([#1295](#1295)) ([6867011](6867011)) * add highlight prompt to design system ([#1297](#1297)) ([4a85e74](4a85e74)) * add top users panel component to design system ([#1300](#1300)) ([9c05fec](9c05fec)) * add URL for collaboration requests ([#1305](#1305)) ([b3f8ea5](b3f8ea5)) * allow login flow after selecting repositories to add to insight page (close [#1132](#1132)) ([#1184](#1184)) ([21aaa0b](21aaa0b)) * implemented/added scroll-area component to design-system ([#1283](#1283)) ([b7280ab](b7280ab))
π This PR is included in version 1.54.0 π The release is available on GitHub release Your semantic-release bot π¦π |
## [1.54.0-beta.6](open-sauced/app@v1.54.0-beta.5...v1.54.0-beta.6) (2023-06-27) ### π Features * hide highlights tab components on profiles without highlights ([#1304](open-sauced/app#1304)) ([976739f](open-sauced/app@976739f))
## [1.54.0](open-sauced/app@v1.53.0...v1.54.0) (2023-06-28) ### π Bug Fixes * fix yellow color for `<Pill />` component ([#1299](open-sauced/app#1299)) ([2f2d9f5](open-sauced/app@2f2d9f5)) ### π Features * hide highlights tab components on profiles without highlights ([#1304](open-sauced/app#1304)) ([976739f](open-sauced/app@976739f)) * add `BillBoard` component to design system ([#1306](open-sauced/app#1306)) ([1181cfd](open-sauced/app@1181cfd)) * add `FeaturedHighlightPanel` component to design system ([#1307](open-sauced/app#1307)) ([452213c](open-sauced/app@452213c)) * add `UserCard` component to storybook design system ([#1295](open-sauced/app#1295)) ([6867011](open-sauced/app@6867011)) * add highlight prompt to design system ([#1297](open-sauced/app#1297)) ([4a85e74](open-sauced/app@4a85e74)) * add top users panel component to design system ([#1300](open-sauced/app#1300)) ([9c05fec](open-sauced/app@9c05fec)) * add URL for collaboration requests ([#1305](open-sauced/app#1305)) ([b3f8ea5](open-sauced/app@b3f8ea5)) * allow login flow after selecting repositories to add to insight page (close [#1132](open-sauced/app#1132)) ([#1184](open-sauced/app#1184)) ([21aaa0b](open-sauced/app@21aaa0b)) * implemented/added scroll-area component to design-system ([#1283](open-sauced/app#1283)) ([b7280ab](open-sauced/app@b7280ab))
What type of PR is this? (check all applicable)
Description
This PR implements the ability to Hide Highlight Tabs Content and Trigger components for user Profiles that either haven't connected their GitHub or most notably haven't posted any highlights.
This was done by conditionally rendering the
hidden
utility class on theTabsTrigger
component item....and conditionally rendering its associated
TabsContent
componentI also address the case where currently logged in user has no highlights, ensuring the Highlight Tab Components are rendered/displayed in the case where they are on their own profile. Screenshots of different cases below.
Related Tickets & Documents
fixes #1227
Mobile & Desktop Screenshots/Recordings
Profile with Highlights
Profile without Highlights
Currently Logged In User Profile without Highlights
Added tests?
Added to documentation?
[optional] Are there any post-deployment tasks we need to perform?
None
[optional] What gif best describes this PR or how it makes you feel?