发布

  • [OPIK-3919] [FE][BE] Add navigation to experiment item from trace view (#5038)

    frostbyte_neo 发布于 2026-02-03 15:25:35 +00:00

    • [OPIK-3919] [FE][BE] Add navigation to experiment item from trace view

    Add "View in experiment" NavigationTag to trace detail panel that allows
    users to navigate directly to the associated experiment item. The tag
    appears next to "Go to thread" button when a trace is linked to an experiment.

    Backend changes:

    • Add datasetItemId field to ExperimentReference record
    • Update TraceDAO to fetch dataset_item_id from experiment items table
    • Join experiments_agg CTE for efficient data retrieval

    Frontend changes:

    • Add NavigationTag component for experiment navigation
    • Pass dataset_id, experiment id, and dataset_item_id for proper routing
    • Update minPanelWidth calculation to accommodate new button

    Implements OPIK-3919: Trace view: Navigate to experiment item from trace

    Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com

    • [OPIK-3919] [BE] Add tests for datasetItemId in experiment reference

    Add assertions for datasetItemId field in existing getTraces test and
    add new test for getTraceById to verify experiment reference is returned
    with all fields including datasetItemId.

    Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com

    • [OPIK-3919] [FE] Add compact mode to NavigationTag for small viewports

    Add isSmall prop to NavigationTag and ResourceLink that renders
    icon-only version when space is limited in the trace details panel.

    Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com

    • [OPIK-3919] [FE][BE] Rename ExperimentReference to ExperimentItemReference

    The reference links to a specific experiment item, not just the experiment.

    Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com


    Co-authored-by: Claude Opus 4.5 noreply@anthropic.com

    下载附件