Skip to content

feat!: serve /api/inline-edit/content/* so the bar works without an admin; BAR_ACTIONS key - #7

Closed
zumbrunn wants to merge 6 commits into
feat/capabilitiesfrom
feat/inline-edit-routes
Closed

zumbrunn wants to merge 6 commits into
feat/capabilitiesfrom
feat/inline-edit-routes

Conversation

@zumbrunn

@zumbrunn zumbrunn commented Nov 8, 2026

Copy link
Copy Markdown
Member

Part of duneorg/dune#127 (slice 2). Stacked on #6. Implements handleRequest (source, commit, fields, with the TSX and page-ownership rules), injects the bar for any signed-in editor, and exports BAR_ACTIONS as a typed key. End-to-end test: real core, a site login, no admin.

🤖 Generated with Claude Code

zumbrunn and others added 6 commits November 7, 2026 19:37
…pabilities (#127)

BarAction and BarActionContext live here; the key is declared by declaration
merging. transformResponse reads the contributions and the admin.prefix slot
from ResponseTransformContext.capabilities.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… no admin needed (duneorg/dune#127)

handleRequest implements the three routes that lived in the admin's
/admin/api/content/*, with the TSX and page-ownership rules they enforced.
Core decides who may edit; the bar is injected for any signed-in editor, with or
without an admin, and no longer renders the admin's "Edit source" overlay or
"Open in admin" link (the admin contributes those as bar actions). onPageUpdate
carries the editor's name as actor.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…dmin

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…127)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ugmentation (duneorg/dune#127)

JSR rejects 'declare module' in a published package.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@zumbrunn
zumbrunn marked this pull request as ready for review November 10, 2026 16:33
@zumbrunn
zumbrunn changed the base branch from feat/own-contributions to feat/capabilities November 10, 2026 17:12
zumbrunn added a commit that referenced this pull request Nov 10, 2026
Lands the whole stack as one change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@zumbrunn

Copy link
Copy Markdown
Member Author

Landed in 3.0.0 as part of #9 (one squash of the whole stack). Verified against the published @dune/core 0.36.0.

@zumbrunn zumbrunn closed this Nov 10, 2026
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