Skip to content

Feature/marketing pipeline#254

Merged
Deodat-Lawson merged 23 commits into
mainfrom
feature/marketing-pipeline
Mar 24, 2026
Merged

Feature/marketing pipeline#254
Deodat-Lawson merged 23 commits into
mainfrom
feature/marketing-pipeline

Conversation

@rafchen
Copy link
Copy Markdown
Collaborator

@rafchen rafchen commented Mar 23, 2026

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.

rafchen and others added 20 commits March 5, 2026 22:43
…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
…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.
…frontend-refinment

feat(marketing-pipeline): persist rewrite workflow state and add rewr…
@rafchen rafchen requested a review from Deodat-Lawson March 23, 2026 23:44
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
launch-stack Ready Ready Preview, Comment Mar 24, 2026 10:47pm
pdr-ai-v2 Ready Ready Preview, Comment Mar 24, 2026 10:47pm

@Deodat-Lawson Deodat-Lawson merged commit d807ec3 into main Mar 24, 2026
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants