Repository navigation
fix(action-center): show the opportunity behind an action sent from Content - #944
Merged
Merged
Conversation
…ontent 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 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
An action sent from a content opportunity (#943) opened with an empty Primary signals section and a 0 signals tag. The opportunity's prompts, fan-out queries, pages and brief stayed on the opportunity. Whoever works the action's tasks had none of it. The spec's action tasks for #857 include "analyze the opportunity basket", "analyze the prompt cluster", "analyze the fan-out queries" and "generate the content brief", and each of those needs this data.
Overview tab (
components/action-center/opportunity-context.tsx)For a
content_opportunityaction, the Overview tab shows the opportunity in place of the empty signals section:It is read live from the opportunity through the existing
getOpportunityandgetOpportunityBasketcalls. A brief generated after sending therefore shows here too. Actions sent before this change carry the opportunity id, so they get the section as well.Signals
Brief task
create_content_briefopens as completed.todootherwise). A bulk insert sends the union of the rows' keys, so a row without a status would send null.Related issue
Part of #857. Fixes the action view of #943.
Type of change
fix— Bug fixtest— Adding or updating testsHow to test
Checklist
yarn lint,yarn typecheck,yarn format:check,yarn test(418) andyarn buildpass (run fromweb/)yarn lint,yarn format:checkandyarn test(985) pass (run fromserver/)🤖 Generated with Claude Code