Repository navigation
feat(content): add Write this to opportunities, building the brief and then the page in one run (item 9) - #1954
Merged
Conversation
…d then the page in one run (item 9) Customer priorities item 9: an opportunity to a draft written from a brief took six clicks. Write this, in a row's menu and as the panel's main button, does it in one: a dialog says what happens and about how much of the month's AI usage it takes, then the draft starts as Start opens it and the Content Agent builds its brief (the editor's Build brief, holding the draft's claim so Stop lets go of it) and writes the page from it, or suggests changes to the existing page an opportunity names. A brief that can't be built leaves the page written from what there is. The AI usage answer adds what Write this typically takes, as a share of the budget (ai-estimates.js); the editor's wait screen shows the brief's run first. Help: opportunity details and content opportunities. Co-Authored-By: Claude Opus 5.5 <[email protected]>
8 of 13 tasks
Co-Authored-By: Claude Opus 5.5 <[email protected]> # Conflicts: # web/src/lib/help/approved-articles.json
Contributor
|
This reformats the generated |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…om since ansvisor#1944 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
|
Fixed: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Customer priorities, item 9, part 1: Write this takes an opportunity to a page to review in one go. No migration.
Before, going from an opportunity to a draft written from a brief took six clicks: Generate Brief, Send to Editor, pick the Content Agent, Start, Build brief, Rewrite from brief.
What changes
Where: a row's … menu ("Write this · Brief and draft in one go") and the opportunity panel's main button, next to Send to Editor.
The dialog says what happens:
It shows about how much of the month's AI usage it takes and how much is used. The estimate comes from the server as a share of the plan's budget (
ai-estimates.js); dollars stay on the server.One run: the draft starts as Start opens it. The Content Agent builds the brief (the editor's Build brief, holding the draft's claim, so Stop lets go of it), then writes from it. A brief that can't be built leaves the page written from what there is.
Editor: the wait screen shows the brief's run first ("Content Agent is building this page's brief").
The read-only and AI-limit gates are today's.
Help: opportunity details and content opportunities.
Related issue
None. Customer priorities plan, item 9 (owner decision 2026-11-01).
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
content-writer(brief then page, kept brief, failed brief, Stop),ai-estimates,plan-guardAI usage, billing route, the dialog, the menu, the panel, the editor's wait screen.Checked in the browser at 1024px, light and dark, end to end on the dev database, with the agent's start answered by a local stand-in (no AI call). The owner approved the screens.
Checklist
yarn lintpasses (0 errors; 7 old warnings in files this PR doesn't touch)yarn typecheckpassesyarn format:checkpasseshelp/(or no user-visible change)Full checks: CI passed on this PR (acf51aa): schema is up to date; web
format:check, lint, typecheck, tests andyarn buildpass; server lint,format:checkand tests pass.🤖 Generated with Claude Code