Feature/marketing pipeline#254
Merged
Merged
Conversation
…ic positioning (#232) - Company DNA extraction with dual RAG queries - Competitor analysis via web search + LLM synthesis - MessagingStrategy from positioning module - Shared model factory for all pipeline LLM calls - Parallel research, optional prompt, competitiveAngle in output
… improve validation handling
…ite handoff UX
Implement end-to-end rewrite refinement flow improvements across marketing pipeline and documents modules.
Key updates:
- Preserve rewrite sidebar workflow state per marketing session (prompt text, tone/length/audience options, custom prompt, current step, draft mode, and rewritten preview) so close/reopen keeps user progress.
- Add explicit 'Push to Rewrite Document' action from Marketing Pipeline, storing pending draft in sessionStorage and navigating to documents rewrite mode.
- Support documents page query handoff () and consume pending draft in RewriteDiffView to open prefilled editor content.
- Enhance RewriteWorkflow with Draft Mode toggle: ON keeps in-sheet preview/regenerate flow; OFF directly opens rewrite document path via completion callback.
- Update rewrite preview rendering to use MarkdownMessage for markdown formatting fidelity and align action labels ('Regenerate', 'Push to Rewrite').
- Expand marketing pipeline session history UX (left sidebar sessions list, active session switching, persisted sessions in sessionStorage, new-session behavior).
- Fix duplicate React key risk in trend references by adding index in composite key.
- Fix hydration mismatch in ProfileDropdown by guarding UserButton render until mount.
- Update RewritePreviewPanel tests for new labels and markdown behavior; add markdown-related jest mocks for ESM compatibility.
…ine-frontend-refinment
…frontend-refinment feat(marketing-pipeline): persist rewrite workflow state and add rewr…
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Made-with: Cursor
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.
End-to-end marketing pipeline for creating campaign posts for Reddit, X, LinkedIn, and Bluesky, using company knowledge, competitor analysis, and platform trend research.
Backend pipeline
Company DNA extraction – Metadata-first from company_metadata, falling back to RAG when no metadata exists. Uses CompanyDNA (core mission, differentiators, proof points, human story, technical edge).
Competitor analysis – Analyzes competitor landscape and generates messaging guidance.
Trend research – Platform-specific trend search with a DB-backed cache to cut repeat API calls and runtime.
Messaging strategy – Builds positioning, proof points, and human hook from DNA and competitors.
Content generation – Produces platform-specific copy with the right tone and format.
Frontend UI
Platform selection – Choose Reddit, X, LinkedIn, or Bluesky.
Sessions sidebar – Multiple sessions stored in sessionStorage.
Campaign draft – Preview/edit modes, Markdown rendering for Reddit, plain text for LinkedIn/X/Bluesky.
Copy to platform – Clipboard supports both plain text and HTML, with platform-specific formatting.
Pipeline → Rewrite – “Refine in Rewrite” opens RewriteWorkflow in a sheet; “Push to Rewrite Document” sends the draft to the rewrite flow without changing the route.
Rewrite workflow state – State persisted per session so refinement is preserved.
Trend references – List of research sources shown with the draft.
Merge resolution – main was merged into feature/marketing-pipeline; conflicts resolved in models, marketing pipeline files, and page components.