website cleanup

This commit is contained in:
2025-12-25 00:19:36 +01:00
parent d78854a4c6
commit 9486455b9e
82 changed files with 1223 additions and 363 deletions

View File

@@ -3,7 +3,7 @@
import React, { useState, useRef, useEffect } from 'react';
import { Trophy, Award, Check, Zap, Settings, Globe, Medal, Plus, Minus, RotateCcw, HelpCircle, X } from 'lucide-react';
import { createPortal } from 'react-dom';
import type { LeagueScoringPresetDTO } from '@/lib/types/generated/LeagueScoringPresetDTO';
import type { LeagueScoringPresetViewModel } from '@/lib/view-models/LeagueScoringPresetViewModel';
import type { LeagueConfigFormModel } from '@/lib/types/LeagueConfigFormModel';
// ============================================================================
@@ -281,7 +281,7 @@ function DropRulesMockup() {
interface LeagueScoringSectionProps {
form: LeagueConfigFormModel;
presets: LeagueScoringPresetDTO[];
presets: LeagueScoringPresetViewModel[];
onChange?: (form: LeagueConfigFormModel) => void;
readOnly?: boolean;
/**
@@ -296,7 +296,7 @@ interface LeagueScoringSectionProps {
interface ScoringPatternSectionProps {
scoring: LeagueConfigFormModel['scoring'];
presets: LeagueScoringPresetDTO[];
presets: LeagueScoringPresetViewModel[];
readOnly?: boolean;
patternError?: string;
onChangePatternId?: (patternId: string) => void;
@@ -513,7 +513,7 @@ export function ScoringPatternSection({
onUpdateCustomPoints?.(DEFAULT_CUSTOM_POINTS);
};
const getPresetEmoji = (preset: LeagueScoringPresetDTO) => {
const getPresetEmoji = (preset: LeagueScoringPresetViewModel) => {
const name = preset.name.toLowerCase();
if (name.includes('sprint') || name.includes('double')) return '⚡';
if (name.includes('endurance') || name.includes('long')) return '🏆';
@@ -521,7 +521,7 @@ export function ScoringPatternSection({
return '🏁';
};
const getPresetDescription = (preset: LeagueScoringPresetDTO) => {
const getPresetDescription = (preset: LeagueScoringPresetViewModel) => {
const name = preset.name.toLowerCase();
if (name.includes('sprint')) return 'Sprint + Feature race';
if (name.includes('endurance')) return 'Long-form endurance';