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

Bug: Active, new and alumni contributors add up incorrectly on list overview page #2216

Closed
2 tasks done
nickytonline opened this issue Nov 28, 2023 · 4 comments
Closed
2 tasks done
Assignees
Labels
🐛 bug Something isn't working 👀 needs triage

Comments

@nickytonline
Copy link
Member

nickytonline commented Nov 28, 2023

Describe the bug

Active, new and alumni contributors add up incorrectly on list overview page

Steps to reproduce

  1. Navigate to http://localhost:3000/lists/8b371419-6219-4448-9de1-f6293a25f98e/overview

Notice the cards don't add up to 18.

CleanShot 2023-11-27 at 19 49 06

Browsers

No response

Additional context (Is this in dev or production?)

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Contributing Docs

  • I agree to follow this project's Contribution Docs
@nickytonline nickytonline added 🐛 bug Something isn't working 👀 needs triage labels Nov 28, 2023
Copy link
Contributor

Thanks for the issue, our team will look into it as soon as possible! If you would like to work on this issue, please wait for us to decide if it's ready. The issue will be ready to work on once we remove the "needs triage" label.

To claim an issue that does not have the "needs triage" label, please leave a comment that says ".take". If you have any questions, please reach out to us on Discord or follow up on the issue itself.

For full info on how to contribute, please check out our contributors guide.

@nickytonline nickytonline changed the title Bug: Active, new and alumni contributors add up incorrectlu on list overview page Bug: Active, new and alumni contributors add up incorrectly on list overview page Nov 28, 2023
@nickytonline
Copy link
Member Author

nickytonline commented Nov 28, 2023

From what I can tell in the list overview page, the active contributors card is loading the total of all contributors, allContributorMeta.itemCount, instead of the active contributor count.

<HighlightCard
label="Active Contributors"
icon="active-contributors"
metricIncreases={allContributorMeta.itemCount > prevAllContributorMeta.itemCount}
increased={allContributorMeta.itemCount > prevAllContributorMeta.itemCount}
numChanged={allContributorMeta.itemCount - prevAllContributorMeta.itemCount}
value={allContributorMeta.itemCount}
isLoading={prevAllContributorStatsLoading || allContributorStatsLoading}
/>

The data should be coming in from a new data source, e.g.

  const { meta: activeContributorMeta, isLoading: activeContributorStatsLoading } = useListStats(
    listId as string,
    "active"
  );

@OgDev-01
Copy link
Contributor

Do we need this open? cc: @brandonroberts

@brandonroberts
Copy link
Contributor

Yes, we will close this out as part of the API v2 refactor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 👀 needs triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants