Orcasa-Platform / orcasa

A Horizon Europe project to restore soil earth
https://orcasa-client.vercel.app
MIT License
2 stars 0 forks source link

[Network] Display the number of results #191

Closed clementprdhomme closed 8 months ago

clementprdhomme commented 8 months ago

This PR displays the number of results (organisations and projects) at the top of the sidebar in the Network module.

Acceptance criteria

Tracking

vercel[bot] commented 8 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
orcasa-client ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 13, 2024 10:37am
Bluesmile82 commented 8 months ago

Is there a reason why we are not using the same UseNetworks hook for the count?

clementprdhomme commented 8 months ago

Nope, you're right. I'm just reading the meta data. I'll update this PR!

clementprdhomme commented 8 months ago

Actually there is a reason: useNetworks doesn't return the metadata. So we have two options:

  1. Update useNetworks so it returns the metadata (total)
  2. Keep the new useNetworksCount hook but set the page size to 1 (already tested it locally)

Which one would you prefer?

Bluesmile82 commented 8 months ago

I think is ok. Thanks!