Implement the following plan: Issue #10: Suffix-Checkboxen (/m /p /am /mm) statt…
- User
Implement the following plan:
Issue #10: Suffix-Checkboxen (/m /p /am /mm) statt Freitext im Rufzeichen
Context
Operatoren geben aktuell Suffixe wie
/m(mobil),/p(portabel) direkt im Rufzeichen-Feld ein (z.B. "OE8YML/m"). Das ist fehleranfällig und uneinheitlich. Stattdessen sollen Checkboxen/Toggles für/m,/p,/am,/mmneben dem Rufzeichen-Feld erscheinen. Der Suffix wird separat gespeichert und in den Auswertungen mitangezeigt.Bestandsanalyse
exercise_attendancehat bereitscallsign_suffix TEXT— unbenutztsignal_reportshat keinen Suffix-Spalte- Suffix ist pro Report sinnvoll (Operator kann Status wechseln)
- Auswertungen aggregieren Teilnehmer per
operator_id, zeigencallsignan
Änderungen
1. Schema-Migration:
server/src/db/schema.ts- Neue Spalte
suffix TEXT DEFAULT NULLinsignal_reports(ALTER TABLE ADD COLUMN, nicht-destruktiv) - Gültige Werte:
'/m','/p','/am','/mm',NULL
2. API:
server/src/routes/exercises.ts- POST
/exercises/:id/reports:suffixFeld akzeptieren und speichern - PATCH
/exercises/:id/reports/:rid:suffixFeld akzeptieren - GET
/exercises/:id/reports:suffixim SELECT mit zurückgeben - GET
/exercises/:id/stats(Participants-Query): Suffix mit aggregieren —GROUP_CONCAT(DISTINCT sr.suffix)alssuffixesoder einfach den häufigsten/letzten Suffix pro Operator
3. API:
server/src/routes/reports.ts- Stats-Participants-Query: Ebenfalls Suffix mitliefern (gleicher Pattern wie exercises stats)
4. Client Types:
client/src/types/stats.tsParticipantInterface:suffix?: string | nullhinzufügen
5. UI Eingabe:
client/src/components/LandMode.tsx+ Assistant
I'll implement this plan step by step. Let me start by reading the key files I need to modify.
Assistant
Now let me read all the files I need to modify in parallel.
Assistant
Now I also need to read the PDF route to see how it queries stats.
Assistant
Good, I now have a complete picture. Let me start implementing all the changes.
Assistant
Step 1: Schema migration — add
suffixcolumn tosignal_reportsAssistant
Step 2: Update API routes
2a. exercises.ts — POST reports: accept suffix
Assistant
2b. exercises.ts — PATCH reports: accept suffix
Assistant
2c. exercises.ts — GET reports: include suffix in SELECT (already returned via
sr.*)The GET queries already use
sr.*sosuffixwill be included automatically. Good.2d. exercises.ts — GET stats: add suffix to participants query
Assistant
2e. reports.ts — aggregated stats: add suffix to participants query
Assistant
2f. pdf.ts (routes) — add suffix to participants queries in both endpoints
Assistant
Now the single-exercise PDF participants query:
Assistant
Step 3: Update client types
Assistant
Step 4: Update LandMode.tsx — add suffix to EntryForm + toggle buttons + display
Assistant
Noted — I'll make
suffixoptional in theEntryForminterface. Let me fix that.Assistant
Understood — radio behavior, only one active at a time (or none). That's exactly how I'm implementing it.
Now update all the default form states in LandMode to include
suffix: '', the submit handler to send suffix, and the display to show it.Assistant
Now update
handleBezirkSubmitto send suffix in both POST and PATCH:Assistant
Now update the display of callsign in report rows to show suffix. In LandMode's BezirkRow, the callsign is shown in the table row:
Assistant
Now update the BezirkRow initial form state and handleSubmit reset to include suffix:
Assistant
Now update the FlatReportRow similarly. First the display in FlatReportRow:
Assistant
Step 5: Update BundMode.tsx similarly
Assistant
Update BundMode editForm default:
Assistant
Update BundMode handleBezirkSubmit to send suffix:
Assistant
Now update BundMode's BezirkRow form state and handleSubmit reset:
Assistant
Now update BundMode callsign display in report rows to show suffix, and add suffix toggles to the form:
Assistant
Now add suffix toggles to BundMode's BezirkRow form. The form starts after the CallsignInput:
Assistant
Step 6: Update ReportsPage.tsx — show suffix in participants table
Assistant
Step 7: Update AggregatedReportsPage.tsx — show suffix in participants table
Assistant
Step 8: Update PDF service — show suffix in participants
Assistant
Now update
renderParticipantsto display callsign + suffix:Assistant
Step 9: Build verification
Assistant
Build is clean. Now write the changelog.
Assistant
All done. Here's a summary of the changes:
Schema (
server/src/db/schema.ts):- Added
suffix TEXT DEFAULT NULLcolumn tosignal_reportsvia non-destructive ALTER TABLE migration
API (
server/src/routes/exercises.ts,reports.ts,pdf.ts):- POST/PATCH reports accept and store
suffixfield - GET stats participants queries include
GROUP_CONCAT(DISTINCT sr.suffix) as suffixes
Client types (
client/src/types/stats.ts):- Added
suffixes: string | nulltoParticipantinterface
UI Input (
LandMode.tsx,BundMode.tsx):- Added
suffix?: stringtoEntryForminterface - Added 4 compact toggle buttons (m, p, am, mm) next to the callsign field — radio behavior (click to select, click again to deselect)
- Suffix sent in POST/PATCH requests, displayed in report rows as
OE8YML/m
- Added
- User
deploy with ./deploy-production.sh
Assistant
Deployment successful. The user also asked to document in markdown — I believe they want the changelog entry as a standalone markdown summary. But looking again, the changelog is already written in
CHANGELOG-2026-02-24.md. Let me check if they want a separate document or if they're referring to something else.Looking at the context, the user likely wants a summary of what was deployed. Here's the deployment summary:
Deployed: Issue #10 — Suffix-Checkboxen (/m /p /am /mm)
Production: https://bosarsalog.oeradio.at/
Changes
- Suffix toggle buttons (m, p, am, mm) next to the callsign input field in both Frequenzen and OE-Link modes
- User
no change visible
Assistant
The deploy script syncs via
git pull— the output showed "Already up to date." meaning the changes were never committed/pushed. All Docker layers were cached because the remote code didn't change.Let me commit and push first, then redeploy.
Assistant
Now redeploy:
Assistant
Deployed successfully this time. The git pull pulled the new code (
Updating ecd11b4..b75517d), Docker rebuilt the server and client layers (no longer cached), and the container is running.The suffix toggle buttons should now be visible on https://bosarsalog.oeradio.at/. Make sure to do a hard refresh (Ctrl+Shift+R) to clear cached JS.
- User
Assistant
Good, that clarifies it. Let me write the plan now.
Assistant
Now I have everything I need. Let me write the plan.
Assistant
I was in the middle of planning Issue #3 (eigener Repeater pro Operator). The plan file write failed because I hadn't read it first. Let me fix that and continue.
Assistant
Now I'll update the plan file with the Issue #3 plan.
- User
[Request interrupted by user for tool use]