-
[OPIK-6266][FE] environments bug fixes (#6674)
发布于
2026-05-12 12:32:39 +00:00 - [OPIK-6266][FE] fix: environment dialog error surfacing and copy cleanups
- Surface backend error (from
data.errors[0]/data.message) inline below the name input in the create/edit/clone dialog; keep the dialog open on failure so the user doesn't lose their input. - Drop obsolete "Unrecognized environments" wording from the single and batch delete confirmations.
- Show the full environment name in a tooltip across the entire name pill (color square + label) in the Configuration → Environments table.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
- [OPIK-6266][FE] refactor: address PR review feedback on environment dialog
- Reuse the shared
extractErrorMessagehelper fromlib/tags.tsin both env mutation hooks and the dialog, replacing the duplicated inlineerrors/message/error.messageextractions. - Reorder hooks in
AddEditEnvironmentDialogto match the documentedstate -> mutations -> memoization -> handlersstructure (.agents/skills/opik-frontend/SKILL.md). - Clear
submitErrorfrom description and color edits too, not just name edits, so a stale backend message doesn't linger when the user fixes a non-name field.
Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
- [OPIK-6266][FE] refactor: move extractErrorMessage to lib/errors
The helper is used by 10 call sites across environments, traces, datasets, and the generic query error toast —
lib/tags.tsis no longer the right home. Relocate it tolib/errors.tsand update every import.Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
Co-authored-by: aadereiko aliaksandr@comet.com
Co-authored-by: Claude Opus 4.7 (1M context) noreply@anthropic.com下载附件