feat(studio): intake trace/span view tweaks#489
Conversation
- Always show the annotation count badge on the span Annotations header (incl. 0). - Remove the count badge from the span row header; orange/guardrail-yellow highlight on the note icon when the span has notes. - Rename the Metadata accordion to Attributes in span and trace views. - Trace-level error banner shows only the trace's own error message (root span), dropping the error-span-count warning. - Doc note pointing at the span-type showcase seed script. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Rob Rhyne <rrhyne@nvidia.com>
📝 WalkthroughWalkthroughTrace/span intake components now derive note presence and root-span error state differently, rename trace and accordion labels from Metadata to Attributes, and update the README to describe span template output and specialized KIND handling. ChangesIntakeDetail label and note-state changes
Sequence Diagram(s)sequenceDiagram
participant TraceSpanAccordions
participant TraceSpanListView
participant TraceSpanTreeView
participant SpanFeedbackControls
TraceSpanAccordions->>TraceSpanAccordions: derive rootSpan and notesBySpan
TraceSpanAccordions->>TraceSpanAccordions: compute root-span error banner
TraceSpanAccordions->>TraceSpanListView: pass notesBySpan
TraceSpanAccordions->>TraceSpanTreeView: pass hasNotes and annotationCount
TraceSpanListView->>SpanFeedbackControls: pass hasNotes per span
TraceSpanTreeView->>SpanFeedbackControls: pass hasNotes for selected span
Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
web/packages/studio/src/components/IntakeDetail/README.md (1)
10-11: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winKeep this page explanatory or make the seed-script note runnable.
Lines 10-11 add a task, but only give a path. Move it to a separate HOW-TO, or add prerequisites and an actual command here.
As per coding guidelines,
**/*.{md,rst}pages should fit one Diataxis quadrant, use concrete examples with real code/commands, and always list prerequisites at the top of documentation pages before other content.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@web/packages/studio/src/components/IntakeDetail/README.md` around lines 10 - 11, This README mixes explanatory content with an incomplete task reference, so make it fit a single documentation purpose. Either keep the page purely explanatory and move the seed-script guidance into a separate HOW-TO, or make the existing note actionable by adding prerequisites first and replacing the path-only reference with a concrete runnable command for the span template showcase script. Use the existing IntakeDetail README content and the span seed script mention as the anchors when updating the page structure.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@web/packages/studio/src/components/IntakeDetail/README.md`:
- Around line 10-11: This README mixes explanatory content with an incomplete
task reference, so make it fit a single documentation purpose. Either keep the
page purely explanatory and move the seed-script guidance into a separate
HOW-TO, or make the existing note actionable by adding prerequisites first and
replacing the path-only reference with a concrete runnable command for the span
template showcase script. Use the existing IntakeDetail README content and the
span seed script mention as the anchors when updating the page structure.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: ddffb759-0042-4d44-8da0-94af234464e7
📒 Files selected for processing (7)
web/packages/studio/src/components/IntakeDetail/IntakeComponents/SpanFeedbackControls.tsxweb/packages/studio/src/components/IntakeDetail/README.mdweb/packages/studio/src/components/IntakeDetail/SpanMetadataAccordions.tsxweb/packages/studio/src/components/IntakeDetail/TraceDetailView.tsxweb/packages/studio/src/components/IntakeDetail/TraceSpanAccordions.tsxweb/packages/studio/src/components/IntakeDetail/TraceSpanListView.tsxweb/packages/studio/src/components/IntakeDetail/TraceSpanTreeView.tsx
|
Summary
Follow-up UX tweaks to the intake trace & span detail views (PR #460).
0.--text-color-accent-yellow) when the span has note annotations, with matching tooltip/aria.Testing
pnpm --filter nemo-studio-ui typecheck— passespnpm --filter nemo-studio-ui test src/components/IntakeDetail— 29/29Note
The
TraceAPI type has noerror_message/error_typefield, so the trace-level banner reads them from the root span (which the trace's status derives from). IfTraceis meant to carry its own error message, that's an SDK/OpenAPI gap to address separately.🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Documentation