Skip to content

fix(web): follow-ups from the review of the cancel scope question (#234) #235

Backlog

Description

@mwg-bender

This was generated by AI during triage.

What to build

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.

  1. 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.
  2. The stale-answer guard in Events.razor ScopeConfirmed 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.
  3. 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.
  4. Live check. Cancel one Occurrence and cancel a Series (one with a played Occurrence too) by hand on the deployed site after release.

Acceptance criteria

  • Each item is fixed, documented or declined

Blocked by

  • None (can start immediately)

Activity

  1. added
    bug
    needs-triage
    on Nov 25, 2026
  2. mwg-bender commented on Nov 25, 2026

    @mwg-bender
    ContributorAuthor

    Further findings from a second review of #234 (spec and standards), added after the first list:

    1. 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.
    2. 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.
    3. 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.
    4. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions