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: filter projects by type #2510

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

flagrede
Copy link
Collaborator

Description

Closes: APP-376

Filter Terrasos projects by type.


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • provided a link to the relevant issue or specification
  • provided instructions on how to test
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

How to test

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items
.

I have...

  • confirmed all author checklist items have been addressed
  • reviewed code correctness and readability
  • verified React components follow DRY principles
  • reviewed documentation is accurate
  • reviewed tests
  • manually tested (if applicable)

Copy link

netlify bot commented Oct 22, 2024

Deploy Preview for regen-website ready!

Name Link
🔨 Latest commit 1c3675f
🔍 Latest deploy log https://app.netlify.com/sites/regen-website/deploys/671906524ff3b800083f0537
😎 Deploy Preview https://deploy-preview-2510--regen-website.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.

@flagrede flagrede force-pushed the feat-APP-376-filter-terrasos-projects branch from 86de3f4 to d5eb83a Compare October 22, 2024 14:16
@flagrede flagrede requested a review from blushi October 22, 2024 15:39
@blushi blushi requested a review from wgardiner October 23, 2024 08:10
@flagrede flagrede force-pushed the feat-APP-376-filter-terrasos-projects branch from 4f62e8b to 1c3675f Compare October 23, 2024 14:21
@flagrede flagrede requested a review from blushi October 23, 2024 14:30
@@ -149,18 +149,30 @@ export function useProjectsWithOrders({
projects = projectsData?.projects;
}

const offChainIds = allOffChainProjects.map(project => project.id);
const clientProjects = projects?.filter(project =>
IS_TERRASOS ? offChainIds.includes(project.id) : true,
Copy link
Member

Choose a reason for hiding this comment

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

we are comparing off chain uuids to on chain project ids here, why?

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.

2 participants