Content workbench
A React block (a whole screen) in Beamline's CMS & media app.
A site's content in one place: collections, the chosen collection's items in a grid where cells are chosen as a range (click, Shift-click), and an assistant handed a snapshot of exactly those cells. It answers with a change set (updates as before and after, creates labelled as sample content, deletes, problems) and nothing is written until Apply; the receipt names the commit and Undo undoes that commit or says why it can't; a record changed since the snapshot keeps the proposal instead of passing for saved. Item settings keep what the page never draws (slug, SEO title, description, categories, social image) beside what it does, preview the address from the route without going there, and save a draft that never publishes. Templates for address, title and description are written by field name but bound by field id, so renaming a field keeps them; the preview against a chosen item names unknown fields and shows the fallback for empty values. Publishing is per destination: what would change, the revision reviewed against what's live, a summary that moved on asks for review again, request accepted and live as two moments, a failure that keeps saying what's live, and no right to publish said.
Use it for
- Editing a site's CMS collections with an assistant whose changes are reviewed before they're written.
- Item metadata (slug, SEO, social image) and page templates, with publishing as its own step.
Not for
- Editing text in place on the page (page-editing).
- A general spreadsheet (data-grid).
Anatomy
- bar: the site, its branch, Templates and Publish
- collections: each with its count, in its hue
- grid: the fields (a metadata-only field marked and tinted), each item's values, a reference by name, status (Draft, Changed, Published), sample content labelled, who edited it and when, Settings; chosen cells in the accent
- assistant: the chosen cells as context (cells, fields, items) with clear, the request, Propose changes; the change set with updates (before, after), creates, deletes and problems; a conflict named; Apply, Discard; the receipt with Undo
- item settings: On the page and Only in the page's metadata, a slug checked, categories, social image, the address preview; Save draft
- templates: Address, Page title, Page description, the fallback, Insert field; Preview with an item as a search result, empty values and unknown fields named; field names to rename
- publish: Publish to (each destination), live now with who and when, what would change, review again when it moved on, accepted then live, Publish to, no right said
States
- collection loaded, range chosen, context attached, proposing, change set ready, problem found, conflict (proposal kept), applying, applied with receipt, undone, undo unavailable
- item settings: loaded, changed, image chosen, slug invalid, saving, saved draft, refused (kept)
- templates: empty, fields inserted, preview, unknown field, empty value (fallback), invalid address, field renamed (binding kept), saved draft
- publish: nothing to publish, changes ready, changed since opened, publishing, accepted, live, failed (still live said), no right
- narrow room: collections, grid and assistant stack
Keyboard
- Tab reaches each cell; Space or Enter chooses it, with Shift extends the range
Motion
Cells and rows ease their colour when chosen. Nothing runs at rest.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
site (required) | string | — | The site's name. |
collections | CmsCollection[] | — | |
defaultCollections | CmsCollection[] | — | |
onCollectionsChange | ((collections: CmsCollection[]) => void) | — | |
items | CmsItem[] | — | |
defaultItems | CmsItem[] | — | |
onItemsChange | ((items: CmsItem[]) => void) | — | |
assets | CmsAsset[] | — | |
host (required) | string | — | The site's route prefix host for previews: "harbourjournal.example". |
defaultCollectionId | string | — | |
defaultRange | CellRange | null | — | |
defaultRequest | string | — | What's typed for the assistant at first. |
defaultProposal | ChangeSet | null | — | A change set already proposed, waiting for review. |
onPropose | ((request: string, context: CellRange & { revisions: Record<string, number>; }) => Prom… | — | Asks the assistant about the chosen cells; resolve with its change set. |
onCommit | ((changeSet: ChangeSet) => Promise<string>) | — | Writes a change set; resolve with a receipt id, reject (a conflict) to keep the proposal. |
onUndo | ((receipt: string) => Promise<unknown>) | — | Undoes the commit with this receipt; reject when it can't be undone. |
onSaveItem | ((item: CmsItem) => Promise<unknown>) | — | Saves an item's draft (never publishes); reject to keep the draft. |
onSaveCollection | ((collection: CmsCollection) => Promise<unknown>) | — | Saves a collection's templates or field names; reject to keep the draft. |
destinations | Destination[] | — | |
pending | PendingChanges | null | — | |
onPublish | ((destinationId: string, revision: string) => Promise<{ request: string; live: Promise<… | — | Requests a publication; resolve when accepted with a promise that settles when it's live. |
onRefreshPending | (() => Promise<PendingChanges>) | — | Called when the reviewed revision is out of date: resolve with fresh pending changes. |
locale | string | — | |
className | string | — | Classes on the documented visual root; no override by default. |
style | CSSProperties | — | Inline styles on the documented visual root; no overrides by default. |
ref | Ref<HTMLDivElement> | — | Receives the documented native target or imperative handle; omitted by default. |
Built from
- button
- textarea
- input
- select
- multi-select
- dialog
- popover
- segmented-control
Dependencies
lucide-react
Import
import { CmsWorkbench } from "@beamline/cms-workbench";
Get it
Content workbench is part of Beamline UI. Install the parts you need in your React app as compiled packages or editable source. Get Beamline · Connect your agent
More in CMS & media
- Page editing: Editing a live page in place, for someone who may edit but not publish. Edit page outlines each editable piece with its name; a click edits it where it…
- Page inline edit: The website edited in place inside the admin. A page picker with the page's address and Edit in place. The website shown in its own paper and type; with…
- Writing canvas: Writing before structure, for a CMS team. A shared draft with where it sits, who's in it and the section each person is writing in (or that they're only…
- Versioned document: One CMS document edited in its draft or in a release's version. The switcher says what each version holds and where an edit goes; published reads only…
- Document history: A CMS document's history. Revisions as a timeline, newest first, each with what happened, who and when; the ones made inside a release are gathered under…
- Record versions: A published record with its versions. Main (published on success) and each version with how many fields differ from main (on info), who made it from what…
- Document finder: Finding documents in a CMS. Search by words in a title or text field; the filters read as a sentence of chips (type, what a field contains, as many as…
- Content releases: Content releases in a headless CMS: changes to many documents grouped to go live together. A preview bar layers chosen releases over what's live in the…
- Post release: One post on its way out. The preview shows it as the website, a phone, the email and a shared link, from one revision; the email's subject is set apart…
- Social media scheduler: Plan posts across your social accounts: a week calendar where every post sits at its time in its account's colour and moves by drag, a queue of what goes…
- Post performance: How published posts did, with every figure's denominator said. The list keeps each post's website visitors, its email's open and click rates (each "x of…
- Newsletter desk: A publication's newsletters, each its own list with its own subscribers, settings and design. Active and Archived apart; a new one says how many existing…
- Audience segments: A messaging product's audience segments in one place: the directory with members (a count of people, or not known, never 0) kept apart from what uses…
- Publishing team: A social team's settings in three places. Tags: posts with their status (scheduled, draft, sent) and tags in their own series hue, the same hue in the…
- Asset library: A shared media library in a CMS. Folders hold files; collections only point at them, and adding to one says it never moves a file. The grid filters by…
- Media collection: A media collection that fills itself from metadata. Its rules read as one sentence of chips (is, is not, contains, before, after; choices picked from the…
- File detail: One file's details. The image with its focal point (where crops keep the subject), set by clicking the picture and said in words, or none said. Metadata…
- Metadata fields: An account's metadata fields for media. The library lists each field with its type, how many assets fill it and how many projects can use it, with New…
- Collection batch edit: A collection's records filtered and edited together. Saved filters beside nested rules (query-builder, up to three levels) over fields and dotted JSON…
- Schema fields: A collection's fields and their settings. The fields with key, type and flags (required, unique, hidden, translated). An existing field leads with its…
- Policy rules: One access policy's permissions. Admin access (said to skip every rule, on warning) and app access (without it its people can't sign in; rules still…
- Automation steps: An automation's trigger and its steps' options. The outline: what starts it, then each step by its key and kind, with how many unknown paths it holds…
- Automation runs: An automation's runs and running it by hand. The runs: when, how it ended (done on success, failed on danger, running on info), what started it and how…
- Review share: Sharing cuts for review. The page as reviewers will see it leads, large: its title (edited in place), how many items and when it ends, what's allowed…
- Guest review: A guest's review of shared translations, and the invitation that scopes it. The room shows the screen each key appears on with the shared keys numbered…
- Translation workbench: Translating a file segment by segment. Source and target sit side by side, segments grouped by their content unit; the source is read only (it changes by…
- Translation editor: Content in two languages side by side, and the interface strings. Content: the record and the language to translate into, how many fields are translated…
- Translation key: A translation key, defined and given context. General: the name (one already in the project refused, or a name per platform), the base text, the…
- Language preview: One document in two languages side by side. The panes scroll together; choosing a passage in either lights it in both and offers Find in editor; a…
- Localization overview: A localization project at a glance. Review progress per language says segments and words approved out of their totals (a word total still being counted…
- Captions: Captions for a video, by speaker and by style. Caption layers are bound to a speaker (or all speakers), each with its own style and place, top or bottom…
- Cut review: Reviewing a film cut. The picture is the still of the clip under the playhead, large, with the checks a reviewer needs folded into three tools above it…
- Shot list: A scene's shot list for a film or video shoot. Shots in order with done, number, description, size, movement, setup and time, and banner rows (a meal, a…
- Call sheet: A shoot day's call sheet. Composed from grids switched on or off: schedule (scenes, start, pages, cast), cast with call times edited in place and a call…
- Screenplay revisions: A screenplay under revision for a production. The script in screenplay form (scene headings, action, character, parenthetical, dialogue, transitions)…
- Transition sequence: An event's sequence of states for one object, as an inspector. The states play in order; each step between two states has its own duration and easing…
- Segment editor: One segment's translation with its checks and help. The source shows its tags and placeholders as numbered chips, and so does a preview of the…
- Rig editor: Rig a character: bones, a rotation constraint and a mesh. Bones are drawn joint by joint on the stage or added from the chosen joint, and can branch from…
- Project board: A team's sprint as a board: the sprint's goal, points done and days left, filters by person and label, the work as cards in columns with work-in-progress…
- Cycle planner: A team's work cycles: the schedule read as one sentence (every two weeks from Monday, no cooldown, three ahead) over a calendar of cycles on a week…
- Component source: Components and their instances in one artboard. Layers chosen together become a component after a review of what goes with them (their timeline keys and…
- Element index: A production's element index: every element (cast, props, wardrobe, vehicles, animals…) grouped by category, each with how many scenes it's in, the shoot…
- Layout inspector: Size and place one object in its parent. Width and height are Fixed (points or percent), Hug (its content; not without children) or Fill (its parent; not…
- Text styles: A text object's runs, styles and modifiers. Each run takes one of the text's own styles (they belong to this text only); hovering or focusing a style…
- Label designer: A label template made against the real label: drawn at true proportions in millimetres with its size beside it; the code says what it holds (a QR links…