Skip to content

refactor: remove unused Stammdaten categories - #173

Merged
DeepDiver1975 merged 2 commits into
mainfrom
refactor/remove-unused-stammdaten
Sep 1, 2026
Merged

refactor: remove unused Stammdaten categories#173
DeepDiver1975 merged 2 commits into
mainfrom
refactor/remove-unused-stammdaten

Conversation

@DeepDiver1975

@DeepDiver1975 DeepDiver1975 commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • A review of every Stammdaten (master data) category against the running app found six items that are stored, persisted, and editable in the Stammdaten editor, but never actually consumed anywhere else: Status, Equipment, Districts, Streets, Einsatzarten, and the settings' PressureControlIntervalMinutes (ScbaViewModel derives its control interval from AgtMaxDurationMinutes / 3 instead of reading the stored value).
  • Removed all six end-to-end: the MasterDataSet/IncidentSettings record fields (and the now-unused Street type), JSON parse/serialize, SQLite schema/read/write, the Stammdaten editor's sections and settings field (view model + XAML), and the corresponding docs/example-data mentions.
  • Everything else (Roles, RadioCallSigns, Brigades, UnitStatus, Links, both checklist templates, TruppTypes, Personnel, Vehicles, and the other 6 Settings fields) is genuinely consumed and untouched.
  • Existing SQLite installs simply stop writing to the now-unused tables; no destructive migration was added, since dropping tables that already exist isn't necessary for correctness.

Screenshots

This changes the Stammdaten editor's UI. Before/after screenshots of the editor
(same fixture, headless Skia harness) are ready locally — see the PR comment /
chat for file paths; paste them here.

Test plan

  • dotnet build — all non-Android projects build clean (Android target fails locally only due to no Android SDK installed in this environment, unrelated to this change)
  • dotnet test — full suite green: 218+87+24+54+299+90+6+33 tests passed across all projects, 0 failures
  • Manually diffed docs/master-data.example.json against the updated schema for parity

🤖 Generated with Claude Code

https://claude.ai/code/session_01UreNDccLAQTXPm5snDpugv

Status, Equipment, Districts, Streets, Einsatzarten, and the settings'
PressureControlIntervalMinutes were editable and persisted in the
Stammdaten editor but never actually read by any ViewModel, view, or
domain logic elsewhere in the app. ScbaViewModel derives its control
interval from AgtMaxDurationMinutes / 3 instead, so the stored value
was silently ignored. Remove the dead schema, persistence, editor
sections, and settings field end-to-end.

Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
Sections were added in ad-hoc insertion order, making the left-hand
category list harder to scan. Keep Einstellungen pinned first since
it holds numeric defaults rather than a data category, and sort the
remaining ten sections alphabetically below it.

Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
@DeepDiver1975

Copy link
Copy Markdown
Collaborator Author

Added one more commit: sort the Stammdaten editor's navigation list. "Einstellungen" stays pinned first (numeric defaults, not a data category); the other 10 sections now sort alphabetically instead of ad-hoc insertion order.

Updated screenshot for the sorted nav — file path for pasting:
/tmp/claude-1000/-home-deepdiver-Development-CodeForFire-lagebuch/f3afe047-2ea9-41e2-9281-ed9a3d0f6844/scratchpad/shots/master-data-editor-sorted-nav-after.png
(the earlier master-data-editor-after.png in that same folder is now the "before" for this specific change.)

Full solution build + test suite green (811 tests, Android target excluded — no Android SDK in this environment, unrelated).

@DeepDiver1975
DeepDiver1975 merged commit 1a0c463 into main Sep 1, 2026
2 checks passed
@DeepDiver1975
DeepDiver1975 deleted the refactor/remove-unused-stammdaten branch September 1, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant