- {props.showScopeFields !== false ? (
- <>
-
- Scope
-
- {isSessionTarget
- ? "Select which sessions this evaluator runs on and how often."
- : "Select which spans this evaluator runs on and how often."}
+ {isSessionTarget ? : null}
+
+
+
+ {testAllButton}
+
+ }
+ />
+
+ Counting matching {recordNoun}s…
-
-
+
- >
- ) : null}
- {isSessionTarget ? (
- <>
-
-
- {props.showScopeFields !== false ? (
-
- Matching sessions
- {testAllButton}
-
- ) : (
- <>
-
-
- Test with a Session
-
-
-
- {testAllButton}
-
-
-
- Test your evaluator on recent sessions that match your
- scope.
-
- >
- )}
-
- Counting matching sessions…
-
- }
- >
-
-
-
- }>
- {codeEvaluatorId || inlineCode ? (
-
- ) : (
-
- )}
-
- >
- ) : (
- <>
-
- {props.showScopeFields !== false ? (
-
- Matching spans
- {testAllButton}
-
- ) : (
- <>
-
-
- Test with a Span
-
-
-
- {testAllButton}
-
-
-
- Test your evaluator on recent spans that match your scope.
-
- >
- )}
-
- Counting matching spans…
-
- }
- >
-
-
-
- }>
- {codeEvaluatorId || inlineCode ? (
-
- ) : (
-
- )}
-
- >
- )}
+
+
+ }>
+ {codeEvaluatorId || inlineCode ? (
+
+ ) : (
+
+ )}
+
);
@@ -456,16 +323,14 @@ function useMatchedSpanCount({
function TimeWindowSegmentedControl({
value,
onChange,
- size,
}: {
value: TimeWindowPresetId;
onChange: (timeWindow: TimeWindow) => void;
- size?: ComponentProps