Skip to content
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: add hover card and expand on contributor stack #742

Merged
merged 14 commits into from
Jan 3, 2023

Conversation

takanome-dev
Copy link
Contributor

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation Update
  • 🎨 Style
  • πŸ§‘β€πŸ’» Code Refactor
  • πŸ”₯ Performance Improvements
  • βœ… Test
  • πŸ€– Build
  • πŸ” CI
  • πŸ“¦ Chore (Release)
  • ⏩ Revert

Description

This PR adds a hover card when hovering contributor stack and expand them.

Related Tickets & Documents

Fixes #683

Mobile & Desktop Screenshots/Recordings

Added tests?

  • πŸ‘ yes
  • πŸ™… no, because they aren't needed
  • πŸ™‹ no, because I need help

Added to documentation?

  • πŸ“œ README.md
  • πŸ““ docs.opensauced.pizza
  • πŸ• dev.to/opensauced
  • πŸ“• storybook
  • πŸ™… no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

[optional] What gif best describes this PR or how it makes you feel?

@netlify
Copy link

netlify bot commented Dec 26, 2022

βœ… Deploy Preview for oss-insights ready!

Built without sensitive environment variables

Name Link
πŸ”¨ Latest commit 0de7906
πŸ” Latest deploy log https://app.netlify.com/sites/oss-insights/deploys/63b4a932a2675c00081db20e
😎 Deploy Preview https://deploy-preview-742--oss-insights.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Dec 26, 2022

βœ… Deploy Preview for design-insights ready!

Name Link
πŸ”¨ Latest commit 0de7906
πŸ” Latest deploy log https://app.netlify.com/sites/design-insights/deploys/63b4a932ee47300008b49c94
😎 Deploy Preview https://deploy-preview-742--design-insights.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@takanome-dev
Copy link
Contributor Author

@bdougie for the stacked contributors, we don't have last_merged_at or last_commit_time. The only info I'm getting is first_commit_time

contributors

@bdougie
Copy link
Member

bdougie commented Dec 27, 2022

@bdougie for the stacked contributors, we don't have last_merged_at or last_commit_time. The only info I'm getting is first_commit_time

To be clear, is this the hovercard you are trying to recreate?

Screen Shot 2022-12-27 at 10 31 50 AM

@bdougie
Copy link
Member

bdougie commented Dec 27, 2022

This needs to be corrected. As I mentioned in my note from the issue, we are only copying the expansion of avatars from the hot repo. The functionality of the hover radix should be copied. The nivo chart can not be hovered over due to a limit of nivo chart. This limitation does not exist elsewhere.

Screen Shot 2022-12-27 at 11 59 16 AM

The hovercard should be the same hovercard used on the contributor calendar
Screen Shot 2022-12-27 at 11 59 40 AM

@takanome-dev
Copy link
Contributor Author

This needs to be corrected. As I mentioned in my note from the issue, we are only copying the expansion of avatars from the hot repo. The functionality of the hover radix should be copied. The nivo chart can not be hovered over due to a limit of nivo chart. This limitation does not exist elsewhere.

The hovercard should be the same hovercard used on the contributor calendar

So, if I understand correctly, when hovering the staked avatar, they should expand and when one of them is hovered, the hovercard used in the contributor calendar should appear. Is that correct?

@bdougie
Copy link
Member

bdougie commented Dec 27, 2022

Correct

@takanome-dev takanome-dev marked this pull request as ready for review December 28, 2022 00:14
@takanome-dev takanome-dev added the needs review PRs that need review from core engineering team label Dec 28, 2022
Copy link
Member

@bdougie bdougie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make avatar link to /users/handle. Eventually all links will be to internal profiles and not github.

Screen Shot 2022-12-28 at 7 39 57 AM

https://deploy-preview-742--oss-insights.netlify.app/user/annacmc

@bdougie bdougie added requested changes and removed needs review PRs that need review from core engineering team labels Dec 28, 2022
Copy link
Contributor

@0-vortex 0-vortex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except img tag. Anything blocking the normal implementation?

components/atoms/Avatar/avatar-hover-card.tsx Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Compliance Checks

Thank you for your Pull Request! We have run several checks on this pull request in order to make sure it's suitable for merging into this project. The results are listed in the following section.

Watched Files

This pull request modifies specific files that require careful review by the maintainers.

Files Matched

  • npm-shrinkwrap.json
  • package.json

@takanome-dev takanome-dev added the needs review PRs that need review from core engineering team label Dec 28, 2022
Copy link
Contributor

@0-vortex 0-vortex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs better anchors, we cannot have div inside a and colliding styles, forcing important. The radix hover card implementation looks good but is colliding with global styles - the global and colliding styles should be removed/debugged

