Skip to content

Review follow-ups of PR #281: comment the internal close seams, share the close helper, tidy two test comments #284

Backlog

Description

@mwg-bender

This was generated by AI during triage.

Soft review findings from the Standards axis of PR #281 (closes #263, merge commit 1c87c58). None changes behaviour; the Spec axis found nothing (all three replaced tests go red when the close methods are emptied).

  1. EventDetailsDialog.CloseDetails and EventEditDialog.CloseCustomize are now internal for tests with no comment saying so. LibraryPage.CloseForm carries "Internal so a test can close the dialog while a save runs, which no page event can do (DialogSafetyTests)." Add the same one-line rationale to each.
  2. The line await page.InvokeAsync(() => EventCallback.Factory.Create(x, x.Close...).InvokeAsync()); now appears at four sites (DialogSafetyTests twice, EventsPageWiringTests twice). Consider one PageActions helper that carries the rationale once ("one copy of each helper"). Judgement call: each site is a one-liner.
  3. The comment above AnEditSaveFailingAfterItsDialogClosed_ShowsInThePagesErrorBar in EventsPageWiringTests stacks two "as" clauses. Suggested: "closes it by running the dialog's own close method through an EventCallback on the dialog, which renders it after, as DialogSafetyTests does."
  4. The section header above the Library close test in DialogSafetyTests names only CloseForm and calls the Events target "the page's own close method" (it is the dialog's); the new inline comment repeats its "no page event can close" point. Update the header to cover the Events dialogs and drop the repeat.

Activity

  1. added this to the 0.7.0 milestone on Nov 28, 2026
  2. added
    ready-for-agent
    on Nov 28, 2026
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

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions