Conversation
Phase 0 of the AI Chat Journey Editor. Replaces the flat card field structure with an ordered content array using a discriminated union. - All 8 addable block types: heading, text, button, image, video, poll, multiselect, textInput, spacer - All 5 action kinds: navigate, url, email, chat, phone - Content-derived card IDs (card-welcome, not card-1) - Cross-card reference validation via Zod superRefine - Image width/height/blurhash made optional (server computes) - Card x/y made optional (auto-layout) - URL scheme validation (https/http only) - backgroundVideo support alongside backgroundImage - Image I/O moved outside transaction in updateSimpleJourney - Added @ai-sdk/anthropic dependency Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Phase 1 of the AI Chat Journey Editor. Adds the complete backend agent infrastructure. - GraphQL SSE subscription (journeyAiChatCreateSubscription) - Two-phase loop: AI plans via submit_plan, server executes - AgentJourney type with blockIds on every content item - PlanOperation discriminated union (10 tool types) - Surgical tools: createCard, deleteCard, updateCard, addBlock, updateBlock, deleteBlock, reorderCards, updateJourneySettings - search_images tool (batch Unsplash API, up to 5 queries) - Full system prompt with examples and behavioral constraints - Redis-based undo snapshots (per-turn checkpoints) - journeyAiChatUndo + journeyAiChatExecutePlan mutations - Tiered model selection (Gemini Flash free / Claude BYOK) - Mid-session model switching via preferredTier - Published journey warning - Prompt hardening (preSystemPrompt + hardenPrompt) - History validation (roles, length, entry limits) - Server-derived requiresConfirmation - sanitizeErrorMessage for safe error propagation Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds subscription, mutations, input types, and message type for the AI chat journey editor. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
New /journeys/[id]/ai-chat route with split-pane AI editor. Canvas (60%): - AiJourneyFlow with React Flow, dagre auto-layout - AiCardPreviewNode with full card previews at 0.55 scale - AiViewEdge with labeled edges (default/button/poll) - Card selection as context (blue border) - Shimmer overlay on cards being edited Chat Panel (40%): - AiChatPanel with message list, auto-scroll - MessageBubble (user/AI) with hover-to-reveal undo - PlanCard with operation status (pending/running/done/failed) - StarterSuggestions with suggestion chips - ChatInput with context pill, send/stop toggle - ModelIndicator (free/premium tier display) - ToolCallCard for tool progress - AiEditorToolbar with Edit Manually navigation guard Entry point: - AI Editor button added to existing editor Toolbar Dependencies: - @dagrejs/dagre for branching layout Note: Full build requires running nf start for API servers and regenerating gateway schema + Apollo client codegen. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Composes the federated gateway schema with journeyAiChat types. Generates Apollo client TypeScript types for journeys-admin. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Updated searchImages tool to return error message when image service is unavailable. - Added languageName field to JourneyAiChatInput for better localization support. - Fixed path reference in next-env.d.ts for improved type resolution. - Introduced ThinkingIndicator component in AiChatPanel for better user feedback during processing. - Enhanced AiChatPanel to handle plan confirmations and rejections with new props. - Updated ChatInput to display selected card label dynamically. - Improved PlanCard component with collapsible details and action buttons for plan execution. - Integrated Apollo Client mutation for executing plans in AiEditor. - Refactored message handling in AiEditor to support new plan message types. - Updated useJourneyAiChatSubscription to handle new message types and refetch queries correctly. - Added optional backgroundImage property to plan operation schema for enhanced customization. - Made action property in journeySimpleBlockSchema optional for better flexibility.
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip CodeRabbit can use OpenGrep to find security vulnerabilities and bugs across 17+ programming languages.OpenGrep is compatible with Semgrep configurations. Add an |
…-journey-editor # Conflicts: # package.json # pnpm-lock.yaml
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
View your CI Pipeline Execution ↗ for commit a0936a0
☁️ Nx Cloud last updated this comment at |
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
No description provided.