Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThis PR implements a Wahlschluss (voting closure) check dialog feature for UWB election locations. It introduces a new configuration constant Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In
`@wls-gui-wahllokalsystem/src/components/wahlhandlung/TheWahlschlussCheckPopupDialog.vue`:
- Around line 44-48: The computed hourOfTimeToCheck currently uses getHours()
(so only the hour is shown) causing times like 18:30 to render as "18 Uhr";
change hourOfTimeToCheck (and any consumer expecting its value) to return a full
time string including minutes—e.g., build a formatted "HH:MM" using new
Date(dateTimeToCheckWahlschluss.value).toLocaleTimeString(...) or by
zero-padding getHours() and getMinutes()—so the dialog displays "18:30 Uhr" when
dateTimeToCheckWahlschluss contains minutes.
🧹 Nitpick comments (2)
wls-gui-wahllokalsystem/src/components/wahlhandlung/TheWahlschlussCheckPopupDialog.vue (2)
26-28: Missingdata-testattribute for testability.The Anwesenheit dialog in
App.vuehasdata-test="wahlvorstand-anwesenheits-check-popup-dialog"but this new dialog is rendered without one in App.vue (Line 26-28). Consider adding adata-testattribute for consistency and to support integration/E2E tests.
66-69:router.pushis not awaited before closing the dialog.
router.pushreturns a promise. CallingcloseDialog()immediately after could cause the dialog to unmount (clearing the timer inonUnmounted) before navigation resolves. Consider awaiting the push:Proposed fix
-function onConfirmClicked() { - router.push({ name: ROUTE_STIMMABGABE }); - closeDialog(); +async function onConfirmClicked() { + await router.push({ name: ROUTE_STIMMABGABE }); + closeDialog(); }
wls-gui-wahllokalsystem/src/components/wahlhandlung/TheWahlschlussCheckPopupDialog.vue
Outdated
Show resolved
Hide resolved
vjohnslhm
left a comment
There was a problem hiding this comment.
ich weiß nicht, ob es teil vom pr ist, aber in der infomanagement db müsste die beschreibung vom konfigurationsparameter geupdatet werden, weil da steht, dass der dialog bei bwb und bei uwb erscheinen kann. außer die anforderung im ticket, dass der dialog nur bei uwb kommt ist falsch, das muss bitte geklärt werden.
wls-gui-wahllokalsystem/src/components/wahlhandlung/TheWahlschlussCheckPopupDialog.vue
Outdated
Show resolved
Hide resolved
Ist falsch. Den Dialog für den Wahlschluss gibt es nach Implementierung in der Altanwendung für UWB und BWB
Die Bedingung habe ich mit 7ea2945 entfernt |

Beschreibung:
Dialog zur Erinnerung an den Wahlschluss hinzugefügt.
Definition of Done (DoD):
Frontend
Referenzen1:
Closes #1049
Summary by CodeRabbit
Release Notes
New Features
Documentation
Footnotes
Nicht zutreffende Referenzen vor dem Speichern entfernen ↩