How redward42/pokedex works
Pokedex Randomizer lets a user request a random Pokémon, view its image and attributes, and ban attribute values so subsequent results exclude matches. The main flow retries random PokéAPI requests until it finds an allowed Pokémon, then updates the displayed result and session history. Users can also remove values from the ban list; clicking a ban-worthy displayed value adds it and triggers another search. Most behavior lives in one React component, so several nodes share its exact source path. The graph reflects the sampled source and README; it does not infer unsampled implementation details.
Main entry points: App.tsx Random selection · main.tsx React entry · pokePlink.mp3 Click sound
Components 11
App runtime
- React entry
src/main.tsx - Randomizer UI
src/App.tsx - Result controls
src/App.tsx - Click sound
public/pokePlink.mp3
Pokémon discovery
- Random selection
src/App.tsx - PokéAPI
- Ban filtering
src/App.tsx
Session controls
- Current result
src/App.tsx - Ban list
src/App.tsx - Session history
src/App.tsx
Other components
- User
Connections 15
- React entry → Randomizer UI: renders
src/main.tsx - User → Result controls: clicks
README.md - Result controls → Random selection: requests result
src/App.tsx - Result controls → Click sound: plays
src/App.tsx - Random selection → PokéAPI: fetches Pokémon
src/App.tsx - PokéAPI → Random selection: returns JSON
src/App.tsx - Random selection → Ban filtering: checks candidate
src/App.tsx - Ban filtering → Ban list: reads bans
src/App.tsx - Random selection → Current result: sets allowed result
src/App.tsx - Random selection → Session history: appends result
src/App.tsx - Randomizer UI → Current result: displays
src/App.tsx - Randomizer UI → Session history: displays
src/App.tsx - Randomizer UI → Ban list: displays
src/App.tsx - Randomizer UI → Ban list: adds or removes
src/App.tsx - Ban list → Random selection: triggers search
src/App.tsx