-
[OPIK-6838] [FE] fix: link Playground prompt versions to experiments and traces (#7017)
发布于
2026-06-10 15:39:53 +00:00 -
feat(playground): add shared prompt-version linkage helpers (OPIK-6838)
-
refactor(playground): reuse shared prompt-version collector in execute path (OPIK-6838)
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
-
fix(playground): link CHAT prompt versions on dataset experiment runs (OPIK-6838 #1,#3)
-
fix(playground): keep trace prompt link on edited prompts with modified flag (OPIK-6838 #4)
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
-
feat(traces): show modified badge on edited playground prompt link (OPIK-6838 #4)
-
feat(experiments): link prompt version from Configuration tab (OPIK-6838 #2)
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
- fix(playground): anchor TEXT prompt version + link experiment's version in Configuration tab (OPIK-6838)
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
- refactor(playground): extract shared resolvePromptVersionForLink helper (OPIK-6838)
Addresses the Baz review comment plus the multi-agent final-review findings:
- Dedupe the version-resolution logic shared by the CHAT and TEXT paths in
useHydratePromptMetadata into a single tested helper. - Resolve the embedded latest_version without an extra fetch when no explicit
version is requested (restores pre-refactor perf parity for the TEXT path). - Pass the resolved PromptVersion straight to buildPromptLibraryMetadata
instead of re-spreading its fields at both call sites. - Add unit tests for resolvePromptVersionForLink, metadata pass-through, and
multi-message collection.
- refactor(experiments): simplify Configuration tab promptVersions derivation (OPIK-6838)
Replace the compound ternary (compare-guard + optional chaining + .length
truthiness + empty fallback) with a clear compare-vs-single branch; the
consumer maps the array, so an empty array renders nothing.- refactor(playground): hoist prompt_versions request mapping to a named const (OPIK-6838)
Co-authored-by: Claude Sonnet 4.6 noreply@anthropic.com
下载附件
-