发布

  • [OPIK-6266][FE] environments bug fixes (#6674)

    frostbyte_neo 发布于 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 extractErrorMessage helper from lib/tags.ts in both env mutation hooks and the dialog, replacing the duplicated inline errors/message/error.message extractions.
    • Reorder hooks in AddEditEnvironmentDialog to match the documented state -> mutations -> memoization -> handlers structure (.agents/skills/opik-frontend/SKILL.md).
    • Clear submitError from 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.ts is no longer the right home. Relocate it to lib/errors.ts and 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

    下载附件