[OPIK-5027] [FE] feat: TraceLogsSidebar — full traces table in Sheet overlay#5962
Conversation
…s table Create reusable TraceLogsSidebar that opens as a Sheet overlay with a full-featured traces table matching the LogsPage TracesSpansTab. Includes all columns, filters, search, sorting, pagination, column management, row height, date range, export, and nested TraceDetailsPanel. Changes: - Add TraceLogsSidebar (full TracesSpansTab copy adapted for sidebar) with Sheet container, "← Back to experiment" header, auto-derived labels from logsSource, hidden sourceFilters, URL query param state (tls_ prefix), and localStorage persistence (tls-traces- prefix) - Add TraceLogsSidebarButton (self-contained tag button + sidebar) - Move TracesActionsPanel to pages-shared (fixes dependency-cruiser) - Remove "View in experiment" from v2 TraceDetailsActionsPanel - Remove experiment filter from v2 Logs page FiltersButton - Integrate into CompareExperimentsDetails (replaces NavigationTag) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
apps/opik-frontend/src/v2/pages-shared/traces/TraceLogsSidebar/TraceLogsSidebar.tsx
Show resolved
Hide resolved
apps/opik-frontend/src/v2/pages-shared/traces/TraceLogsSidebar/TraceLogsSidebar.tsx
Show resolved
Hide resolved
apps/opik-frontend/src/v2/pages-shared/traces/TraceLogsSidebar/TraceLogsSidebar.tsx
Show resolved
Hide resolved
apps/opik-frontend/src/v2/pages/AnnotationQueuePage/QueueItemsTab/TraceQueueItemsTab.tsx
Show resolved
Hide resolved
apps/opik-frontend/src/v2/pages-shared/traces/TraceLogsSidebar/TraceLogsSidebarButton.tsx
Show resolved
Hide resolved
.../src/v2/pages/CompareExperimentsPage/CompareExperimentsDetails/CompareExperimentsDetails.tsx
Show resolved
Hide resolved
…y params - TLS_STORAGE_PREFIX for localStorage keys - TLS_QUERY_PREFIX for URL query params, shared with TraceLogsSidebarButton - Aligned query param names with LogsPage convention (search, trace, span, page, size, height, sort) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
🔄 Test environment deployment process has started Phase 1: Deploying base version You can monitor the progress here. |
|
✅ Test environment is now available! To configure additional Environment variables for your environment, run [Deploy Opik AdHoc Environment workflow] (https://github.com/comet-ml/comet-deployment/actions/workflows/deploy_opik_adhoc_env.yaml) Access Information
The deployment has completed successfully and the version has been verified. |
apps/opik-frontend/src/v2/pages-shared/traces/TraceLogsSidebar/TraceLogsSidebar.tsx
Show resolved
Hide resolved
aadereiko
left a comment
There was a problem hiding this comment.
The code looks good! Thanks!
miguelgrc
left a comment
There was a problem hiding this comment.
Looks good, just a minor comment but you can skip it :)
| const entityType = | ||
| type === TRACE_DATA_TYPE.traces ? "trace" : ("span" as const); | ||
|
|
||
| const enableEvaluate = showEvaluate && !hideEvaluate; |
There was a problem hiding this comment.
A bit weird having antonyms here but I guess it's not trivial to refactor
Details
logs_sidebar.mov
Adds a reusable
TraceLogsSidebarcomponent that opens as a Sheet overlay with a full-featured traces table. This replaces the previous "View in experiment" navigation pattern with an inline trace viewing experience across multiple v2 pages.Key changes:
useTracesList,useTracesStatistic,useTracesFeedbackScoresNames) withenabled: opento avoid API calls when closed.tls_open) for persistence across refreshes.headerprop — Allows custom header in Sheet, used by sidebar for "← Back to experiment" button instead of default X close.containerprop — Portal target override so TraceDetailsPanel renders inside the Sheet DOM (fixes Radix focus trap blocking pointer events).pages/LogsPage/topages-shared/traces/(fixes dependency-cruiser). AddedhideEvaluateprop; "Add to" dropdown always visible, "Evaluate" hidden in sidebar context.logsSource: LOGS_SOURCE.sdkfilter from v2 annotation queue pages. Queues are manually curated collections and should show all traces regardless of source (consistent with SME flow which already had no source filter).logsSourceparam touseProjectStatisticListfor source-filtered stats on Projects page.Integrations:
variant="button"Change checklist
Issues
AI-WATERMARK
AI-WATERMARK: yes
Testing
scripts/dev-runner.sh --lint-fe— lint, typecheck, dependency validation all passDocumentation
N/A