@takanome-dev
Copy link
Contributor Author

@brandonroberts changes made πŸ‘

@OgDev-01
Copy link
Contributor

OgDev-01 commented Jan 3, 2023

Hey @takanome-dev, This looks good overall πŸ‘. Just some minor fix

Previous version

image

Current version

image

The additional contributors count number at the right of the stacked avatar that shows `+number` is now hidden due to the absolute position set on the stacked avatar... The fix lies in the `repoRow` component on line `190`, aligning the `div` to the end should solve this... A suggestion is using `ml-auto`. Once this is fixed, We are right on track to merge this πŸ•

@bdougie
Copy link
Member

bdougie commented Jan 3, 2023

Looks like when expanded on the dashboard, it crosses the boundary. Can you do a quick fix to limit those contributors to 5.

recording

Browser metadata
Path:      /javascript/dashboard/filter/recent
Browser:   Chrome 108.0.0.0 on Mac OS 10.15.7
Viewport:  1280 x 616 @1x
Language:  en-US
Cookies:   Enabled

Open in BrowserStack

Open Deploy Preview Β· Mark as Resolved

Copy link
Member

@bdougie bdougie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bdougie bdougie added requested changes and removed needs review PRs that need review from core engineering team labels Jan 3, 2023
@takanome-dev
Copy link
Contributor Author

The additional contributors count number at the right of the stacked avatar that shows +number is now hidden due to the absolute position set on the stacked avatar... The fix lies in the repoRow component on line 190, aligning the div to the end should solve this... A suggestion is using ml-auto. Once this is fixed, We are right on track to merge this

Nice catch πŸ‘ I don't really remember why I used absolute positioning, but I revert it

@takanome-dev
Copy link
Contributor Author

Looks like when expanded on the dashboard, it crosses the boundary. Can you do a quick fix to limit those contributors to 5.

Fixed βœ”οΈ

@OgDev-01
Copy link
Contributor

OgDev-01 commented Jan 3, 2023

All good now πŸ‘

@OgDev-01 OgDev-01 requested a review from bdougie January 3, 2023 21:59
Copy link
Contributor

@OgDev-01 OgDev-01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@OgDev-01 OgDev-01 merged commit 9f45b3d into open-sauced:beta Jan 3, 2023
@takanome-dev takanome-dev deleted the 683-contributor-hover-card branch January 3, 2023 22:47
github-actions bot pushed a commit that referenced this pull request Jan 3, 2023
## [1.23.0-beta.10](v1.23.0-beta.9...v1.23.0-beta.10) (2023-01-03)

### πŸ• Features

