Releases: Vizzuality/half-earth-v3
8.1.0
Main changes
- Update to About the Map members list
- Update to Search control for Analyze Area in Data Globe
- Display results containing search term, not just results that start with search term
- Ability to scroll list of search results
- Updated results to display more than 6 and allowed visitors to scroll
- Text wrap selected region/country name if too long
8.0.0
Main changes
- Update node to 20.5
- Update birds south-america layer
- Updte ArcGIS js to 4.30
- Change bundler to Vite
- Change esri-loader to @arcgis-loader
- Update React to 17
Updates:
React updated to 17 (This change was made to support the Vite change)
Esri-loader library replaced by @arcgis/core This change was made because the esri-loader library was deprecated in arcgisjs 4.29.
Create react app (react-app-rewired) replaced by Vite. This change was made as react-app-rewired was "lightly maintained" as their page says. This made very difficult any further changes. With vite we have a simple packing system that we will be able to evolve. A further step could be using Next.js but that will require many more changes.
Removed unnecesary dependencies
Icons are now imported no more as:
import { ReactComponent as IconArrow } from 'icons/arrow_right.svg';
but now:
import IconArrow from 'icons/arrow_right.svg?react';
Important:
I have updated the environment variables on vercel, everything that started before REACT_APP_ should be VITE_APP_ now.
Vite creates the bundle on the dist directory so I added a vercel.json that overrides the folder build directory with the following content:
{
"outputDirectory": "dist"
}
Once this is deployed to production we will be able to change the folder build directory directly on Vercel and we won't need this file anymore.
Race condition problems with react 17
There were some race condition problems in React 17 with the system that we have to registry the redux modules based on http://nicolasgallagher.com/redux-modules-and-code-splitting/
Basically the data was tried to be loaded before the module was registered so it wasn't ready and empty once it was registered.
The temporary solution was to load the affected modules directly on the store file avoiding the redux splitting.
My recommendation is to change to redux-toolkit all the redux system and use slices so we have a more robust redux without sacrificing data splitting.
This also could bring us the opportunity to integrate it with react-query and improve the cache on each query.
What's Changed
- Gp changes by @Bluesmile82 in #657
- Fix hide of Click options layers by @cmanciero in #660
- Bug-fixes by @cmanciero in #661
- Bump express from 4.18.2 to 4.19.2 by @dependabot in #662
- Bump follow-redirects from 1.15.2 to 1.15.6 by @dependabot in #658
- Bump webpack-dev-middleware from 5.3.3 to 5.3.4 by @dependabot in #659
- Develop by @cmanciero in #663
- minor formatting by @cmanciero in #664
- More-ui-changes by @cmanciero in #669
- update countries data url by @cmanciero in #673
- Birds-south-america by @cmanciero in #675
- Fix/nrc crash by @Bluesmile82 in #677
- update layers and zoom by @cmanciero in #680
- Set the active layer option in dropdown by @cmanciero in #684
- Upgrade to node 20.5.0 by @Bluesmile82 in #686
- Fix Map layers tab when we have cleared the analysis selection by @Bluesmile82 in #687
- Fix stewardship typo in NRC by @Bluesmile82 in #690
- Vite + Upgrade arcgis to 4.30 + esri-loader => @arcgis/loader by @Bluesmile82 in #691
Full Changelog: v.7.15.0...v.8.0.0
v.7.15.0
What's Changed
- He updates by @cmanciero in #654
- Feature/basemap performance by @Bluesmile82 in #655
- remove layers on clear selection button click by @cmanciero in #656
Full Changelog: v.7.14.0...v.7.15.0
7.14.0
What's Changed
- add scrollbar style to nrc content page by @cmanciero in #649
- Add new basemap for AOIs:
- (feat): Basemap selector [HE-813] by @anamontiaga in #648
- recover basemap on load by @anamontiaga in #650
- remove log by @anamontiaga in #651
- Landcover legend [HE-813] by @anamontiaga in #652
Full Changelog: v.7.13.0...v.7.14.0
7.13.0
What's Changed
- Feature/biodiversity toggle update by @Bluesmile82 in #645
- Bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in #642
- Add SPI card on countries and regions by @Bluesmile82 in #647
- Bump @babel/traverse from 7.20.5 to 7.23.2 by @dependabot in #646
Full Changelog: v.7.12.0...v.7.13.0
7.12.0
What's Changed
- Update information on About Modal by @cmanciero in #643
- Recover HE logo by @Bluesmile82 in #644
- Fix basemap
New Contributors
- @cmanciero made their first contribution in #643
Full Changelog: v.7.11.0...v.7.12.0
7.11.0
What's Changed
-
changes to documentation for new human pressures by @SofiaAldabet in #641
Full Changelog: v.7.10.0...v.7.11.0
7.10.0
What's Changed
- Update fonts to Open Sans by @Bluesmile82 in #638
- Change logos in header and pdf by @Bluesmile82 in #639
- Add cookies banner. Add GA scripts only on user consent by @Bluesmile82 in #640
- Bump webpack from 5.75.0 to 5.77.0 by @dependabot in #636
- Update onboardings
Full Changelog: v.7.9.3...v.7.10.0
7.9.3
What's Changed
Full Changelog: v.7.9.2...v.7.9.3
7.9.2
- Fix drop upload bug for the data globe AOI shapefiles
Full Changelog: v.7.9.1...v.7.9.2