Alle aktuellen Issues wurden gelöst und der Code ist zum Release auf main freigegeben #38
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lrsauvette/sv-helfer!38
Loading…
Reference in a new issue
No description provided.
Delete branch "develop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Both pages previously lacked the header-row + primary-action pairing used consistently on Verwaltung and Anträge, and Anwesenheit's settings were split across two separate cards with hand-rolled Radio/Checkbox rows instead of standard widgets. Wahlen: - Adds a simple page title header. - Moves 'Wahl starten' into a header row next to 'Ämter wählen'. - Always shows the 'Vergangene Wahlen (N)' count, avoiding layout shift when the list is empty. - Restyles the Neuwahl/Erstwahl chip to match Anträge's chip language (tinted background + border instead of solid color). - Wraps the page in a CustomScrollView with a SliverFillRemaining for the past-elections list, fixing a vertical RenderFlex overflow when the window is too short for the fixed header content. - Moves 'Online-Wahl erstellen' next to 'Wahl starten' in the Ämter wählen header row (as a button, replacing the separate card section), using a Wrap so both reflow on narrow widths. - Adds overflow/maxLines safety to the Neuwahl/Erstwahl checkbox title to avoid a minor horizontal overflow with long section names. Anwesenheit (ErzeugungPage): - Adds a page title header with the primary action button ('Anwesenheitsliste erzeugen') moved up next to it, instead of a detached full-width button at the bottom. - Merges the Sitzungstyp and Datum cards into a single settings card, replacing the hand-rolled Radio/GestureDetector row with a standard SegmentedButton. - Replaces the manual 'select all' Row+Checkbox with a proper CheckboxListTile, matching the list items below it. WahlergebnisPage: replaces the stacked FloatingActionButtons and the AppBar action icon with a single header-row action Wrap (Gesamt- wahlzettel / Live-Abstimmung / Wahlergebnis erzeugen), matching the button-row pattern used on the Anträge and Wahlen tab pages. Renames the 'Live-Abstimmung' button to 'Live-Wahl'. WahlEditor: moves the 'Wählen' action out of the AppBar into a body header row paired with a 'Sektionen (N)' label, consistent with how primary actions are now paired with their section headers elsewhere in the app.Adds a per-user Dark Mode preference, persisted in the app's JsonStore, that forces a dark Material 3 colour scheme based on the same indigo seed colour as the light theme. - New ThemeModeStore (lib/persistence/theme_mode_store.dart) that holds a single bool ('dark mode on/off') and exposes the matching ThemeMode for MaterialApp. Default is 'off' → ThemeMode.system, so the app still follows the OS setting when the user has not opted in. - MaterialApp now provides a darkTheme in addition to the existing theme, and selects themeMode based on the store value. - New 'Dunkles Farbschema' SwitchListTile in the 'Darstellung' section of the settings page. - Unit tests for the store (default, enable + persistence, disable + persistence).Two small helpers for the upcoming permission gates: - usePermission(ref, p) -> bool: true if the logged-in user has the given permission. Returns false when nobody is logged in. - PermissionGate({permission, child, fallback}): renders [child] only when the user has the permission; otherwise renders [fallback] (default SizedBox.shrink). Strategy throughout the rest of the issue: hide unauthorized actions entirely (no snackbar fallback). Test covers the full role x permission matrix for admin / coSsp / svr / kw / kp / keine and asserts eigenesPasswortAendern is granted to every logged-in role.- Extracts the password-change dialog into a standalone PasswortAendernDialog so it can be opened from anywhere (currently the AppBar). Uses BenutzerStore.changeOwnPassword. - AppShell changes: - AppBar shows a compact chip with the current user's name and role label, plus a 'Passwort ändern' icon button next to the existing logout button. - Tabs are filtered by the user's role via the new _visibleTabs helper: Verwaltung needs schuelerSehen, Anträge antraegeErstellen, Wahlen wahlenErstellen, Anwesenheit anwesenheitslisteErzeugen, Kasse kasseLesen, Einstellungen always. Hidden tabs are not rendered at all (no empty body, no hidden IndexedStack child).