Skip to content

feat: ai journey creation revival#8784

Draft
edmonday wants to merge 397 commits into
mainfrom
feature/26-02-JB-ai-journey-creation-revival
Draft

feat: ai journey creation revival#8784
edmonday wants to merge 397 commits into
mainfrom
feature/26-02-JB-ai-journey-creation-revival

Conversation

@edmonday

Copy link
Copy Markdown
Contributor

No description provided.

jianwei1 and others added 30 commits June 11, 2025 03:57
- Added new dependencies: @opentelemetry/api-logs, @opentelemetry/sdk-logs, @vercel/otel, and langfuse-vercel.
- Updated versions for @opentelemetry/instrumentation and langfuse packages.
- Enhanced chat API to include Zod validation for incoming messages and integrated system prompt retrieval from langfuse.
…rades

- Updated @ai-sdk/google to version 1.2.19.
- Added multiple new esbuild packages for various platforms and architectures, all at version 0.17.19.
- Updated wrangler dependencies to version 1.20250408.0 for various platforms.
- Adjusted devOptional flag for @emnapi/runtime to true.
- Updated instrumentation to use environment variables for Langfuse configuration.
- Modified chat API to accept journeyId, selectedStepId, and selectedBlockId in the POST request.
- Improved system prompt retrieval to include journey context.
- Adjusted AiChat component to pass journey and step/block IDs in request body.
- Added console log to output the current environment (VERCEL_ENV, DD_ENV, NODE_ENV) in the chat API POST request handler for better debugging and monitoring.
- Upgraded jwt-decode to version 4.0.0 in package.json and package-lock.json.
- Integrated jwtDecode function in the chat API to extract user_id and auth_time from the token for enhanced telemetry data.
- Refactored chat API to utilize Langfuse for telemetry, including environment context.
- Updated instrumentation to use a new LangfuseExporter for improved data handling.
- Added error handling and ensured proper flushing of telemetry data after API calls.
- Improved system prompt retrieval to include environment details and journey context.
- Updated the LangfuseExporter and Langfuse instances to use the correct variable 'langfuseEnvironment' for the environment property instead of an undefined reference.
- Removed the systemPromptFooter prop and related logic from the AiChat component.
- Eliminated the SystemPrompt component and its associated files to streamline the chat interface.
- Updated the Form component to reflect these changes, ensuring a cleaner and more efficient implementation.
…acing

- Introduced Zod schema for validating incoming request body, ensuring structured data handling.
- Added UUID generation for traceability in telemetry data.
- Refactored message handling to include system prompts dynamically based on journey context.
- Updated response headers to include trace ID for improved debugging and monitoring.
- Added a fetchWithAuthorization function to handle API requests with user authentication.
- Implemented trace ID storage in messages for improved tracking of responses.
- Updated MessageList to display user feedback based on trace ID.
- Refactored message handling to incorporate new trace ID logic.
- Simplified the structure of the POST request function by removing unnecessary try-finally blocks.
- Enhanced request validation using Zod schema for better error handling.
- Improved token handling and authorization checks.
- Maintained dynamic system prompt integration based on journey context and ensured proper telemetry data flushing.
- Changed import paths for Langfuse components to reflect new directory structure.
- Removed obsolete Langfuse configuration file to streamline the codebase.
- Updated UserFeedback component to utilize the new langfuseWeb API for scoring user feedback.
- Modified the UserFeedback component to utilize the updated langfuseWeb API for scoring user feedback, enhancing integration with the Langfuse service.
- Added error handling logic to ensure langfuseExporter.forceFlush() is called on both error and finish events, enhancing reliability in telemetry data flushing.
@github-actions

github-actions Bot commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects.

Name Status Preview Updated (UTC)
watch-modern ✅ Ready watch-modern preview Fri Jun 12 13:08:27 NZST 2026

@github-actions

github-actions Bot commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects.

Name Status Preview Updated (UTC)
player ✅ Ready player preview Fri Jun 12 13:08:43 NZST 2026

