agenta icon indicating copy to clipboard operation
agenta copied to clipboard

fix(frontend): Restoring a variant revision in the playground fails

Open bekossy opened this issue 1 year ago • 2 comments

Description

This pull request addresses multiple improvements and fixes to enhance the functionality and user experience. The key changes include:

  1. Correctly pass variantId for the active variant to fetch the appropriate prompt revision.

  2. Separation of Business Logic:

    • Extracted business logic from UI components into a custom hook.
    • Dynamically imported the hook to prevent use in oss.
  3. Endpoint View Enhancements:

    • Made the production radio button active only when present and deployed.
    • Ensured the production radio button is the first option in the radio group.

Closes AGE-363 AGE-398

Related PR: Commons-#76

bekossy avatar Jul 02 '24 15:07 bekossy

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
agenta ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 21, 2024 10:41pm

vercel[bot] avatar Jul 02 '24 15:07 vercel[bot]

Blocker

  • Backend should return the last visited variant revision

cc @aakrem

bekossy avatar Jul 23 '24 14:07 bekossy

Closing this pull request as it is no longer needed.

bekossy avatar Nov 19 '24 16:11 bekossy