Skip to content

fix: remove /preview/ prefix from frontend API calls#3871

Closed
jangjohn wants to merge 1 commit intoAgenta-AI:mainfrom
jangjohn:fix/remove-preview-prefix
Closed

fix: remove /preview/ prefix from frontend API calls#3871
jangjohn wants to merge 1 commit intoAgenta-AI:mainfrom
jangjohn:fix/remove-preview-prefix

Conversation

@jangjohn
Copy link

@jangjohn jangjohn commented Mar 1, 2026

Summary

Closes #3831

Removes the /preview/ prefix from all frontend API calls across the web codebase, replacing them with canonical routes.

Changes

  • oss/src/ - OSS frontend service calls
  • ee/src/ - EE frontend service calls
  • packages/agenta-entities/src/ - entity API calls
  • packages/agenta-playground/src/ - playground API calls

Testing

  • Verified all changed routes against the backend route matrix
  • /preview/environments/ route was intentionally left unchanged as it has no canonical equivalent

Note: The large diff size is partly due to line ending normalization (CRLF→LF) on Windows. The actual functional changes are only the removal of /preview/ prefixes in API call paths.

@vercel
Copy link

vercel bot commented Mar 1, 2026

Someone is attempting to deploy a commit to the agenta projects Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Mar 1, 2026
@CLAassistant
Copy link

CLAassistant commented Mar 1, 2026

CLA assistant check
All committers have signed the CLA.

@dosubot dosubot bot added the Frontend label Mar 1, 2026
Resolves Agenta-AI#3831

All API calls in oss/src/, ee/src/, packages/agenta-entities/src/,
and packages/agenta-playground/src/ updated to use canonical routes
without the /preview/ prefix.
@jangjohn jangjohn force-pushed the fix/remove-preview-prefix branch from 73fc689 to 96f6934 Compare March 1, 2026 16:29
Copy link
Member

@mmabrouk mmabrouk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @jangjohn

Thank you for your PR. Can you please clean it to remove the new line changes and limit it to the scope. Thank you.

@jangjohn
Copy link
Author

jangjohn commented Mar 2, 2026

Opened a cleaner PR #3873 to supersede this one. Closing this.

@jangjohn jangjohn closed this Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Frontend size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Frontend: migrate endpoints to remove preview/ prefix

3 participants