Skip to content

Store screens: If-Match on edit/delete, membership-aware transition buttons, browser coverage, ui size headroom #873

Closed

Description

@jimhoyd

Follow-ups from #872 (transition controls on store screens). All of these were observed, and none has been designed yet.

  1. Edit and delete still send no If-Match. List responses now carry etags, so the crud script could guard edits and deletes against stale pages the same way it guards transitions.
  2. Buttons ignore the membership gate. The screen can't tell whether the viewer passes a members gate, so a non-member sees a by: others button and gets the 403 message. A reviewer's own request also shows approve. A small, bounded "may I" signal from the store (without exposing membership lists) would fix this.
  3. 409 through the screen is only reachable artificially. The store checks If-Match before from, and the script always has an ETag, so a stale page gets 412. The end-to-end 409 test works only by removing etags from the list response.
  4. No real-browser coverage. Only a fake DOM was used. The Playwright test (crud.browser.ts) doesn't cover transitions yet.
  5. ui is at its packed size limit. It is 99,966 of 100 KiB, so the next ui change needs the limit raised or code removed.

Related: #863, #865.

Activity

  1. jimhoyd commented on Sep 29, 2026

    @jimhoyd
    CollaboratorAuthor

    Items 1, 4 and 5 are in #877. For item 2 (membership-aware buttons), these are the options:

    1. Preferred: list and write responses carry may: {<id>: [transition names]}, computed from ownership, the by: rule and the viewer's own membership. It reveals nothing about other members and is bounded by page size. This fixes both the non-member case and a reviewer seeing approve on their own request.
    2. A per-screen gate flag at render time. This can't handle the own-record case, and the screen contribution API has no principal at render time.
    3. A lookup on click. This adds a request per record or per click.

    Option 1 touches store.ts and collection.ts, so it waits for #876.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions