Repository navigation
feat(content): send an opportunity or one of its assets to the Action Center - #943
Merged
Merged
Conversation
… Center Opportunities could only go out by webhook. They now open an Action Center action, for the whole opportunity or a single asset (#857, Phase 2). - POST /api/content/:id/action creates a content_opportunity action. Its tasks are the library's own, planned from each asset: brief, draft, internal links and publish for new owned content; optimize or refresh for an existing page; sources, outreach and tracking for earned work. Several assets are combined into one plan, work first, checks next, the outcome measurement last. - kpi_keys ai_visibility, citations and mentions, so the completed action is measured like any other. - Sending the same thing again returns the action already open. The action id is kept on the opportunity, and a new opportunity is marked sent. - The detail page has Send to Action Center in the header and Send on each asset, and shows Open in Action Center once sent. Sending the whole hides the per-asset buttons and the other way round. - The web knows the new kind; such an action is titled after the opportunity or asset it was sent for.
6 tasks done
gkhngyk
added a commit
that referenced
this pull request
Oct 6, 2026
…ontent (#944) An action sent from a content opportunity (#943) opened with an empty "Primary signals" section and "0 signals": its prompts, fan-out queries, pages and brief stayed on the opportunity, out of reach of whoever works the action's tasks. - The Overview tab of a content_opportunity action shows the opportunity instead: a link back, the decision and its pages, the brief and outline (or a link to generate one), the prompts to answer and the searches AI engines ran for them. It is read live, so a brief generated after sending shows too. - The "0 signals" tag is gone for these actions, and the Signals tab says where their evidence is. - When the opportunity already has a brief, the brief task opens completed. Every task row now states its status.
This was referenced Oct 6, 2026
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
Last PR of Phase 2 in #857. Opportunities could only go out by webhook. They can now open an Action Center action, either for the whole opportunity or for a single recommended asset (#940). Until now, only the nightly signal engine created actions, so this is the first path that lets a person create one.
Server (
lib/action-center/from-opportunity.js,POST /api/content/:id/action)content_opportunity. Category isgrowthand impact comes from the opportunity. The dedup key isopportunity:<id>:<assetKey|all>.planTasks, so they keep the library's mode, permission and dependencies:measure_action_outcomelast.kpi_keysareai_visibility,citationsandmentions, so a completed action gets the usual before/after validation.source_data.actions, and anewopportunity becomessent.Web
content_opportunityis added to the web's kind registry with its copy. Such an action is titled after the opportunity or asset it was sent for, rather than from a template.{ error }instead of throwing, because production masks thrown messages.Tried on production data
On the main test brand, I sent a two-asset opportunity: a comparison page plus a third-party article. Results:
sent, with the action id recorded.Related issue
Part of #857. This completes Phase 2.
Type of change
feat— New featuretest— Adding or updating testsHow to test
created: falsewith the same action id.from-opportunity.test.jscovers the task plans per asset, the combined order, that every planned task exists in the registry, and the single asset given to older opportunities.display.test.tscovers the new kind's copy and title.Checklist
yarn lint,yarn typecheck,yarn format:check,yarn test(410) andyarn buildpass (run fromweb/)yarn lint,yarn format:checkandyarn test(984) pass (run fromserver/)🤖 Generated with Claude Code