* refactor: stop spreading challenge over the node
Instead of creating a Gatsby node with id of challenge.id, we create a
single node field that has all the challenge data.
While this makes the GraphQL queries more verbose, it means we're free
to create multiple nodes with the same challenge.id.
* test: update time-line test for new GQL schema
* test: update mocks with new GQL schema
* fix: remove circular dependency
redux depended on templates/Challenges/redux and vice versa. This
meant that import order mattered and confusing bugs could arise.
(cherry picked from commit 7d67a4e70922bbb3051f2f9982dcc69e240d43dc)
* feat: require imports to be in alphabetical order
Import order generally does not matter, but there are edge cases
(circular imports and css imports, for example) where changing order
changes behaviour
(cherry picked from commit b8d1393a91ec6e068caf8e8498a5c95df68c2b2c)
* chore: order imports
* fix: lift up challenge description + title comps
This brings the classic Show closer to the others as they
now all create the description and title components
* fix: remove donation-saga/index circular import
(cherry picked from commit 51a44ca668a700786d2744feffeae4fdba5fd207)
* refactor: extract action-types from settings
(cherry picked from commit 25e26124d691c84a0d0827d41dafb761c686fadd)
* fix: lint errors
* feat: prevent useless renames
* Renamed .js files to .tsx
* Migrated 404 to TS
TODO: Ask about default prop
* Migrated certification to TS
Converted to functional component
* Partially migrated challenges to TS
TODO: Ask about Redirect props
* Installed @types/react-helmet and @types/react-redux
Prep for migrating donate, this caused two new TS errors on 404 and certification
* Migrated donate to TS
TODO: Ask about prop spreading
* Migrated email-sign-up to TS
Converted to functional component and removed unused isSignedIn prop
* Migrated index to TS
Removed unused props
* Migrated learn to TS
* Installed @types/react-instantsearch-dom
Prep for migrating search
* Migrated search to TS
Converted to functional component
* Migrated settings to TS
* Migrated unsubscribed to TS
* Installed @types/validator and @types/lodash-es
Prep for migrating update-email
* Migrated update-email to TS
Converted to functional component
* Migrated user to TS
* Updated effect hook dependencies
Also removed unnecessary comments from 404
* Renamed challenges.test.tsx to .ts
* remove search.tsx, as search.js was removed
* revert: packages
* revert: packages
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>