* add hover card and expand on contributor stack ([#742](#742)) ([9f45b3d](9f45b3d))
@github-actions
Copy link
Contributor

github-actions bot commented Jan 3, 2023

πŸŽ‰ This PR is included in version 1.23.0-beta.10 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€

github-actions bot pushed a commit that referenced this pull request Jan 5, 2023
## [1.23.0](v1.22.2...v1.23.0) (2023-01-05)

### πŸ§‘β€πŸ’» Code Refactoring

* update pr velocity indicator ([#707](#707)) ([7e96735](7e96735)), closes [#684](#684)

### πŸ› Bug Fixes

* add missing title props ([cdcc28d](cdcc28d))
* correct some tooling and dependency issues ([#749](#749)) ([cb4ec9f](cb4ec9f))
* only pull insights for stacked avatar on insight pages ([#761](#761)) ([80ae119](80ae119))
* overflow x bug on dashboard ([#709](#709)) ([b022dbc](b022dbc)), closes [#677](#677)
* user profile auth avatar processing errors ([#755](#755)) ([3ba87a6](3ba87a6)), closes [#733](#733)

### πŸ• Features

* add Edit Page button to insight pages ([#738](#738)) ([bde1eb8](bde1eb8)), closes [#685](#685)
* add favorite repos on the design system ([#744](#744)) ([c8660b5](c8660b5)), closes [#717](#717)
* add hover card and expand on contributor stack ([#742](#742)) ([9f45b3d](9f45b3d))
* adjust search font-size ([c451450](c451450))
* change name to enhace from logarithmic ([#743](#743)) ([4384324](4384324))
* enable repository selection & add to new insights page ([#693](#693)) ([ba6405d](ba6405d)), closes [#593](#593) [#592](#592)
* Filter dashboard scatter plot by PR states ([#736](#736)) ([f04093a](f04093a))
* handle close modal when click outside and improve select usage ([#705](#705)) ([105a47b](105a47b)), closes [#689](#689)
* update icon PR  details row ([#706](#706)) ([dac42ba](dac42ba)), closes [#696](#696)
@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2023

πŸŽ‰ This PR is included in version 1.23.0 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€

0-vortex added a commit that referenced this pull request Jan 5, 2023
* origin/main: (29 commits)
  chore(minor): release 1.23.0 [skip ci]
  chore(minor): release 1.23.0-beta.13 on beta channel [skip ci]
  feat: update icon PR  details row (#706)
  chore(patch): release 1.23.0-beta.12 on beta channel [skip ci]
  fix: only pull insights for stacked avatar on insight pages (#761)
  chore(patch): release 1.23.0-beta.11 on beta channel [skip ci]
  refactor: update pr velocity indicator (#707)
  chore(minor): release 1.23.0-beta.10 on beta channel [skip ci]
  feat: add hover card and expand on contributor stack (#742)
  chore(patch): release 1.23.0-beta.9 on beta channel [skip ci]
  fix: user profile auth avatar processing errors (#755)
  chore(minor): release 1.23.0-beta.8 on beta channel [skip ci]
  feat: handle close modal when click outside and improve select usage (#705)
  chore(patch): release 1.23.0-beta.7 on beta channel [skip ci]
  fix: correct some tooling and dependency issues (#749)
  chore(minor): release 1.23.0-beta.6 on beta channel [skip ci]
  fix: add missing title props
  feat: add Edit Page button to insight pages (#738)
  feat: enable repository selection & add to new insights page (#693)
  chore(minor): release 1.23.0-beta.5 on beta channel [skip ci]
  ...
ElpisHelle added a commit to ElpisHelle/next.js-tailwindcss that referenced this pull request Aug 17, 2023
## [1.23.0-beta.10](open-sauced/app@v1.23.0-beta.9...v1.23.0-beta.10) (2023-01-03)

### πŸ• Features

* add hover card and expand on contributor stack ([#742](open-sauced/app#742)) ([9f45b3d](open-sauced/app@9f45b3d))
ElpisHelle added a commit to ElpisHelle/next.js-tailwindcss that referenced this pull request Aug 17, 2023
## [1.23.0](open-sauced/app@v1.22.2...v1.23.0) (2023-01-05)

### πŸ§‘β€πŸ’» Code Refactoring

* update pr velocity indicator ([#707](open-sauced/app#707)) ([7e96735](open-sauced/app@7e96735)), closes [#684](open-sauced/app#684)

### πŸ› Bug Fixes

* add missing title props ([cdcc28d](open-sauced/app@cdcc28d))
* correct some tooling and dependency issues ([#749](open-sauced/app#749)) ([cb4ec9f](open-sauced/app@cb4ec9f))
* only pull insights for stacked avatar on insight pages ([#761](open-sauced/app#761)) ([80ae119](open-sauced/app@80ae119))
* overflow x bug on dashboard ([#709](open-sauced/app#709)) ([b022dbc](open-sauced/app@b022dbc)), closes [#677](open-sauced/app#677)
* user profile auth avatar processing errors ([#755](open-sauced/app#755)) ([3ba87a6](open-sauced/app@3ba87a6)), closes [#733](open-sauced/app#733)

### πŸ• Features

* add Edit Page button to insight pages ([#738](open-sauced/app#738)) ([bde1eb8](open-sauced/app@bde1eb8)), closes [#685](open-sauced/app#685)
* add favorite repos on the design system ([#744](open-sauced/app#744)) ([c8660b5](open-sauced/app@c8660b5)), closes [#717](open-sauced/app#717)
* add hover card and expand on contributor stack ([#742](open-sauced/app#742)) ([9f45b3d](open-sauced/app@9f45b3d))
* adjust search font-size ([c451450](open-sauced/app@c451450))
* change name to enhace from logarithmic ([#743](open-sauced/app#743)) ([4384324](open-sauced/app@4384324))
* enable repository selection & add to new insights page ([#693](open-sauced/app#693)) ([ba6405d](open-sauced/app@ba6405d)), closes [#593](open-sauced/app#593) [#592](open-sauced/app#592)
* Filter dashboard scatter plot by PR states ([#736](open-sauced/app#736)) ([f04093a](open-sauced/app@f04093a))
* handle close modal when click outside and improve select usage ([#705](open-sauced/app#705)) ([105a47b](open-sauced/app@105a47b)), closes [#689](open-sauced/app#689)
* update icon PR  details row ([#706](open-sauced/app#706)) ([dac42ba](open-sauced/app@dac42ba)), closes [#696](open-sauced/app#696)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Contributor Stack should include hover card and expand
5 participants