-
Notifications
You must be signed in to change notification settings - Fork 9
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
APP-323 Integrate project filters #2539
Conversation
✅ Deploy Preview for regen-website ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
5bd7e8c
to
e980e74
Compare
❌ Deploy Preview for terrasos failed. Why did it fail? →
|
95d0b36
to
9a06190
Compare
9a06190
to
18c48c0
Compare
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.
- I don't think we should be able to have both the left side bar and the mobile filter modal open on desktop and the filter sidebar is still there on mobile

- If I use this branch with regen client (not terrasos), I get a mix of both existing regen and terrasos filters:

- Also nothing happens if I click on the region or ecosystem filter items.
I still see several TODOs and console.log's, let me know if I can help to finish that up asap.
Hey @wgardiner et all , some things I noticed:
|
Re-finishing this up. @wgardiner seems like there's still a bunch to do here so if @blushi can take on contributing to tie this up just let us know as we have a day left on the deliverable. We can also have @r41ph review |
@S4mmyb per this dev note on figma: https://www.figma.com/design/brkxGV5qNOkZUp0YQl1cxO/Terrasos-Phase-1?node-id=1111-319415&node-type=instance&t=8N51My8XTlyuHu3w-0 if a project is both compliance and voluntary, then we show the tebu tag |
I just pushed updates
For more discussion
I'm not sure about the ha/tebu badge behavior, I haven't touched that in this PR.
This is what I was talking about in slack with filter intersection versus union. Currently we're displaying projects that satisfy any of the filter conditions, across all filter types. So for example, a project will still display even if no market type is selected, if it satisfies another condition, e.g. an environment type or region. We could choose to change this to only show projects that satisfy any of the filter conditions, but only within each category, so deselecting both market types would hide all projects. |
26d4f1d
to
104187c
Compare
@blushi do you have an idea why I'd be having issues loading the icons from sanity for ecosystem types? I double checked the keys that I'm using and they all seem to match what's in sanity, but I'm only getting back URLs for two of them. Here's what I'm getting from regen-web/web-marketplace/src/hooks/useEcosystemTags.ts Lines 12 to 31 in 104187c
|
@wgardiner "Low Montane Very Humid Forest" doesn't seem to be on neither staging nor prod sanity dataset (we use staging on deploy previews FYI) @erikalogie could you add it along with an icon? I need to debug to see what's wrong with the other 2 |
This had to do with the language not being set on the sanity documents. Btw this logic of having hardcoded ecosystem types/regions is not gonna work well with i18n. |
Fixed |
FYI @wgardiner the styling of the buttons is off: ![]() |
7fdffba
to
c7ac163
Compare
@erikalogie @S4mmyb please have another look |
I see logos on desktop but not mobile |
Hey @blushi , this looks good to me! All of my comments and I believe @erikalogie's were addressed. The only thing I was noticing is that on mobile the ecosystem type logos and projects weren't displaying, but on desktop they were. I'm assuming though, this relates to this comment. If so I think this looks good |
This was my impression too, though I've just copied/pasted what's on figma |
7150159
to
cf4efa1
Compare
@erikalogie what do you think about this for having 2 ecosystem per line? i've made the filter sidebar larger and lowered down the tag max width. One drawback is that this results in some ecosystem types being displayed on 3 lines since they are quite long. Let me know what you think. ![]() |
FYI the many zero results here are really because of the staging data being incomplete as I said above. But this could be an improvement for sure. We just need to see where to draw the line between v1 and v2, otherwise the scope is ever expanding. |
This looks weird, I don't like it wider. Let's just leave it how it was for now. |
Yeah I'm sure you did, maybe just tweak it a little bit to make it look more like the Figma if possible |
Yeah, I'll make a task in the v2 epic |
Agreed - I think if its wider we cant do 3-wide projects either |
Updated the box shadow from 2px to 1px, please have a look @erikalogie |
✅ Deploy Preview for terrasos ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Description
Closes: APP-323
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...
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...