Commit Graph

133 Commits (cbb8dd90546a70e39ee8be0ff9e879af373c1a06)

Author SHA1 Message Date
Jason Zhu cbb8dd9054 Added chromatic as development dependency 2023-05-11 23:30:16 +10:00
Jason Zhu 52ac92fd7a Fixed import directory problem in pokeApi.test.ts 2023-05-11 22:43:58 +10:00
Jason Zhu f8fb41e837 Renamed PokedexState to PokedexStateProps for type 2023-05-11 20:55:53 +10:00
Jason Zhu 08c8af5f4f Implemented getPokemon, getPokemonSpecies, getEvolutionChain endpoints and related jest UTs 2023-05-11 20:04:45 +10:00
Jason Zhu a0adfb0268 Merge all pokeapi related code into one single pokeApi.ts, and relocate it into app/services 2023-05-11 19:05:15 +10:00
Jason Zhu 804c145b11 Separate static part of InfoDialog into InfoDialogComponent, and added stories 2023-05-10 00:13:33 +10:00
Jason Zhu 34af94508e Added name into EvolutionSpecies component 2023-05-10 00:07:14 +10:00
Jason Zhu 4cebf35cf0 Added bulbasaur into PokemonCard storybook 2023-05-08 23:27:44 +10:00
Jason Zhu 6d391d1f9f Refactor colorTypeGradients method again to receive types string list directly 2023-05-08 23:20:47 +10:00
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