968c6c5d95Added setTypeOptions in useEffect()Jason Zhu2023-04-11 18:46:48 +10:00
1801e43192Recreate useGetRegionOptions and useGetSortOptions again for getting region and sort options in Filter.tsxJason Zhu2023-04-11 18:33:34 +10:00
73fa644a55initialize Filter by setSelectedRegion and fetchPokemonsInTheRegionJason Zhu2023-04-11 18:12:38 +10:00
790c7828b1Remove startAppListening import in pokedexSlice.tsJason Zhu2023-04-11 17:33:28 +10:00
183ce62f30Changed pokedex state variable name; And remove unnecessary listener middlewareJason Zhu2023-04-11 17:31:48 +10:00
81fcac97c6Implement fetchPokemonsInTheRegion to get all pokemons from the regionJason Zhu2023-04-10 15:52:57 +10:00
a09463a2b4Implemented side effect of selectedRegion using app listenerJason Zhu2023-04-07 17:01:18 +10:00
83ae2f34d7Change Redux code style by move all slice initialization process into pokedexSlice, Component are majorly for presentationJason Zhu2023-04-06 23:57:05 +10:00
89b5b976e1Removed getRegionPokemonList endpoint and related testsJason Zhu2023-04-02 21:07:53 +10:00
f4fd616b34Steop using setRegionPokemonList, as now we link Region with Pokemon IDJason Zhu2023-04-02 18:13:44 +10:00
5fee30437bAdd TODO for removing unnecessary endpointsJason Zhu2023-04-02 16:01:36 +10:00
a831e76275Add correct yarn test:watchAll command in package.json, and remove unnecessary App.test.tsxJason Zhu2023-04-02 15:49:35 +10:00
3ee61e19f9Install tslint config for webstormJason Zhu2023-03-31 23:11:30 +11:00
be0903bd93Trying to use getRegionPokemonList endpoint for Loading screenJason Zhu2023-03-31 21:58:03 +11:00
54bd031092Implement getRegionPokemonList with queryFn and related test cases (fix)Jason Zhu2023-03-28 22:46:53 +11:00
f4da542ecdImplement getRegionPokemonList with queryFn and related test casesJason Zhu2023-03-28 22:44:00 +11:00
5c87c25620Modify Filter so it send selectedRegion and selectedType to pokedexSliceJason Zhu2023-03-27 23:49:12 +11:00
0b2de88f4aShow loading image when GetRegionListQuery and GetTypeListQuery is loadingJason Zhu2023-03-27 23:29:10 +11:00
9eb1f1f971Consolidate types/interfaces for apiJason Zhu2023-03-27 23:18:34 +11:00
5d6c09642cImplemented pokeApiAllPagesCustomBaseQuery and jest testsJason Zhu2023-03-27 22:52:15 +11:00
6849b97726Implemented test for getTypeList, getRegionList endpointsJason Zhu2023-03-26 22:26:15 +11:00
6aa1baa5fdRemove unncessary beforeAfter in jest, store was re-created for every testJason Zhu2023-03-26 20:09:58 +11:00
4db65c6375Changed lint-staged.config.js for json filesJason Zhu2023-03-26 18:39:34 +11:00
00556e35d9Installed msw for mocking server, add JEST tests for simple pokedexApi endpoints; Change lint-staged.config.js for json filesJason Zhu2023-03-26 18:39:04 +11:00
af89068929Implemented setSelectedType and setSelectedSort reducer in pokedexSlice, and getRegionList and getTypeList endpointsJason Zhu2023-03-19 22:42:09 +11:00
452794f4e6Created pokedexSlice and pokedexApi to perform getPokemonListJason Zhu2023-03-19 16:53:07 +11:00
e901a58105Moved Filters.tsx into Pokedex feature folderJason Zhu2023-03-19 15:53:49 +11:00