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
Review follow-ups of PR #281: comment the internal close seams, share the close helper, tidy two test comments #284
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).
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.
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.
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."
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