Skip to content

Save library views as mdbase.view records - #24

Merged
callumalpass merged 1 commit into
mainfrom
feature/view-contract
Sep 28, 2026
Merged

callumalpass merged 1 commit into
mainfrom
feature/view-contract

Conversation

@callumalpass

Copy link
Copy Markdown
Contributor

Saved views are now ordinary records of a type implementing the mdbase.view contract (mdbase-dev/mdbase-spec#56).

  • The manifest requires mdbase.view and provisions the published mdbase.view pack (Add the mdbase.view saved-view contract pack mdbase-contracts#11) beside Reader's own, so collection setup installs it.
  • Views are saved with create at views/<view id>.md and replaced with a whole-document update, under Reader's record grants. Reader no longer requests views.manage.
  • View builders return frontmatter rather than serialized documents; manifest:verify checks every provided pack and that a view record projects through mdbase.view; both manifest writers format with the repository's Prettier configuration.

Depends on the connect release that pins callumalpass/mdbase-rs#94. The same flow (setup installs the pack, then create/list/execute/replace/delete a view record with record grants only) is covered end to end in the mdbase-connect e2e. pnpm check passes.

🤖 Generated with Claude Code

Saved views are now ordinary records of a type implementing the mdbase.view
contract. Reader provisions the published mdbase.view pack beside its own,
requires the contract, and saves views with create and whole-document update
under its record grants, so it no longer requests views.manage. New views are
written at views/<view id>.md.

View builders return frontmatter rather than serialized documents, the
manifest check verifies every provided pack, and both manifest writers
format with the repository's Prettier configuration.
@callumalpass
callumalpass force-pushed the feature/view-contract branch 2 times, most recently from eda663f to 186a8e9 Compare September 28, 2026 11:35
@callumalpass
callumalpass merged commit cbb4d17 into main Sep 28, 2026
2 of 4 checks passed
@callumalpass
callumalpass deleted the feature/view-contract branch September 28, 2026 11:43
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.

1 participant