diff --git a/src/client/components/browser.tsx b/src/client/components/browser.tsx index 7dc9ccc..463d711 100644 --- a/src/client/components/browser.tsx +++ b/src/client/components/browser.tsx @@ -1,4 +1,4 @@ -import { useEffect, useLayoutEffect, useMemo, useRef, useState, type ChangeEvent, type ReactElement, type ReactNode } from 'react' +import { Fragment, useEffect, useLayoutEffect, useMemo, useRef, useState, type ChangeEvent, type ReactElement, type ReactNode } from 'react' import { UNKNOWN_TOOL_SOURCE, type Category, type ContextHeaders, type ContextTimeline, type HeaderTool, type RequestRecord, type SurfaceNode } from '../../shared/types' import { assemble } from '../assemble' import type { Assembled } from '../assemble' @@ -170,6 +170,8 @@ function Section(props: { count?: number actions?: ReactNode meta?: ReactNode + /** Makes the head label a click affordance (the call head's schema reveal); hover styling rides the link class. */ + onLabelClick?: () => void children: ReactNode }): ReactElement { const right = props.actions !== undefined || props.meta !== undefined @@ -177,7 +179,11 @@ function Section(props: {