fossilfuelregistry / portal

3 stars 0 forks source link

Filter for Highest Sources for Fields #204

Open OpenOilUG opened 11 months ago

OpenOilUG commented 11 months ago
niklaserik commented 11 months ago

For the project data we use: https://github.com/fossilfuelregistry/portal-v2/blob/master/lib/useProjectData.tsx and https://github.com/fossilfuelregistry/portal-v2/blob/master/lib/useProjectSources.tsx For the countries we use https://github.com/fossilfuelregistry/portal-v2/blob/master/lib/useCountryData.tsx. I would recommend him to look in the lib folder.

OpenOilUG commented 10 months ago

@niklaserik to implement source prioritisation i added a boolean column to the projects table - i am hoping it is straightforward to select that field in the country queries (drop down box near the top of the page where list of projects from that country are listed). can you confirm query can be adjusted to use this filter... selecting projects only where has_authority = true ??