Commit Graph

174 Commits (22e291c932eb18968379fc8131aeb8444beabfa4)

Author SHA1 Message Date
Jason Zhu 25a010e7c6 Refactor colorTypeGradients method to make it shorter 2023-05-08 23:14:03 +10:00
Jason Zhu 57e92b17d3 Prettier format EvolutionSpecies.css 2023-05-08 22:51:07 +10:00
Jason Zhu c20e58db52 Created EvolutionSpecies component with motion 2023-05-08 22:50:43 +10:00
Jason Zhu 23db199ab0 Fixed wrong import in filterApi.test.ts 2023-05-08 21:24:22 +10:00
Jason Zhu 7f563d8c73 Remove listenerMiddleware 2023-05-08 21:23:24 +10:00
Jason Zhu 5317050679 Merge all api types together 2023-05-08 21:15:51 +10:00
Jason Zhu 1055a14457 Put types into correct directory (fix filterApi.ts) 2023-05-08 20:34:13 +10:00
Jason Zhu 6082aa75a0 Put types into correct directory 2023-05-08 20:33:42 +10:00
Jason Zhu 9bb252de00 Fixed pokedex.test.ts after splitting filter out of pokedex component 2023-05-08 20:12:45 +10:00
Jason Zhu db331acbb1 Move Filter related tests in original pokedexApi.test.ts into filterApi.test.ts 2023-05-08 19:59:04 +10:00
Jason Zhu 1d58f41b5f Fixed Filters.test.ts 2023-05-08 00:24:33 +10:00
Jason Zhu 3539b6febe Separate selected Region/Type/Sort/SearchInput out of Pokedex, so it become easier for testing in storybook 2023-05-08 00:24:16 +10:00
Jason Zhu 6acabeb91a Added InfoDialog feature (partially done) 2023-05-07 23:28:14 +10:00
Jason Zhu ff92db699d Prettier GenderRate.css 2023-05-07 23:10:50 +10:00
Jason Zhu f5e0a75c64 Modified index.css file for better global rendering 2023-05-07 23:10:23 +10:00
Jason Zhu 749a745b4a Created GenderRate component for InfoDialog 2023-05-07 23:09:15 +10:00
Jason Zhu 0c4f2d4b67 Import index.css as global css into storybook 2023-05-07 22:39:39 +10:00
Jason Zhu 2ae23cdbfa Refactored PokemonCard a little bit 2023-05-07 22:39:08 +10:00
Jason Zhu 1f0ab75d6e Implemented index.ts for PokemonTypes 2023-05-07 22:32:06 +10:00
Jason Zhu 93fe0cb24a Fixed url import of image in index.css 2023-05-07 22:31:12 +10:00
Jason Zhu 40a64e9033 Implemented GenderRate component for InfoDialog feature 2023-05-07 22:30:20 +10:00
Jason Zhu a21427b91f Remove unnecessary Filter component in Pokedex 2023-05-07 21:34:12 +10:00
Jason Zhu be9d767bfd Moved Filter component into a separate feature 2023-05-07 21:30:49 +10:00
Jason Zhu 6295a6a792 Prettier PokemonCard.css 2023-05-07 19:55:50 +10:00
Jason Zhu dbb7ab99d2 Fixed storybook hierarchy for PokemonCard 2023-05-07 19:54:45 +10:00
Jason Zhu 92d3428c84 Move PokemonCard component into component directory 2023-05-07 19:50:50 +10:00
Jason Zhu ce3d3ce0d7 Fixed width problem of rendering in storybook 2023-05-07 16:10:48 +10:00
Jason Zhu 5068a6f728 Move poke__type css class into PokemonCard component 2023-05-07 15:50:47 +10:00
Jason Zhu b56eae4e40 Addd searchInput selector & remove redundant css 2023-04-19 00:14:45 +10:00
Jason Zhu b2839de8a7 Add filter css (part2: prettier) 2023-04-19 00:03:43 +10:00
Jason Zhu 133884e717 Add filter css 2023-04-19 00:03:02 +10:00
Jason Zhu bb5f6d73c4 Add css for types in PokemonCard back to fix render issue in storybook 2023-04-18 22:46:45 +10:00
Jason Zhu ec0af2f3ac Remove unnecessary images asset and modified PokemonCard for using PokemonTypes component 2023-04-18 21:16:43 +10:00
Jason Zhu 71bc089745 Implemented PokemonTypes common component (part2) 2023-04-18 21:10:57 +10:00
Jason Zhu faf44410bd Implemented PokemonTypes common component 2023-04-18 21:09:53 +10:00
Jason Zhu 3281629dcf Implemented search in the filter bar 2023-04-17 22:52:54 +10:00
Jason Zhu 10442f9dc8 Implemented pokedex list style 2023-04-17 22:34:18 +10:00
Jason Zhu 2857b1d131 Added react-lazy-load-image-component for lazy loading image in PokemonCard 2023-04-17 22:16:25 +10:00
Jason Zhu 3926267d77 Fixed setIsLoadingPokemons calling in fetchPokemonsInRegion 2023-04-17 19:13:28 +10:00
Jason Zhu c10c2f2608 Removed redundant cache clear code 2023-04-17 18:58:34 +10:00
Jason Zhu 00a8e7cba1 Transforms full Pokemon to pokemonCard in PokedexSlice to reduce store size 2023-04-17 18:43:29 +10:00
Jason Zhu 609b5621f1 Change number in PokemonCardProps to id 2023-04-17 00:26:13 +10:00
Jason Zhu 9338a70918 Renamed Pokemon component to PokemonCard 2023-04-17 00:14:29 +10:00
Jason Zhu 2d4426d84d Remove setPokemonList action, and replaced calling pokedexApi using regular fetch 2023-04-17 00:10:26 +10:00
Jason Zhu 91ead7f64f Modify pokedex.test.ts, clear up redundant code 2023-04-12 23:54:12 +10:00
Jason Zhu 8696392dce Implemented sortPokemonsByIdOrName and related unit tests 2023-04-12 23:44:13 +10:00
Jason Zhu 88fb450c5a Fixed pokedexApi.test.ts 2023-04-12 23:24:29 +10:00
Jason Zhu 92f7111943 Fixed filterPokemonByType problem by creating separate function and write unit tests 2023-04-12 23:23:52 +10:00
Jason Zhu fd21848a85 Implemented setTypeOptions and setSelectedType at correct place 2023-04-12 21:57:02 +10:00
Jason Zhu e2bbe1d959 Implemented filteredPokemonList feature 2023-04-11 19:50:59 +10:00