Merged
Conversation
…components Create LiveTailPanel component that uses the existing event sampling infrastructure (requestSamples/sampleResult) to let users sample live events flowing through any pipeline component. Integrate it into the detail panel as a new "Live Tail" tab alongside the existing "Config" tab, visible only when the pipeline is deployed.
Document the Live Tail feature including how to sample events from deployed pipeline components, the detail panel tab layout, and the agent sampling mechanics.
- Replace useEffect setState with query select callback to avoid cascading renders (react-hooks/set-state-in-effect) - Remove unused eslint-disable directive in pipeline page
Contributor
Greptile SummaryThis PR introduces a Live Tail panel to the pipeline detail view, allowing users to one-shot sample live events from any deployed pipeline component via the existing Key changes:
Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant U as User
participant LP as LiveTailPanel
participant TQ as TanStack Query
participant tRPC as tRPC (server)
participant A as Vector Agent
U->>LP: Click "Sample 10 Events"
LP->>LP: handleSample()<br/>reset processedRequestRef, requestId, flags
LP->>tRPC: requestSamples mutation<br/>{pipelineId, componentKeys, limit}
tRPC->>A: Schedule sample capture
tRPC-->>LP: onSuccess → setRequestId(result.requestId)
LP->>TQ: Enable sampleResult query<br/>(enabled: !!requestId)
loop Poll every 1 second while PENDING
TQ->>tRPC: sampleResult({ requestId })
tRPC-->>TQ: { status: "PENDING" }
end
A->>tRPC: Heartbeat delivers captured events
TQ->>tRPC: sampleResult({ requestId })
tRPC-->>TQ: { status: "COMPLETED", samples: [...] }
TQ->>LP: select() → processResults(data)
LP->>LP: filter samples by componentKey<br/>setEvents / setCompletedEmpty<br/>setRequestId(null) — stops polling
alt status: EXPIRED
tRPC-->>TQ: { status: "EXPIRED" }
TQ->>LP: select() → processResults(data)
LP->>LP: setHasExpired(true)<br/>setRequestId(null)
end
alt status: ERROR
tRPC-->>TQ: { status: "ERROR" }
TQ->>LP: refetchInterval → false (stop polling)
LP->>U: Show error banner<br/>button re-enabled
end
U->>LP: Click event row
LP->>LP: toggleExpand(index)
LP->>U: Render full JSON payload
Last reviewed commit: 6cd9fba |
React Compiler flags Date.now() in useMemo as impure. useState initializer is the idiomatic pattern for compute-once-on-mount values.
- Fix isPending to include isFetching, preventing double-click between mutation success and first poll response - Reset events and requestId when componentKey changes so stale events from a previous node are not shown
- Always render the Live Tail tab and TabsContent regardless of deploy status; LiveTailPanel itself shows "Pipeline must be deployed" when isDeployed is false, preventing a blank tab panel. - Track completedEmpty state so that a COMPLETED session with 0 matching events shows "No matching events found" instead of the generic initial prompt, avoiding user confusion.
1 task
TerrifiedBug
added a commit
that referenced
this pull request
Mar 7, 2026
* fix: use storeKey instead of undefined componentKey in LiveTailPanel The merge of custom dashboards (#36) and live tail (#30) created a conflict where LiveTailPanel references `componentKey` which was never destructured as a local variable. The correct reference is `storeKey`, derived from selectedNode.data.componentKey at the top of the component. * docs: update OIDC group sync documentation Rewrite the OIDC role/team mapping section to reflect the new group sync toggle, separate scope/claim fields, and stepper-based setup guide. Removes references to legacy Admin/Editor Groups fields.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LiveTailPanelcomponent that uses the existingrequestSamples/sampleResulttRPC procedures to sample live events from deployed pipeline componentspipelineIdandisDeployedprops from the pipeline editor page to the detail panelTest plan