agenta
agenta copied to clipboard
fix(frontend): Restoring a variant revision in the playground fails
Description
This pull request addresses multiple improvements and fixes to enhance the functionality and user experience. The key changes include:
-
Correctly pass
variantIdfor the active variant to fetch the appropriate prompt revision. -
Separation of Business Logic:
- Extracted business logic from UI components into a custom hook.
- Dynamically imported the hook to prevent use in oss.
-
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.
Related PR: Commons-#76
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 |
Blocker
- Backend should return the last visited variant revision
cc @aakrem
Closing this pull request as it is no longer needed.