Commit Graph

62 Commits (19c189c37de40fcca87908ccb2a624b2b436819e)

Author SHA1 Message Date
Jason Zhu 19c189c37d Setup typescripted listenerMiddleware 2023-04-04 23:12:22 +10:00
Jason Zhu f30edc9700 Move types with pokedexSlice into types/slice.ts 2023-04-02 23:51:23 +10:00
Jason Zhu 40049ef7b5 Remove unnecessary setRegionPokemonList endpoint 2023-04-02 23:50:22 +10:00
Jason Zhu 89b5b976e1 Removed getRegionPokemonList endpoint and related tests 2023-04-02 21:07:53 +10:00
Jason Zhu f4fd616b34 Steop using setRegionPokemonList, as now we link Region with Pokemon ID 2023-04-02 18:13:44 +10:00
Jason Zhu 5fee30437b Add TODO for removing unnecessary endpoints 2023-04-02 16:01:36 +10:00
Jason Zhu a831e76275 Add correct yarn test:watchAll command in package.json, and remove unnecessary App.test.tsx 2023-04-02 15:49:35 +10:00
Jason Zhu 3ee61e19f9 Install tslint config for webstorm 2023-03-31 23:11:30 +11:00
Jason Zhu be0903bd93 Trying to use getRegionPokemonList endpoint for Loading screen 2023-03-31 21:58:03 +11:00
Jason Zhu 54bd031092 Implement getRegionPokemonList with queryFn and related test cases (fix) 2023-03-28 22:46:53 +11:00
Jason Zhu f4da542ecd Implement getRegionPokemonList with queryFn and related test cases 2023-03-28 22:44:00 +11:00
Jason Zhu 5c87c25620 Modify Filter so it send selectedRegion and selectedType to pokedexSlice 2023-03-27 23:49:12 +11:00
Jason Zhu 0b2de88f4a Show loading image when GetRegionListQuery and GetTypeListQuery is loading 2023-03-27 23:29:10 +11:00
Jason Zhu 9eb1f1f971 Consolidate types/interfaces for api 2023-03-27 23:18:34 +11:00
Jason Zhu 5d6c09642c Implemented pokeApiAllPagesCustomBaseQuery and jest tests 2023-03-27 22:52:15 +11:00
Jason Zhu 6849b97726 Implemented test for getTypeList, getRegionList endpoints 2023-03-26 22:26:15 +11:00
Jason Zhu 6aa1baa5fd Remove unncessary beforeAfter in jest, store was re-created for every test 2023-03-26 20:09:58 +11:00
Jason Zhu 4db65c6375 Changed lint-staged.config.js for json files 2023-03-26 18:39:34 +11:00
Jason Zhu 00556e35d9 Installed msw for mocking server, add JEST tests for simple pokedexApi endpoints; Change lint-staged.config.js for json files 2023-03-26 18:39:04 +11:00
Jason Zhu 9ed782813d Fixed all .css files 2023-03-26 18:20:17 +11:00
Jason Zhu db682dc2a2 Move Loading screen into Pokedex.tsx 2023-03-26 15:56:51 +11:00
Jason Zhu 33b1f4f79c Configure Pokemon CSS correctly 2023-03-23 21:45:20 +11:00
Jason Zhu 3c91954e29 Implemented background image color of Pokemon Card 2023-03-23 21:21:46 +11:00
Jason Zhu 751704a8c2 Implemented jest test for Pokemon Card component (part 2): export formatNumber 2023-03-23 21:04:15 +11:00
Jason Zhu 9e48382026 Implemented jest test for Pokemon Card component 2023-03-23 21:03:36 +11:00
Jason Zhu 27df3a780a Implemented type color for Pokemon Card component 2023-03-23 20:49:31 +11:00
Jason Zhu 23b29ffccc Implement colorTypeGradients utility function 2023-03-23 20:34:09 +11:00
Jason Zhu 4c0f7f4d1c Implemented PokeTypeAsset in Pokemon Card component 2023-03-23 20:32:28 +11:00
Jason Zhu 0d6c393cbb Moved charizard.json into src/features/Pokedex/Pokemon/assets directory 2023-03-23 00:12:50 +11:00
Jason Zhu cf9e5d490d Moved poke types into src/features/Pokedex/Pokemon/assets directory 2023-03-23 00:12:29 +11:00
Jason Zhu 0b5a98d859 Implement first iteration of Pokemon.stories.tsx 2023-03-22 21:50:35 +11:00
Jason Zhu 91f3d51b9b Configured storybook 2023-03-22 21:29:42 +11:00
Jason Zhu aee577aeef Installed storybook in the project 2023-03-22 21:16:47 +11:00
Jason Zhu 87293cbd7f Change package manager from npm to yarn 2023-03-22 21:11:12 +11:00
Jason Zhu a29c471a0b Implemented index.ts for small components 2023-03-22 20:32:04 +11:00
Jason Zhu 47558e17d3 modified .nvmrc file 2023-03-21 17:28:18 +11:00
Jason Zhu af89068929 Implemented setSelectedType and setSelectedSort reducer in pokedexSlice, and getRegionList and getTypeList endpoints 2023-03-19 22:42:09 +11:00
Jason Zhu 452794f4e6 Created pokedexSlice and pokedexApi to perform getPokemonList 2023-03-19 16:53:07 +11:00
Jason Zhu e901a58105 Moved Filters.tsx into Pokedex feature folder 2023-03-19 15:53:49 +11:00
Jason Zhu 3139f53236 Added Pokedex component 2023-03-19 15:38:29 +11:00
Jason Zhu 4a8ad0256b Fixed abosolute path in App.tsx 2023-03-19 15:24:59 +11:00
Jason Zhu a867ce0001 Use Create-React-App absolute path feature 2023-03-19 15:17:58 +11:00
Jason Zhu bbaec4a027 Move Header.tsx into components directory 2023-03-19 13:16:17 +11:00
Jason Zhu 65f0b56a20 Fixed location of pokemon card location 2023-03-19 12:48:37 +11:00
Jason Zhu 610b501d9a Fixed import of charizard image for example 2023-03-18 23:52:12 +11:00
Jason Zhu fe2f07a165 Added configuration for Webstorm in per project setting 2023-03-18 23:39:18 +11:00
Jason Zhu 1b05c69514 Configured eslint by install eslint-plugin-prettier 2023-03-18 23:38:44 +11:00
Jason Zhu b3d48f475c Added husky and lint-staged for pre-commit check 2023-03-18 23:31:08 +11:00
Jason Zhu 8688cc44f0 Fixed lint & format using prettier and eslint 2023-03-18 23:21:20 +11:00
Jason Zhu 5ccfe5a986 Configured eslint and prettier to work on package.json 2023-03-18 22:52:01 +11:00