-
[OPIK-5334] [FE] Use active project scope and reset playground state on project switch (#5974)
发布于
2026-03-30 16:35:04 +00:00 - [OPIK-5334] [FE] Use active project scope and reset playground state on project switch
- Replace useProjectByName("playground") with activeProjectId for dataset
lookup in PlaygroundPage, aligning with RunOnDatasetDialog and
DatasetVersionSelectBox - Add lastActiveProjectId to PlaygroundStore to detect project changes
- Reset playground state on project switch using the same calls as the
reset button: clear prompts, dataset, rules, filters, experiments,
and running state - Extract resetPlayground callback from PlaygroundPage and pass to
PlaygroundHeader via onReset prop to avoid duplicated reset logic - Remove duplicate useLocalStorageState hooks in PlaygroundHeader that
both targeted the same PLAYGROUND_SELECTED_DATASET_VERSION_KEY - Remove dead projectName prop and PLAYGROUND_DEFAULT_SUGGESTIONS from
v2 TracesOrSpansPathsAutocomplete and all cascading components - Prevent model params dropdown trigger from retaining focus on close
- [OPIK-5334] [FE] Gate experiment mode on canViewDatasets permission
下载附件