Add backend unit test framework and modularize settings UI

Introduced a Vitest-based backend unit testing framework with supporting scripts, helpers, and GitHub Actions integration. Refactored the admin settings page to a modular architecture, splitting monolithic logic into feature-specific tabs and hooks for improved maintainability and testability. Updated documentation to reflect the new testing setup and settings architecture, and added new dependencies for testing utilities.
This commit is contained in:
kikootwo
2026-01-15 16:49:59 -05:00
parent b3f89d67bb
commit 94dbaf073b
127 changed files with 23549 additions and 2868 deletions
+3 -3
View File
@@ -82,6 +82,9 @@ export class OIDCAuthProvider implements IAuthProvider {
async initiateLogin(): Promise<LoginInitiation> {
try {
const client = await this.getClient();
// Clean up expired states first
this.cleanupExpiredStates();
const state = generators.state();
const nonce = generators.nonce();
const codeVerifier = generators.codeVerifier();
@@ -95,9 +98,6 @@ export class OIDCAuthProvider implements IAuthProvider {
timestamp: Date.now(),
});
// Clean up expired states
this.cleanupExpiredStates();
// Generate authorization URL
const redirectUrl = client.authorizationUrl({
scope: 'openid profile email groups',