Repository navigation
Store screens: If-Match on edits and deletes, stale-page message, browser coverage (#873) - #877
Merged
Merged
Conversation
…browser coverage (#873) The crud script now sends If-Match on every write to an existing record (PATCH for a saved edit or a checkbox toggle, DELETE, and transitions as before) from the list's etags map or the ETag of its own last write. A 412 is a page message and changes nothing: the draft stays, a toggle rolls back, a deleted row stays. A successful write moves the row to the ETag its response returned. The four write paths share one helper, so the script is smaller than before. Breaking: ui.crud.transitionStale is renamed ui.crud.stale and moves from crudTransitionCopyKeys to crudCopyKeys (English and French). Tests: fake-DOM unit tests for If-Match on PATCH/DELETE and the 412 message; a served ui+store end-to-end stale edit and stale delete; the real-browser test now covers a transition click, a successful edit that carries its new ETag, and a stale edit's 412. Items 2 and 3 of #873 remain open. Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
enabled auto-merge (squash)
September 29, 2026 00:02
This was referenced Sep 29, 2026
Closed
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.
Fixes #873 items 1, 4 and 5. Item 2 (membership-aware buttons) waits for #876; the options are on the issue. Item 3 (409 reachability) is unchanged and documented.
Changes
writehelper. Edits, checkbox toggles (PATCH), deletes and transitions all go through it.If-Matchfrom the list'setagsor from the last write'sETag, and none when the record has neither.ui.crud.transitionStalebecomesui.crud.staleand is on every screen, in English and French.Evidence (macOS, Node 26)
npm run verifyandnpm run test:packagepass. ui 113, store 126.If-Matchon edit, toggle and delete, chaining each write's returned ETag; a 412 changes nothing; noIf-Matchwithout an ETag.🤖 Generated with Claude Code