website refactor

This commit is contained in:
2026-01-16 13:48:18 +01:00
parent 20a42c52fd
commit 7e02fc3ea5
796 changed files with 1946 additions and 2545 deletions

View File

@@ -5,7 +5,7 @@
* Achievements are categorized by role (driver, steward, admin) and type.
*/
import type { IEntity } from '@core/shared/domain';
import type { Entity } from '@core/shared/domain';
export type AchievementCategory = 'driver' | 'steward' | 'admin' | 'community';
@@ -32,7 +32,7 @@ export interface AchievementRequirement {
operator: '>=' | '>' | '=' | '<' | '<=';
}
export class Achievement implements IEntity<string> {
export class Achievement implements Entity<string> {
readonly id: string;
readonly name: string;
readonly description: string;

View File

@@ -1,4 +1,4 @@
import type { IEntity } from '@core/shared/domain';
import type { Entity } from '@core/shared/domain';
import { IdentityDomainValidationError, IdentityDomainInvariantError } from '../errors/IdentityDomainError';
export interface AdminVote {
@@ -42,7 +42,7 @@ export interface AdminVoteSessionProps {
*
* Based on ratings-architecture-concept.md sections 5.2.1 and 7.1.1
*/
export class AdminVoteSession implements IEntity<string> {
export class AdminVoteSession implements Entity<string> {
readonly id: string;
readonly leagueId: string;
readonly adminId: string;

View File

@@ -1,4 +1,4 @@
import type { IEntity } from '@core/shared/domain';
import type { Entity } from '@core/shared/domain';
import { RatingEventId } from '../value-objects/RatingEventId';
import { RatingDimensionKey } from '../value-objects/RatingDimensionKey';
import { RatingDelta } from '../value-objects/RatingDelta';
@@ -34,7 +34,7 @@ export interface RatingEventProps {
version: number;
}
export class RatingEvent implements IEntity<RatingEventId> {
export class RatingEvent implements Entity<RatingEventId> {
readonly id: RatingEventId;
readonly userId: string;
readonly dimension: RatingDimensionKey;

View File

@@ -2,7 +2,7 @@ import type { EmailValidationResult } from '../types/EmailAddress';
import { validateEmail } from '../types/EmailAddress';
import { UserId } from '../value-objects/UserId';
import { PasswordHash } from '../value-objects/PasswordHash';
import { StoredUser } from '../repositories/IUserRepository';
import { StoredUser } from '../repositories/UserRepository';
export interface UserProps {
id: UserId;

View File

@@ -4,7 +4,7 @@
* Represents an achievement earned by a specific user.
*/
import type { IEntity } from '@core/shared/domain';
import type { Entity } from '@core/shared/domain';
export interface UserAchievementProps {
id: string;
@@ -15,7 +15,7 @@ export interface UserAchievementProps {
progress?: number; // For partial progress tracking (0-100)
}
export class UserAchievement implements IEntity<string> {
export class UserAchievement implements Entity<string> {
readonly id: string;
readonly userId: string;
readonly achievementId: string;