Commit Graph

10 Commits

Author SHA1 Message Date
07c4379d81 🎨 Improve code readability by reformatting functions and cleaning up whitespace 2026-01-28 19:50:00 +00:00
b3d6bb0772 Add utility functions for JSON handling and performance optimization 2026-01-28 19:49:45 +00:00
c38d14a432 🎨 Reformat conditional logic for improved readability in regional form check 2026-01-28 19:03:18 +00:00
6f060001d5 Enhance regional form check by verifying form type as a string 2026-01-28 19:03:13 +00:00
7140004554 Refactor regional form check logic for improved readability and formatting consistency 2026-01-28 19:03:02 +00:00
67d333fb31 🌍 Refactor regional form check logic for better readability and clarity in gamemaster utility function 2026-01-28 19:02:51 +00:00
21d7d0c9be Improve readability of getPokemonById method by adjusting return statement formatting 2026-01-28 18:59:00 +00:00
5bcff917ef Add utility functions for interacting with the Game Master API 2026-01-28 18:58:55 +00:00
a24f766e37 🎨 Improve code readability by reformatting and updating function definitions and comments 2026-01-28 18:18:55 +00:00
1944b43af8 feat: implement multi-state tournament querying for Challonge API v2.1
- Add tournament-query.js utility with queryAllTournaments() and helper functions
  * Makes 3 parallel API calls (pending, in_progress, ended states)
  * Uses Promise.all() to wait for all requests
  * Deduplicates results by tournament ID using Map
  * Replaces invalid state: 'all' parameter (API doesn't support 'all' value)

- Implement 5 convenience functions:
  * queryAllTournaments() - Query all states with custom options
  * queryUserTournaments() - Query user's tournaments (shorthand)
  * queryCommunityTournaments() - Query community tournaments
  * queryActiveTournaments() - Query pending + in_progress only
  * queryCompletedTournaments() - Query ended tournaments only
  * queryTournamentsByStates() - Query custom state combinations

- Update ChallongeTest.vue to use queryAllTournaments()
  * Replace invalid state: 'all' with proper multi-state query
  * Now correctly fetches tournaments from all states
  * Update console logging to show all 3 states being queried

- Add comprehensive TOURNAMENT_QUERY_GUIDE.md documentation
  * Explains the problem and solution
  * API reference for all functions
  * Implementation details and performance notes
  * Testing instructions
  * Future enhancement ideas
2026-01-28 18:10:29 +00:00