Repository navigation
Transition controls on store screens (#863) - #872
Merged
Merged
Conversation
Screens over collections with transitionOnly fields are no longer refused. ui shows those fields read-only (never a control, never sent) and offers each declared transition as a button on the rows holding its `from` values. A click posts no body, same-origin, with If-Match from the list's ETag (or the screen's own last write) and a fresh Idempotency-Key when the collection retains keys; 409, 412, 403 and other refusals are page messages. A store screen may declare `readers: true` to list the readers mount read-only and offer exactly the `by: others` transitions on their own mounts; the default screen offers the transitions served on the collection mount. Breaking: store list answers add `etags`, each listed record's ETag keyed by id, so a client can make a write conditional on the version it listed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
enabled auto-merge (squash)
September 28, 2026 23:32
jimhoyd
added a commit
that referenced
this pull request
Sep 29, 2026
…lters; declared targets in validate/capabilities (#866, #867) (#876) * feat(store,core)!: members CLI, audited membership, reassign memberships, enum filters, declared targets in validate (#866, #867) - urlcode-store members add|remove|list, beside the live server. - Membership collections may declare audit: true; every grant and revocation (CLI, library, StoreExports, reassign) writes its event in the same transaction. Changing a membership key is refused. - reassign moves membership entries with the records it moves. - A filter value outside a field's enum is 400 invalid_query. - readers.showOwner: true exposes the owner's opaque id to members only. - urlcode validate (--target) and urlcode capabilities use installed descriptors' declared targets without a host file. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs: regenerate after rebase Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(store): keep per-record etags on readers list responses with showOwner The readers mount built its list answer by hand to keep _owner, which dropped the etags map #872 adds to every list response. It now goes through listView with the readers projection, and the showOwner test asserts the etags. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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 #863 item 2. Store screens over collections with
transitionOnlyfields are no longer refused.What changes
CrudCollectiongainstransitions: [{name, from, mount?}]andidempotency, and field specs gaintransitionOnly.crudTransitionsvalidates them at activation. A screen with no transitions renders exactly as before.transitionOnlyfields are read-only and never included in request bodies.from.POSTwith no body, same-origin credentials,If-Match, and a freshIdempotency-Keywhen the collection retains keys.ui.crud.transition*copy keys in English and French).etags: {<id>: etag}, so a page can sendIf-Matchfor any row.readers: trueon a store screen lists the readers mount read-only and offers exactly theby: otherstransitions. The owner's screen never offers them.Evidence (macOS, Node 26)
npm run verifypasses: root 1126, ui 110, store 125, form-records 23,test:addons6,test:proof12.npm run test:packagepasses.crud-transitions.test.ts(7 tests): read-only fields, when buttons appear, the POST shape, error messages, XSS through values,fromand hostile names.screens-transitions.test.tsserves ui, store and a test principal extension for real and runs the served script:Limits
membersgate, so a non-member sees the button and gets the 403 message.If-Match, even though list ETags now make that possible.Follow-ups are filed in a separate issue.
🤖 Generated with Claude Code