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

fix: fixed rendering of lottery chart when less than 4 contributors #3415

Merged
merged 8 commits into from
May 17, 2024

Conversation

nickytonline
Copy link
Member

@nickytonline nickytonline commented May 17, 2024

Description

Fixes the lottery chart when there are less than 4 contributors. Prior to the fix you'd see some broken avatar images and other contributors being consider as a contributor.

Currently if no contributions have been made, it shows as a low lottery factor. This will change to high once @jpmcb's work in the API is merged (see https://github.com/open-sauced/api/issues/808).

Related Tickets & Documents

Fixes #3402

Mobile & Desktop Screenshots/Recordings

The numbers might look a little off for one, two, and three contributors but that's because it's not real data.

CleanShot 2024-05-17 at 11 10 59

CleanShot 2024-05-17 at 11 24 55

CleanShot 2024-05-17 at 11 31 52

Steps to QA

Tier (staff will fill in)

  • Tier 1
  • Tier 2
  • Tier 3
  • Tier 4

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

Copy link

netlify bot commented May 17, 2024

Deploy Preview for design-insights ready!

Name Link
🔨 Latest commit e609e71
🔍 Latest deploy log https://app.netlify.com/sites/design-insights/deploys/66477e2d365f8a0008a55383
😎 Deploy Preview https://deploy-preview-3415--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 configuration.

Copy link

netlify bot commented May 17, 2024

Deploy Preview for oss-insights ready!

Name Link
🔨 Latest commit e609e71
🔍 Latest deploy log https://app.netlify.com/sites/oss-insights/deploys/66477e2d62526c00085c9b41
😎 Deploy Preview https://deploy-preview-3415--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 configuration.

@nickytonline nickytonline requested review from BekahHW and a team May 17, 2024 13:44
@nickytonline nickytonline marked this pull request as draft May 17, 2024 13:44
@BekahHW
Copy link
Member

BekahHW commented May 17, 2024

I wonder if we should have a different design for projects with no contributors in the last 30 days:

image

@bdougie
Copy link
Member

bdougie commented May 17, 2024

I wonder if we should have a different design for projects with no contributors in the last 30 days:

@jpmcb is proposing something for that here https://github.com/open-sauced/api/issues/808

@nickytonline
Copy link
Member Author

nickytonline commented May 17, 2024

deploy-preview-3415--oss-insights.netlify.app

We have a not enough data screen that seems to be used for when it errors. I think we can just show this? But instead of that message we say no activity or something. e.g.

CleanShot 2024-05-17 at 10 39 51

@nickytonline
Copy link
Member Author

Do we know of some repos with less than 4 contributors? I just want to make sure it's calculating correctly. I think it is, but in Storybook it's made up data which is what threw me off initially.

@BekahHW
Copy link
Member

BekahHW commented May 17, 2024

@nickytonline pretty sure my blog has less than four: https://github.com/BekahHW/BekahHW.github.io

@nickytonline nickytonline force-pushed the nickytonline/fix-lotto-factor-component branch from 2c4a8af to 9a12461 Compare May 17, 2024 15:04
@nickytonline nickytonline marked this pull request as ready for review May 17, 2024 15:04
@nickytonline nickytonline force-pushed the nickytonline/fix-lotto-factor-component branch from 0eff0ce to 68346de Compare May 17, 2024 15:09
@nickytonline nickytonline merged commit 3888ecb into beta May 17, 2024
19 checks passed
@nickytonline nickytonline deleted the nickytonline/fix-lotto-factor-component branch May 17, 2024 17:59
open-sauced bot pushed a commit that referenced this pull request May 17, 2024
## [2.29.1-beta.3](v2.29.1-beta.2...v2.29.1-beta.3) (2024-05-17)

### 🐛 Bug Fixes

* fixed rendering of lottery chart when less than 4 contributors ([#3415](#3415)) ([3888ecb](3888ecb))
open-sauced bot pushed a commit that referenced this pull request May 21, 2024
## [2.30.0](v2.29.0...v2.30.0) (2024-05-21)

### 🍕 Features

* add workspaces intro video to welcome modal ([#3432](#3432)) ([d4bce9a](d4bce9a))
* added a loader for StarSearch responses ([#3422](#3422)) ([8972760](8972760))
* open up access to StarSearch and show modal/drawer for login ([#3442](#3442)) ([d228949](d228949))
* Small update to copy for suggested starsearch queries ([#3438](#3438)) ([012db59](012db59))
* update to lunch week card ([#3439](#3439)) ([d41f8fa](d41f8fa))
* Use StarSearchPayload from API ([#3424](#3424)) ([a8b01f7](a8b01f7))

### 🐛 Bug Fixes

* add mobile drawer for `InsightUpgradeModal` ([#3429](#3429)) ([d081980](d081980))
* add support for clipboard copy in Safari and use utility function ([#3433](#3433)) ([2d1b74f](2d1b74f))
* disable search for workspace dropdown if not logged in ([#3414](#3414)) ([b242e92](b242e92))
* fix to avoid StarSearch UI breaking when long words are outputted ([#3420](#3420)) ([4d6bb23](4d6bb23))
* fixed rendering of lottery chart when less than 4 contributors ([#3415](#3415)) ([3888ecb](3888ecb))
* fixed scrolling issues with StarSearch ([#3444](#3444)) ([2c46494](2c46494))
* history chart using correct data for `StarsChart` ([#3443](#3443)) ([f85f1fd](f85f1fd))
* now sauced-orange colour defaults to 1 for opacity ([#3437](#3437)) ([aa9f67f](aa9f67f))
* remove reactions from issues table ([#3435](#3435)) ([e15c6b6](e15c6b6))
* swap out css module prompt with lottery factor ([#3413](#3413)) ([2c9def0](2c9def0))
* updated StarSearch copy ([#3440](#3440)) ([abe33f1](abe33f1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Fix rendering of LotteryGraphChart when no data available
4 participants