- {DEDUCTION_CATEGORIES.map(cat => {
+ {DEDUCTION_CATEGORIES.filter(cat => isCoach || getCount(cat.key) > 0).map(cat => {
const count = getCount(cat.key)
const pts = count * cat.pointsEach
return (
diff --git a/packages/frontend/src/pages/StatsPage.tsx b/packages/frontend/src/pages/StatsPage.tsx
index 547995e..f81c1af 100644
--- a/packages/frontend/src/pages/StatsPage.tsx
+++ b/packages/frontend/src/pages/StatsPage.tsx
@@ -18,19 +18,13 @@ const cardBorder = '#EAEFF8'
const cardShadow = '0 18px 36px rgba(34, 43, 69, 0.08)'
const DEDUCTION_CATEGORIES = [
- { key: 'AF', label: 'Athlete Fall', pointsEach: 0.15 },
- { key: 'MAF', label: 'Major Athlete Fall', pointsEach: 0.25 },
- { key: 'BB', label: 'Building Bobble', pointsEach: 0.25 },
- { key: 'BF', label: 'Building Fall', pointsEach: 0.75 },
- { key: 'MBF', label: 'Major Building Fall', pointsEach: 1.25 },
- { key: 'OOB', label: 'Boundary Violation', pointsEach: 0.05 },
- { key: 'TLV', label: 'Time Limit Violation', pointsEach: 0.05 },
- { key: 'DV', label: 'Division Violation', pointsEach: 5.00 },
- { key: 'UNI', label: 'Uniform Violation', pointsEach: 0.01 },
- { key: 'APS', label: 'APS / Excessive Celebration', pointsEach: 0.25 },
- { key: 'OOL-T', label: 'Out of Level Tumbling', pointsEach: 0.05 },
- { key: 'OOL-B', label: 'Building Out of Level', pointsEach: 0.10 },
- { key: 'SRD', label: 'Skill Restriction / Division', pointsEach: 0.50 },
+ { key: 'AF', label: 'Athlete Fall', pointsEach: 0.15 },
+ { key: 'MAF', label: 'Major Athlete Fall', pointsEach: 0.25 },
+ { key: 'BB', label: 'Building Bobble', pointsEach: 0.25 },
+ { key: 'BF', label: 'Building Fall', pointsEach: 0.75 },
+ { key: 'MBF', label: 'Major Building Fall', pointsEach: 1.25 },
+ { key: 'OOB', label: 'Boundary Violation', pointsEach: 0.05 },
+ { key: 'ILL', label: 'Illegality', pointsEach: 2.00 },
] as const
interface Deduction {
diff --git a/packages/frontend/src/pages/ViewEvent.tsx b/packages/frontend/src/pages/ViewEvent.tsx
index dced92a..06d520a 100644
--- a/packages/frontend/src/pages/ViewEvent.tsx
+++ b/packages/frontend/src/pages/ViewEvent.tsx
@@ -51,10 +51,21 @@ export default function ViewEvent() {
{/* Header */}
-
Event
+ style={{
+ position: 'absolute', left: '24px',
+ width: '42px', height: '42px',
+ background: '#F5F6FA', border: '1px solid #D9DEEA',
+ borderRadius: '14px', cursor: 'pointer',
+ display: 'flex', alignItems: 'center', justifyContent: 'center',
+ boxShadow: '0 6px 16px rgba(34, 43, 69, 0.05)',
+ }}
+ >
+
+
+
Event
{loading ? (
@@ -68,7 +79,7 @@ export default function ViewEvent() {
Title
-
{event.title}
+
{event.title}
@@ -112,13 +123,14 @@ export default function ViewEvent() {
@@ -136,13 +148,14 @@ export default function ViewEvent() {