website refactor

This commit is contained in:
2026-01-14 10:51:05 +01:00
parent 4522d41aef
commit 0d89ad027e
291 changed files with 6887 additions and 3685 deletions

View File

@@ -5,7 +5,7 @@
* These are mapped from DomainErrors by Mutations.
*/
export type MutationError =
export type MutationError =
| 'userNotFound' // User doesn't exist
| 'noPermission' // Insufficient permissions
| 'invalidData' // Validation failed
@@ -14,6 +14,7 @@ export type MutationError =
| 'createFailed' // Create operation failed
| 'networkError' // Network/communication error
| 'serverError' // Generic server error
| 'notImplemented' // Feature not implemented
| 'unknown'; // Unknown error
// Helper to map DomainError to MutationError
@@ -39,6 +40,9 @@ export function mapToMutationError(domainError: any): MutationError {
case 'networkError':
case 'NetworkError':
return 'networkError';
case 'notImplemented':
case 'NotImplementedError':
return 'notImplemented';
default:
return 'unknown';
}

View File

@@ -30,6 +30,7 @@ export type DomainError =
| { type: 'validation'; message: string }
| { type: 'serverError'; message: string }
| { type: 'networkError'; message: string }
| { type: 'notImplemented'; message: string }
| { type: 'unknown'; message: string };
/**