You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(web): follow-ups from the review of the cancel scope question (#234) #235
Follow-ups from the review of #234 (the scope question before an Occurrence is cancelled, part of #100 and #204). Nothing here blocked the merge. All 24 review mutations but the first two below failed a test.
Decide per item whether to fix, document or decline.
The red Confirm button is untested. Removing Destructive from the scope question (Destructive="false") fails no test, because bUnit does not see the colour. Cosmetic: pin it with a test that reads the rendered colour, or decline.
The stale-answer guard in Events.razorScopeConfirmed is unreachable from a test.@key and the dialog's own answered flag already stop a stale answer; the page guard mirrors the one in Confirmed. Keep it as a mirror or remove it.
Docs card: GLOSSARY says an edit or cancel asks for its scope: this occurrence, this and following, or all. Cancel has only two scopes (this event only, this and all future events). Fix the wording in the docs card.
Live check. Cancel one Occurrence and cancel a Series (one with a played Occurrence too) by hand on the deployed site after release.
Further findings from a second review of #234 (spec and standards), added after the first list:
No test sends a real arrow key or Enter (low). The tests named for arrow-key choice and Enter confirmation fire a synthetic radio-group change and a click. The contract asks for arrow-key operation of the radios and Enter on the chosen Confirm. Add one test that sends real keyboard input, probably an E2E test, since bUnit cannot drive FluentRadioGroup's own key handling. Show it red with a mutation that disables the keyboard path.
The label "This and all future events" overstates what the Series cancel does (medium). It reads like a "this and following" scope, which cancel does not have. DELETE api/series/{id}?scope=all ends the Series and deletes every future, unplayed Occurrence, including ones dated before the clicked row, and keeps past and played ones. The description and the confirm text ("Cancel the series") are accurate; only the label is not. Product copy call: for example "The whole series". No test clicks a later Occurrence.
A Cancel button sits next to "Cancel the series" under "Delete repeating event" (nit). Delete and cancel are mixed in one dialog, and "repeating event" is not a glossary term (Series, Occurrence). Reword the title and buttons in the same copy pass as item 6.
Duplicated shell (soft).ScopeDialog.razor copies ConfirmDialog's FluentDialog markup, answered guard and focus handling; ScopeConfirmed and ScopeCancelled mirror Confirmed and Cancelled; CancelSeries mirrors Delete; SeriesServiceTests.Recorder re-implements RequestRecorder; the choose and confirm-button test helpers repeat across two files. The chosen scope is a stringified index parsed back with int.TryParse. Extract once the edit-scope question is in and both callers exist.
The edit-scope card (w10) reuses ScopeDialog with three options and does not change the labels above.
Activity
mwg-bender commentedon Nov 25, 2026
Further findings from a second review of #234 (spec and standards), added after the first list:
DELETE api/series/{id}?scope=allends the Series and deletes every future, unplayed Occurrence, including ones dated before the clicked row, and keeps past and played ones. The description and the confirm text ("Cancel the series") are accurate; only the label is not. Product copy call: for example "The whole series". No test clicks a later Occurrence.ScopeDialog.razorcopiesConfirmDialog's FluentDialog markup, answered guard and focus handling;ScopeConfirmedandScopeCancelledmirrorConfirmedandCancelled;CancelSeriesmirrorsDelete;SeriesServiceTests.Recorderre-implementsRequestRecorder; the choose and confirm-button test helpers repeat across two files. The chosen scope is a stringified index parsed back withint.TryParse. Extract once the edit-scope question is in and both callers exist.The edit-scope card (w10) reuses
ScopeDialogwith three options and does not change the labels above.docs: say what the cancel and edit scope questions ask (#240)