119 Commits

Author SHA1 Message Date
5317050679 Merge all api types together 2023-05-08 21:15:51 +10:00
1055a14457 Put types into correct directory (fix filterApi.ts) 2023-05-08 20:34:13 +10:00
6082aa75a0 Put types into correct directory 2023-05-08 20:33:42 +10:00
9bb252de00 Fixed pokedex.test.ts after splitting filter out of pokedex component 2023-05-08 20:12:45 +10:00
db331acbb1 Move Filter related tests in original pokedexApi.test.ts into filterApi.test.ts 2023-05-08 19:59:04 +10:00
1d58f41b5f Fixed Filters.test.ts 2023-05-08 00:24:33 +10:00
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
6acabeb91a Added InfoDialog feature (partially done) 2023-05-07 23:28:14 +10:00
ff92db699d Prettier GenderRate.css 2023-05-07 23:10:50 +10:00
f5e0a75c64 Modified index.css file for better global rendering 2023-05-07 23:10:23 +10:00
749a745b4a Created GenderRate component for InfoDialog 2023-05-07 23:09:15 +10:00
0c4f2d4b67 Import index.css as global css into storybook 2023-05-07 22:39:39 +10:00
2ae23cdbfa Refactored PokemonCard a little bit 2023-05-07 22:39:08 +10:00
1f0ab75d6e Implemented index.ts for PokemonTypes 2023-05-07 22:32:06 +10:00
93fe0cb24a Fixed url import of image in index.css 2023-05-07 22:31:12 +10:00
40a64e9033 Implemented GenderRate component for InfoDialog feature 2023-05-07 22:30:20 +10:00
a21427b91f Remove unnecessary Filter component in Pokedex 2023-05-07 21:34:12 +10:00
be9d767bfd Moved Filter component into a separate feature 2023-05-07 21:30:49 +10:00
6295a6a792 Prettier PokemonCard.css 2023-05-07 19:55:50 +10:00
dbb7ab99d2 Fixed storybook hierarchy for PokemonCard 2023-05-07 19:54:45 +10:00
92d3428c84 Move PokemonCard component into component directory 2023-05-07 19:50:50 +10:00
ce3d3ce0d7 Fixed width problem of rendering in storybook 2023-05-07 16:10:48 +10:00
5068a6f728 Move poke__type css class into PokemonCard component 2023-05-07 15:50:47 +10:00
b56eae4e40 Addd searchInput selector & remove redundant css 2023-04-19 00:14:45 +10:00
b2839de8a7 Add filter css (part2: prettier) 2023-04-19 00:03:43 +10:00
133884e717 Add filter css 2023-04-19 00:03:02 +10:00
bb5f6d73c4 Add css for types in PokemonCard back to fix render issue in storybook 2023-04-18 22:46:45 +10:00
ec0af2f3ac Remove unnecessary images asset and modified PokemonCard for using PokemonTypes component 2023-04-18 21:16:43 +10:00
71bc089745 Implemented PokemonTypes common component (part2) 2023-04-18 21:10:57 +10:00
faf44410bd Implemented PokemonTypes common component 2023-04-18 21:09:53 +10:00
3281629dcf Implemented search in the filter bar 2023-04-17 22:52:54 +10:00
10442f9dc8 Implemented pokedex list style 2023-04-17 22:34:18 +10:00
2857b1d131 Added react-lazy-load-image-component for lazy loading image in PokemonCard 2023-04-17 22:16:25 +10:00
3926267d77 Fixed setIsLoadingPokemons calling in fetchPokemonsInRegion 2023-04-17 19:13:28 +10:00
c10c2f2608 Removed redundant cache clear code 2023-04-17 18:58:34 +10:00
00a8e7cba1 Transforms full Pokemon to pokemonCard in PokedexSlice to reduce store size 2023-04-17 18:43:29 +10:00
609b5621f1 Change number in PokemonCardProps to id 2023-04-17 00:26:13 +10:00
9338a70918 Renamed Pokemon component to PokemonCard 2023-04-17 00:14:29 +10:00
2d4426d84d Remove setPokemonList action, and replaced calling pokedexApi using regular fetch 2023-04-17 00:10:26 +10:00
91ead7f64f Modify pokedex.test.ts, clear up redundant code 2023-04-12 23:54:12 +10:00
8696392dce Implemented sortPokemonsByIdOrName and related unit tests 2023-04-12 23:44:13 +10:00
88fb450c5a Fixed pokedexApi.test.ts 2023-04-12 23:24:29 +10:00
92f7111943 Fixed filterPokemonByType problem by creating separate function and write unit tests 2023-04-12 23:23:52 +10:00
fd21848a85 Implemented setTypeOptions and setSelectedType at correct place 2023-04-12 21:57:02 +10:00
e2bbe1d959 Implemented filteredPokemonList feature 2023-04-11 19:50:59 +10:00
968c6c5d95 Added setTypeOptions in useEffect() 2023-04-11 18:46:48 +10:00
1801e43192 Recreate useGetRegionOptions and useGetSortOptions again for getting region and sort options in Filter.tsx 2023-04-11 18:33:34 +10:00
73fa644a55 initialize Filter by setSelectedRegion and fetchPokemonsInTheRegion 2023-04-11 18:12:38 +10:00
790c7828b1 Remove startAppListening import in pokedexSlice.ts 2023-04-11 17:33:28 +10:00
183ce62f30 Changed pokedex state variable name; And remove unnecessary listener middleware 2023-04-11 17:31:48 +10:00