Commit Graph

16 Commits

Author SHA1 Message Date
beff7cd832 Add utility function for calculating group sizes 2026-01-29 01:58:23 +00:00
74f0e1e252 🛠️ Simplify code formatting and improve consistency in API client and JWT utilities tests 2026-01-28 22:48:11 +00:00
e51d484083 🛠️ Add default header management methods to API client 2026-01-28 22:48:06 +00:00
4c950b5686 Improve code readability and formatting in API client utility 2026-01-28 22:16:56 +00:00
d5ec0cd9db Add utility functions for API client integration 2026-01-28 22:16:51 +00:00
649c7733c3 Improve performance monitoring by replacing console.time with performance.now for more precise timing 2026-01-28 21:20:33 +00:00
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