141 Commits

Author SHA1 Message Date
50e64b5197 Implemented functional Pokedex.stories.tsx by using decorator to connect Pokedex component with redux store 2023-05-15 20:30:11 +10:00
05d31c55a9 Rename .storybook/main.js to main.ts and add type to make it works 2023-05-15 20:03:20 +10:00
3eb8eb836e Rename preview.js to preview.ts to use storybook v7 Preview 2023-05-15 19:48:08 +10:00
42a4a86e34 Fix import in InfoDialog component so storybook can render successfully 2023-05-15 19:10:22 +10:00
987fbbaa79 Upgrade storybook/react to version 7 using npx storybook@latest upgrade --prerelease command following https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#from-version-65x-to-700 2023-05-15 18:51:54 +10:00
0048a1c064 Trying to implement Pokedex.stories.tsx 2023-05-13 12:41:42 +10:00
713b86c14a Removed unused stories directory 2023-05-11 23:39:00 +10:00
ddb058dce6 Added chromatic script 2023-05-11 23:34:44 +10:00
cbb8dd9054 Added chromatic as development dependency 2023-05-11 23:30:16 +10:00
52ac92fd7a Fixed import directory problem in pokeApi.test.ts 2023-05-11 22:43:58 +10:00
f8fb41e837 Renamed PokedexState to PokedexStateProps for type 2023-05-11 20:55:53 +10:00
08c8af5f4f Implemented getPokemon, getPokemonSpecies, getEvolutionChain endpoints and related jest UTs 2023-05-11 20:04:45 +10:00
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
804c145b11 Separate static part of InfoDialog into InfoDialogComponent, and added stories 2023-05-10 00:13:33 +10:00
34af94508e Added name into EvolutionSpecies component 2023-05-10 00:07:14 +10:00
4cebf35cf0 Added bulbasaur into PokemonCard storybook 2023-05-08 23:27:44 +10:00
6d391d1f9f Refactor colorTypeGradients method again to receive types string list directly 2023-05-08 23:20:47 +10:00
25a010e7c6 Refactor colorTypeGradients method to make it shorter 2023-05-08 23:14:03 +10:00
57e92b17d3 Prettier format EvolutionSpecies.css 2023-05-08 22:51:07 +10:00
c20e58db52 Created EvolutionSpecies component with motion 2023-05-08 22:50:43 +10:00
23db199ab0 Fixed wrong import in filterApi.test.ts 2023-05-08 21:24:22 +10:00
7f563d8c73 Remove listenerMiddleware 2023-05-08 21:23:24 +10:00
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