@github-actions

github-actions Bot commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects.

Name Status Preview Updated (UTC)
short-links ✅ Ready short-links preview Fri Jun 12 13:08:40 NZST 2026

@blacksmith-sh

blacksmith-sh Bot commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

Found 1 test failure on Blacksmith runners:

Failure

Test View Logs
tracer/retuns a datadog tracer View Logs

Fix in Cursor

@github-actions

github-actions Bot commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects.

Name Status Preview Updated (UTC)
journeys ✅ Ready journeys preview Fri Jun 12 13:09:29 NZST 2026

@github-actions

github-actions Bot commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects.

Name Status Preview Updated (UTC)
videos-admin ✅ Ready videos-admin preview Fri Jun 12 13:08:41 NZST 2026

@github-actions

github-actions Bot commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects.

Name Status Preview Updated (UTC)
watch ✅ Ready watch preview Fri Jun 12 13:08:56 NZST 2026

@github-actions

github-actions Bot commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects.

Name Status Preview Updated (UTC)
resources ✅ Ready resources preview Fri Jun 12 13:08:50 NZST 2026

…ourney-creation-revival

# Conflicts:
#	apps/journeys-admin/next-env.d.ts
#	apps/journeys-admin/next.config.js
#	apps/journeys-admin/src/components/Editor/Editor.spec.tsx
#	apps/journeys-admin/tsconfig.json
#	libs/journeys/ui/src/libs/blurImage/blurImage.spec.ts
#	package.json
#	pnpm-lock.yaml
@github-actions
github-actions Bot had a problem deploying to Preview - journeys-admin June 11, 2026 23:45 Failure
@github-actions
github-actions Bot temporarily deployed to Preview - player June 11, 2026 23:45 Inactive
@github-actions
github-actions Bot temporarily deployed to Preview - journeys June 11, 2026 23:45 Inactive
@github-actions
github-actions Bot temporarily deployed to Preview - watch June 11, 2026 23:45 Inactive
@github-actions
github-actions Bot temporarily deployed to Preview - short-links June 11, 2026 23:45 Inactive
@github-actions
github-actions Bot temporarily deployed to Preview - watch-modern June 11, 2026 23:45 Inactive
@github-actions
github-actions Bot temporarily deployed to Preview - videos-admin June 11, 2026 23:45 Inactive
@github-actions
github-actions Bot temporarily deployed to Preview - resources June 11, 2026 23:45 Inactive
The bare 'next-i18next' entry resolves to the App Router build, which
does not export useTranslation. journeys-admin is a Pages Router app,
so use the next-i18next/pages entry like the rest of the codebase.

https://claude.ai/code/session_01CYWVnfZqMvdeYer2yLTiJA
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 3 committers have signed the CLA.

✅ edmonday
✅ jaco-brink
❌ claude
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions
github-actions Bot temporarily deployed to Preview - player June 12, 2026 01:07 Inactive
@github-actions
github-actions Bot temporarily deployed to Preview - resources June 12, 2026 01:07 Inactive
@github-actions
github-actions Bot temporarily deployed to Preview - journeys-admin June 12, 2026 01:07 Inactive
@github-actions
github-actions Bot temporarily deployed to Preview - short-links June 12, 2026 01:07 Inactive
@github-actions
github-actions Bot temporarily deployed to Preview - watch-modern June 12, 2026 01:07 Inactive
@github-actions
github-actions Bot temporarily deployed to Preview - watch June 12, 2026 01:07 Inactive
@github-actions
github-actions Bot temporarily deployed to Preview - journeys June 12, 2026 01:07 Inactive
@github-actions
github-actions Bot temporarily deployed to Preview - videos-admin June 12, 2026 01:07 Inactive
@github-actions

Copy link
Copy Markdown
Contributor

The latest updates on your projects.

Name Status Preview Updated (UTC)
journeys-admin ✅ Ready journeys-admin preview Fri Jun 12 13:10:20 NZST 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants