Skip to content

Add datasette-paper embed provider for FEC candidates#4

Draft
asg017 wants to merge 2 commits into
screenshotfrom
paper
Draft

Add datasette-paper embed provider for FEC candidates#4
asg017 wants to merge 2 commits into
screenshotfrom
paper

Conversation

@asg017

@asg017 asg017 commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Adds a datasette-paper embed provider so an FEC candidate can be pasted/embedded as a rich block inside a paper document, plus a paper doc-screenshot shot that exercises it.

  • Embed provider (datasette_libfec/paper.py, frontend/src/paper_embed.ts): a no-op unless datasette-paper is installed; datasette-libfec[paper] pulls it from PyPI.
  • paper screenshot shot: boots datasette with --extra paper, seeds a document embedding two FEC candidates as cards via the real create API, and screenshots it.

Stacked on #3 (base branch: screenshot).

🤖 Generated with Claude Code

asg017 and others added 2 commits July 6, 2026 17:27
An FEC candidate can be pasted/embedded as a rich block inside a paper
document. The provider is a no-op unless datasette-paper is installed (it owns
the paper_embed_provider spec); `datasette-libfec[paper]` pulls it from PyPI.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a `paper` shot that boots datasette with `--extra paper` (datasette-paper
from PyPI), seeds a paper document embedding two FEC candidates as cards via the
real create API, and screenshots it. The server only pulls in datasette-paper /
opens its permission gates when the paper shot is in the requested set. A
throwaway shot-plugins/profiles.py gives the doc author a friendly name.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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