From 71b2c17aed3c0ca5c1071f35798826df153e1b7b Mon Sep 17 00:00:00 2001 From: Tony Field Date: Thu, 26 Mar 2026 19:20:05 -0400 Subject: [PATCH] feat: Defence strat notes now added to team report --- app/assets/css/components.css | 72 +++++++++ app/common/track/seq/PMVALoadShootSeqPage.tsx | 152 ++++++++++++------ app/common/track/strat-area/AreaPage.tsx | 2 +- app/routes/report/summary-report-page.tsx | 78 ++++++--- app/types/TeamSummaryReport.ts | 9 ++ 5 files changed, 243 insertions(+), 70 deletions(-) diff --git a/app/assets/css/components.css b/app/assets/css/components.css index 8f2bb258..426d31c1 100644 --- a/app/assets/css/components.css +++ b/app/assets/css/components.css @@ -1242,6 +1242,78 @@ main.mega-report { background-color: var(--alliance-red-bg) !important; } +/* ── PMVA Track Form ────────────────────────────────────────────────── */ + +main.track.pmva button { + font-size: 1rem; + padding: 0.5rem 1.5rem; +} + +.pmva-form { + display: flex; + flex-direction: column; + gap: var(--space-lg); + max-width: 40rem; +} + +.pmva-form-row { + display: flex; + flex-direction: column; + gap: var(--space-xs); +} + +.pmva-form-row label { + font-weight: 600; +} + +.pmva-form-row textarea { + resize: vertical; + font-family: inherit; + font-size: 1rem; + padding: var(--space-sm); + min-height: 3rem; +} + +.pmva-form-row input[type="number"] { + width: 6rem; + font-size: 1rem; + padding: var(--space-sm); +} + +.pmva-hint { + font-size: 0.85rem; + color: var(--color-text-secondary); + margin: 0; +} + +.pmva-btn-group { + display: flex; + gap: var(--space-xs); +} + +.pmva-counter-row { + display: flex; + align-items: center; + gap: var(--space-sm); +} + +.pmva-counter-value { + font-size: 1.2rem; + font-weight: 700; + min-width: 1.5rem; + text-align: center; +} + +.pmva-counter-pct { + font-size: 1rem; + font-weight: 600; + color: var(--color-accent); +} + +.pmva-form-actions { + padding-top: var(--space-base); +} + /* ── PMVA Report ─────────────────────────────────────────────────────── */ .pmva-stats-table { diff --git a/app/common/track/seq/PMVALoadShootSeqPage.tsx b/app/common/track/seq/PMVALoadShootSeqPage.tsx index a36ad575..b686bf9c 100644 --- a/app/common/track/seq/PMVALoadShootSeqPage.tsx +++ b/app/common/track/seq/PMVALoadShootSeqPage.tsx @@ -32,62 +32,112 @@ const PMVALoadShootSeqPage = ({}: TrackScreenProps) => { // loadNotes --> stores pmva-load-comments // pmva-unload-comments } + return
-

Post-Match Video Analysis - Pickup, Score & Shoot Sequence

-

Was the hopper filled? - - -

-

- Anything noteworthy about this load? - -

-

Click on the buttons below to add to the count for this sequence. Play the video back slowly and get an - accurate count for the sequence. The count is shown so that you can verify the amout if you're not sure - what you saw.

- - ({scoreCount}) - ({missCount}) - ({Math.round(100 * scoreCount / Math.max(1, scoreCount + missCount))}%) -

How long did it take to unload (rewind the video and play the sequence back. Use - either the video time or a stopwatch) - setUnloadSeconds(Number((e.target as HTMLInputElement).value))}/> seconds. -

-

How much fuel was stuck after the end of the sequence? - setStuckFuelCount(Number((e.target as HTMLInputElement).value))}/> pieces. -

-

Anything noteworthy about this shooting session? - -

-

Where was the robot while shooting? (select one) - - - -

-

Was the robot moving while shooting? - - -

-

Was the robot shooting while intaking during this sequence? - - -

- +

Post-Match Video Analysis — Pickup, Score & Shoot Sequence

+ +
+
+ +
+ + +
+
+ +
+ +