Skip to content

Remove Inbox row immediately on Dismiss - #2303

Merged
JacobStephens2 merged 3 commits into
mainfrom
issue-2302
Nov 19, 2026
Merged

JacobStephens2 merged 3 commits into
mainfrom
issue-2302

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

on inline Dismiss submit (row && !undo)
  snapshot row into dismissal state; remove row; select/focus next row
  POST /dismiss
    success → Dismissed <subject> · Undo notice; refresh() reconciles to Done
    failure → restore freshest (server-rendered) row in place, refocus it,
              show "Could not save the dismissal: …", button re-enabled
  refresh()/morph while in flight → re-remove the pending row, keep its
              server-rendered node for a possible restore

Peek, Undo, no-JavaScript post/redirect and dismissal persistence are unchanged.

Evidence

Execution evidence

  • Before: node --test --test-name-pattern="a failed Dismiss" console/tests/inbox.test.cjs (reviewers' tests, harness argument-passing corrected) — both failed: restored row lacked the server cause (assert.ok(...) false) and selection stayed on the next row (9-fixture… vs expected restored command).
    After: same command — pass. Full dismissal set: node --test --test-name-pattern="a failed Dismiss|inline Dismiss|j then d|Dismiss and Undo show|failed Dismiss shows|Dismiss keeps Undo|Inbox opens with Details" console/tests/inbox.test.cjs — 10 pass, 0 fail. New held-request test asserts the row is gone before /dismiss is released, stays gone through a live refresh, then reconciles to Done with the Undo notice; the 409 phase asserts in-place restore, prior position, error text and an enabled button.
  • scripts/affected-tests main: site tests, cargo build and Rust suite pass; console suite 267 pass with one flaky failure (Fleet Inbox polls with page subscriptions… in fleet.test.cjs), which passes alone on re-run: node --test --test-name-pattern="Fleet Inbox polls with page subscriptions" console/tests/fleet.test.cjs — 1 pass.
  • npm run docs:check --prefix site — pass after regenerating site/docs/index.html.

Seams tested (public interface): the inline Dismiss submit handler as exercised by browser tests at the held-request, live-refresh-during-hold, 409-restore, position, selection/focus and Undo-notice boundaries.

Merge Danger

Door: two-way

Revert restores the previous await-then-remove behaviour; no data or persistence change.

Blast Radius: low

Console Inbox inline rows only; a failed save restores the row with the existing inline error.

Unaddressed findings

Standards

  • Standards finding 1 (architecture part only): the reviewer named site/architecture/index.html:228 among pages to correct, but that page makes no claim about inline Dismiss timing — searching it for Dismiss shows only Fleet/API attribution (grep -n -i dismiss site/architecture/index.html, run during review verification; the removes that row from view immediately grep exited 1 for all three pages only because none carried the new sentence). site/index.html and site/how-it-works/index.html, which do describe inline Dismissal, were corrected, as was docs/guide.md (Standards finding 2). No change was made to the architecture page because there is no stale statement there to correct.

Spec

None. Every Spec finding was run as written (the two behaviour tests first failed on their own closure/harness arguments; with argument-passing corrected they failed as the findings described, the code was fixed, and the tests are kept), then fixed and re-run green.

Review coverage: initial Standards and Spec reviews read all three initially changed files; the Spec follow-up read the four doc/site files added by the fixes. No changed file was left unread by the review as a whole.

Closes #2302

Built with muse Muse Code 1.4.24 (1.4.24-R9131.1) · default model · default effort

Security review outcome

No unaddressed introduced findings.

CI notes

Run 44524120973 (all eight failed jobs: test, rust-x86 / complete, rust-x86 / run (1)–(4), console-test, site-test) failed before any test executed: Ubuntu archive/security mirrors were unreachable during runner setup (apt-get update/install returning 503 Service Unavailable and Connection failed, and npx playwright install --with-deps chromium failing in its apt step with exit code 100). No test ran in any failed job, and this branch changes no workflow, apt, or Playwright setup (diff is console.js, console tests, and docs only). Locally the branch's checks pass: node --test tests/inbox.test.cjs 114/114, npm run docs:check --prefix site passes, and site tests pass via scripts/affected-tests main; the one console-suite failure there (Fleet Inbox polls with page subscriptions…) is intermittent and passes on re-run. These CI failures are unrelated to this branch and need a re-run once the mirrors recover.

@JacobStephens2
JacobStephens2 merged commit 9e92985 into main Nov 19, 2026
33 of 41 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-2302 branch November 19, 2026 12:57
@JacobStephens2 JacobStephens2 mentioned this pull request Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

get clicking dismiss on a run row in /?section=overview in the console web ui to remove the row from view faster

1 participant