Commit Graph

175 Commits (ad2317b524054cb51cfeab8cc5d5dbf9edb2586c)

Author SHA1 Message Date
Jason Zhu ad2317b524 Update webstorm Project.xml 2023-06-02 22:15:35 +10:00
Jason Zhu 22e291c932 Add eslint no-empty-function rule to stop reporting building problem 2023-05-31 19:39:19 +10:00
Jason Zhu d40214f12d Update deploy website 2023-05-31 18:23:26 +10:00
Jason Zhu 2ecf6c82ed Change name of README.md 2023-05-31 18:14:08 +10:00
Jason Zhu 8c1e2806d5 Modified README to add .gif files 2023-05-31 14:43:47 +10:00
Jason Zhu 766a48f7c0 Centralised all infoDialogSlice related storybook preparation in infoDialogSlice.storybook.ts to reduce code footprint 2023-05-20 15:46:28 +10:00
Jason Zhu 8f217d678a Implement onClick action in EvolutionSpecies.tsx, and fix all related storybook 2023-05-20 15:07:12 +10:00
Jason Zhu 99fd0577fd Removed unnecessary code snippets in Pokedex.stories.tsx 2023-05-20 14:29:58 +10:00
Jason Zhu bf3cbe886b Trying to use type alis extension to replace overlap interface definition 2023-05-20 12:42:04 +10:00
Jason Zhu 768c84d6b8 Remove pagination fetching in pokeApi.ts 2023-05-19 23:28:36 +10:00
Jason Zhu bde86898e2 Fixed most warning in pokeApi.ts and Pokedex.tsx 2023-05-19 22:48:15 +10:00
Jason Zhu 4a13b56c98 Remove unnecessary element in PokemonResponseData type 2023-05-19 22:00:22 +10:00
Jason Zhu 2513d4365f Move initialization of Filter Slice into filterSlice.ts 2023-05-19 21:57:52 +10:00
Jason Zhu 54bf00e22c Removed unnecessary action 2023-05-19 19:42:02 +10:00
Jason Zhu 7bb4fde73e Remove redundant code in pokeApi.ts 2023-05-19 18:37:17 +10:00
Jason Zhu c7d7db22da Added todos in README.md 2023-05-19 00:17:22 +10:00
Jason Zhu 974c2e38ff Prettier Header.css 2023-05-19 00:08:06 +10:00
Jason Zhu 81a2b7cb69 Move files into correct place in asset directory, and refactored Header 2023-05-19 00:07:45 +10:00
Jason Zhu 64a3bedde1 Prettier *.css files 2023-05-18 23:37:54 +10:00
Jason Zhu 93e45f79d6 Fixed loading gif 2023-05-18 23:37:35 +10:00
Jason Zhu e4d3344334 Fixed font issues by importing Teko-Regular.ttf, and VT323-Regular.ttf 2023-05-18 23:27:00 +10:00
Jason Zhu 1c279f4efb Fix relative import 2023-05-18 23:11:20 +10:00
Jason Zhu 8a54245ecb Fixed genderRatio in InfoDialog 2023-05-18 23:06:03 +10:00
Jason Zhu bc9ab24c33 Removed unnecessary InfoDialogProps 2023-05-18 23:01:46 +10:00
Jason Zhu 800cecbefc Removed InfoDialog.stories.tsx 2023-05-18 23:00:07 +10:00
Jason Zhu d27ad13e57 Implemented closing of InfoDialog 2023-05-18 22:59:36 +10:00
Jason Zhu ff05a9bf83 Complete InfoDialog feature, now we can click info icon on card to show modal 2023-05-18 22:46:23 +10:00
Jason Zhu 8607a8f1ad Trying to implement InfoDialogSlice and related api endpoints (app is running but infodialog is not showing) 2023-05-18 22:03:36 +10:00
Jason Zhu 281eafc863 Add *.log and *.tsbuildinfo into .gitignore 2023-05-17 21:51:17 +10:00
Jason Zhu 78b7a4a5f4 Trying to impolement InfoDialogSlice and related api endpoints (Code is faulty) 2023-05-17 21:50:34 +10:00
Jason Zhu 8c442946d3 Fixed PokemonCard render issue for single type, by using unit test 2023-05-15 21:21:45 +10:00
Jason Zhu c50862adbf Renamed stories in PokemonTypes.stories.tsx to have correct story names 2023-05-15 21:20:18 +10:00
Jason Zhu 03e973c68d Remove unnecessary import in InfoDialogComponent.stories.tsx 2023-05-15 20:54:22 +10:00
Jason Zhu 02de053d90 Modify all story files, remove deprecated method and use new Meta & StoryObj from Storybook v7 2023-05-15 20:53:17 +10:00
Jason Zhu 50e64b5197 Implemented functional Pokedex.stories.tsx by using decorator to connect Pokedex component with redux store 2023-05-15 20:30:11 +10:00
Jason Zhu 05d31c55a9 Rename .storybook/main.js to main.ts and add type to make it works 2023-05-15 20:03:20 +10:00
Jason Zhu 3eb8eb836e Rename preview.js to preview.ts to use storybook v7 Preview 2023-05-15 19:48:08 +10:00
Jason Zhu 42a4a86e34 Fix import in InfoDialog component so storybook can render successfully 2023-05-15 19:10:22 +10:00
Jason Zhu 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
Jason Zhu 0048a1c064 Trying to implement Pokedex.stories.tsx 2023-05-13 12:41:42 +10:00
Jason Zhu 713b86c14a Removed unused stories directory 2023-05-11 23:39:00 +10:00
Jason Zhu ddb058dce6 Added chromatic script 2023-05-11 23:34:44 +10:00
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