Repository navigation
Remove Inbox row immediately on Dismiss - #2303
Merged
Merged
Conversation
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Peek, Undo, no-JavaScript post/redirect and dismissal persistence are unchanged.
Evidence
Execution evidence
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/dismissis 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…infleet.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 regeneratingsite/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
site/architecture/index.html:228among 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; theremoves that row from view immediatelygrep exited 1 for all three pages only because none carried the new sentence).site/index.htmlandsite/how-it-works/index.html, which do describe inline Dismissal, were corrected, as wasdocs/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/installreturning503 Service UnavailableandConnection failed, andnpx playwright install --with-deps chromiumfailing in itsaptstep with exit code 100). No test ran in any failed job, and this branch changes no workflow, apt, or Playwright setup (diff isconsole.js, console tests, and docs only). Locally the branch's checks pass:node --test tests/inbox.test.cjs114/114,npm run docs:check --prefix sitepasses, and site tests pass viascripts/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.