Commit Graph

49 Commits

Author SHA1 Message Date
700c1cbbbe Refactor authentication handling and improve API client security
- Updated OAuth endpoints for Challonge and Discord in platforms configuration.
- Implemented session and CSRF cookie initialization in main application entry.
- Enhanced Challonge API client to avoid sending sensitive API keys from the browser.
- Modified tournament querying to handle new state definitions and improved error handling.
- Updated UI components to reflect server-side storage of authentication tokens.
- Improved user experience in API Key Manager and Authentication Hub with clearer messaging.
- Refactored client credentials management to support asynchronous operations.
- Adjusted API client tests to validate new request configurations.
- Updated Vite configuration to support session and CSRF handling through proxies.
2026-02-03 12:50:11 -05:00
9fdfbb22d8 🔒 Improve SSH connection handling, enhance file transfer reliability, and update OAuth error handling and tests 2026-01-30 04:53:18 +00:00
efc97eea31 🎯 Refactor test file for improved readability and consistency in formatting and mock function definitions 2026-01-29 05:12:20 +00:00
7b04d39768 Add unit tests for Challonge composable functions 2026-01-29 05:12:15 +00:00
0b465d82c1 Update tests to check for defined properties instead of specific values 2026-01-29 05:10:41 +00:00
716f20039f 🎯 Simplify test code formatting and improve readability in useChallongeClient unit tests 2026-01-29 05:10:36 +00:00
cb75fa34a0 Add unit tests for Challonge client composable 2026-01-29 05:10:30 +00:00
243e4c2eda 🧹 Remove unit tests for useChallongeClient composable 2026-01-29 05:10:20 +00:00
2723b96c0b 🎨 Reformat import statements and destructuring for improved readability 2026-01-29 05:09:43 +00:00
0148d0a1f1 🧪 Add unit tests for useChallongeClient composable and refactor code formatting for readability 2026-01-29 05:09:38 +00:00
568224f2d9 Add composable for interacting with Challonge API 2026-01-29 05:09:33 +00:00
e98cb05b14 Improve code formatting and readability, handle edge cases in tests, and enhance lazy path extraction logic 2026-01-29 03:47:37 +00:00
9507059ad9 Complete Step 16 by extracting and testing the useJsonFilter composable with comprehensive functionality and test coverage 2026-01-29 03:47:32 +00:00
12ea08a7e1 Add unit tests for useLineSelection composable 2026-01-29 03:28:06 +00:00
29aadc41ea 🧪 Update unit test to directly set preferences and validate file content handling 2026-01-29 03:26:35 +00:00
b0ad499b7e 🧪 Simplify and improve test cases for expandDisplayLinesToInclude in useGamemasterFiles composable 2026-01-29 03:26:20 +00:00
c99fdec60d 🔧 Simplify and refactor test for large file handling by replacing mocked data with manual line array setup 2026-01-29 03:26:15 +00:00
69354f5b71 Refactor test to verify successful file loading and content handling instead of error handling 2026-01-29 03:26:10 +00:00
9254bf2f80 🔄 Update test data structure in useGamemasterFiles to use objects instead of plain text for large file simulation 2026-01-29 03:24:48 +00:00
9b4b418724 🔧 Update tests to handle large JSON data and improve file loading error handling 2026-01-29 03:24:38 +00:00
a34468275f 🧪 Improve test by adding setup for available files before simulating load failure 2026-01-29 03:24:33 +00:00
a69ebafb2c 🧪 Update test to handle large file content and improve line expansion logic 2026-01-29 03:24:03 +00:00
c7696eb4bb Improve test for setting correct line numbers by adding line generation and conditional checks 2026-01-29 03:23:53 +00:00
2f636ab08d 🧪 Update test to use large string content instead of object for large file handling 2026-01-29 03:23:48 +00:00
a92c49b178 🔧 Fix error handling and update test logic for loading moves in useGamemasterFiles test 2026-01-29 03:23:38 +00:00
6f72715726 🧪 Simplify unit test by removing unnecessary mock data and adding a prerequisite function call 2026-01-29 03:23:25 +00:00
619aab0309 🧹 Simplify test code by condensing multi-line statements into single lines where applicable 2026-01-29 03:21:14 +00:00
e1bf447c21 Add unit tests for useGamemasterFiles composable 2026-01-29 03:20:51 +00:00
98b0d9b298 🧹 Remove unnecessary whitespace in unit test file 2026-01-29 03:18:57 +00:00
b5a78e5283 🧪 Refactor unit tests to improve clarity and ensure proper handling of debounced search and clearing results 2026-01-29 03:18:52 +00:00
069ac1cea2 🧪 Refactor unit tests for executeSearch to separate query setting and result clearing logic 2026-01-29 03:18:47 +00:00
5bfe7c6078 Improve regex escaping logic in unit test for special characters 2026-01-29 03:18:36 +00:00
3c7e84b21a Add unit tests for Gamemaster search composable 2026-01-29 03:18:32 +00:00
90159b2055 🧹 Remove unnecessary whitespace in unit tests for useFeatureFlags 2026-01-28 23:00:20 +00:00
ecf7e1f316 Add unit tests for feature flag composable 2026-01-28 23:00:15 +00:00
d77706be9f 🧹 Remove unit tests for useFeatureFlags composable 2026-01-28 23:00:05 +00:00
622cec5e2d 🧹 Remove unnecessary whitespace in unit tests for useFeatureFlags 2026-01-28 22:59:39 +00:00
6ec72ff36f Add unit tests for feature flag composable 2026-01-28 22:59:34 +00:00
d94ad418c8 🧪 Simplify DeveloperTools tests by removing complex DOM interactions and redundant test cases, while adding mocks and focusing on core functionality 2026-01-28 22:59:19 +00:00
77da2ef580 🔧 Refactor test setup to use vi.spyOn for mocking useAuth module instead of direct mock replacement 2026-01-28 22:57:55 +00:00
2063c65efd 🔧 Fix import paths in useFeatureFlags unit test file 2026-01-28 22:55:22 +00:00
cf106cd5f3 Refactor unit tests for useFeatureFlags to improve readability, consistency, and formatting 2026-01-28 22:54:28 +00:00
338ee1f750 Add unit tests for feature flag composable 2026-01-28 22:54:23 +00:00
42f9acc4fa 🧹 Remove unnecessary whitespace in useAuth composable unit tests 2026-01-28 22:48:55 +00:00
8f06e50820 Add unit tests for authentication composable 2026-01-28 22:48:50 +00:00
6dfe06a412 Simplify arrow function syntax in unit test 2026-01-28 22:16:38 +00:00
26ff87450e 🛠️ Update useAsyncState test to handle operation cancellation with abort signal 2026-01-28 22:16:33 +00:00
c91843d828 🧪 Refactor unit tests for useAsyncState to improve readability and formatting 2026-01-28 22:15:39 +00:00
84ea99c219 Add unit tests for useAsyncState composable 2026-01-28 22:15:34 +00:00