mirror of
https://github.com/OpenSquawk/OpenSquawk
synced 2026-08-01 14:16:05 +08:00
DebugPanel now owns the FAB, the drawer, and useDebugSimulation, and the page mounts it behind `v-if="debugMode"` — so on the normal cockpit path the whole simulation machinery is never constructed. That required moving `debugMode` out of useDebugSimulation and into the page: a flag cannot both live inside the thing it gates and be the gate. The settings sheet is the one place it is toggled. runFullSimulation's `debugMode = true` line went with it; nothing called that function, so the write was already unreachable. BugReportDialog takes the useBugReport handle as a single prop rather than a dozen individual ones. The composable stays owned by the page because the HUD's "Report issue" button starts the screenshot capture before the dialog exists. SettingsSheet carries its own copy of the .pm-seg segmented-control styles and routes the theme choice back through the page, so usePmTheme.setPreference still persists it to the cookie. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>