Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
05d85c4
feat(search): trace-level AND scope across spans (#3004)
eugeneo17 Sep 18, 2026
66a65e1
refactor(search): address review feedback on trace scope
eugeneo17 Sep 18, 2026
b3cfe62
Merge branch 'main' into feature/3004-trace-scope
eugeneo17 Sep 18, 2026
847b8fc
Merge branch 'main' into feature/3004-trace-scope
eugeneo17 Sep 21, 2026
08c2269
fix(search): address review findings on trace scope
eugeneo17 Sep 22, 2026
77a6f8f
fix(search): make exclusion filters work at trace scope
eugeneo17 Sep 22, 2026
16a92a3
fix(search): correct trace-scope negation and windowed-range membership
eugeneo17 Sep 22, 2026
79dca70
Merge remote-tracking branch 'origin/main' into feature/3004-trace-scope
eugeneo17 Sep 22, 2026
916499e
Merge branch 'main' into feature/3004-trace-scope
eugeneo17 Sep 23, 2026
74d2a6c
Merge branch 'main' into feature/3004-trace-scope
eugeneo17 Sep 24, 2026
9cc2dad
fix(search): keep trace scope out of delta internals and classify neg…
eugeneo17 Sep 29, 2026
eccbf4d
Merge branch 'main' into feature/3004-trace-scope
eugeneo17 Sep 29, 2026
6682dac
perf(search): reuse one SQL parser in isNegatedFilterCondition
eugeneo17 Sep 29, 2026
320f9b1
Merge branch 'main' into feature/3004-trace-scope
eugeneo17 Sep 30, 2026
e2c5d86
fix(search): use GLOBAL IN for trace-scope membership on distributed …
eugeneo17 Oct 2, 2026
69c5d65
fix(search): treat lucene range/group brackets as grouped in negation…
eugeneo17 Oct 2, 2026
a6cb1fa
fix(search): scope the new query-failed banner to trace mode
eugeneo17 Oct 2, 2026
a80c4a2
Merge branch 'main' into feature/3004-trace-scope
eugeneo17 Oct 2, 2026
989fbd9
Merge branch 'main' into feature/3004-trace-scope
eugeneo17 Oct 5, 2026
6c9dccc
Merge branch 'main' into feature/3004-trace-scope
eugeneo17 Oct 6, 2026
63f1116
Merge branch 'main' into feature/3004-trace-scope
eugeneo17 Oct 6, 2026
a9fedab
Merge branch 'main' into feature/3004-trace-scope
eugeneo17 Oct 7, 2026
afdabd9
Merge branch 'main' into feature/3004-trace-scope
eugeneo17 Oct 8, 2026
86a8027
Merge branch 'main' into feature/3004-trace-scope
eugeneo17 Oct 9, 2026
90c2442
Merge branch 'main' into feature/3004-trace-scope
eugeneo17 Oct 19, 2026
9d2df50
Merge remote-tracking branch 'upstream/main' into feature/3004-trace-…
eugeneo17 Oct 28, 2026
66e5410
fix(search): persist search scope and restore span-error retry (#3004)
eugeneo17 Nov 5, 2026
a48e323
Merge branch 'main' into feature/3004-trace-scope
eugeneo17 Nov 11, 2026
8aa2c35
fix(search): keep Trace scope through history sync, saved searches an…
eugeneo17 Nov 17, 2026
5f4ddba
Merge remote-tracking branch 'origin/main' into feature/3004-trace-scope
eugeneo17 Nov 17, 2026
06711f4
Merge remote-tracking branch 'origin/main' into feature/3004-trace-scope
eugeneo17 Nov 23, 2026
0fd3c03
fix(search): address trace-scope review findings
eugeneo17 Nov 24, 2026
d0cf978
Merge remote-tracking branch 'origin/main' into feature/3004-trace-scope
eugeneo17 Nov 24, 2026
ea67a50
Merge remote-tracking branch 'origin/main' into feature/3004-trace-scope
eugeneo17 Nov 30, 2026
c7ac108
fix(search): click the visible scope label in e2e and drop unsafe tes…
eugeneo17 Nov 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .changeset/trace-scope-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
'@hyperdx/common-utils': minor
'@hyperdx/app': minor
---

Add a trace-level scope for search so multi-predicate `AND` can match across the
spans of a trace, not only within a single span.

Search gains a **Span | Trace** scope control. **Span** (the default) is
unchanged: every predicate must hold in the same span. **Trace** matches traces
where the predicates are satisfied by different spans of the same trace. Under
the hood each predicate is rewritten into its own
`TraceId IN (SELECT TraceId FROM <source> WHERE <predicate> AND <time>)` and the
parts are `AND`-composed, with the time filter pushed into every subquery.

Trace scope is fail-closed: it is offered only for trace sources that expose a
trace-id expression, and it resets to Span when the source is switched, so
existing searches and saved queries are unaffected.
31 changes: 31 additions & 0 deletions packages/api/src/models/__tests__/savedSearch.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import mongoose from 'mongoose';

import { SavedSearch } from '@/models/savedSearch';

// Mongoose strict mode silently drops paths the schema does not declare, so
// these build documents in memory (no DB) to pin that searchScope survives.
describe('SavedSearch model searchScope', () => {
const base = {
team: new mongoose.Types.ObjectId(),
source: new mongoose.Types.ObjectId(),
name: 'trace search',
where: 'ServiceName:frontend',
};

it('keeps a Trace scope', () => {
const doc = new SavedSearch({ ...base, searchScope: 'trace' });
expect(doc.searchScope).toBe('trace');
expect(doc.validateSync()).toBeUndefined();
});

it('leaves the scope unset for legacy saved searches', () => {
const doc = new SavedSearch(base);
expect(doc.searchScope).toBeUndefined();
expect(doc.validateSync()).toBeUndefined();
});

it('rejects an unknown scope', () => {
const doc = new SavedSearch({ ...base, searchScope: 'session' });
expect(doc.validateSync()?.errors.searchScope).toBeDefined();
});
});
12 changes: 11 additions & 1 deletion packages/api/src/models/savedSearch.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { SavedSearchSchema } from '@hyperdx/common-utils/dist/types';
import {
SavedSearchSchema,
SearchScopeSchema,
} from '@hyperdx/common-utils/dist/types';
import mongoose, { Schema } from 'mongoose';
import { z } from 'zod/v3';

Expand Down Expand Up @@ -63,6 +66,13 @@ const savedSearchSchema = new Schema<
},
tags: [String],
filters: [{ type: mongoose.Schema.Types.Mixed }],
// Strict mode drops undeclared paths, so a saved Trace search would
// silently reload as Span without this.
searchScope: {
type: String,
enum: SearchScopeSchema.options,
required: false,
},

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

External saved search drops scope

Low Severity

toExternalJSON and the MCP save payload never include searchScope, even though the Mongoose model and SavedSearchSchema now persist it. MCP get/save and any other toExternalJSON consumer omit the field, so a Trace saved search round-trips as Span through those APIs.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit c7ac108. Configure here.

// Immutable: ownership attribution is set once at creation.
createdBy: {
type: mongoose.Schema.Types.ObjectId,
Expand Down
1 change: 1 addition & 0 deletions packages/api/src/tasks/checkAlerts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,7 @@ const getChartConfigFromAlert = (
where: savedSearch.where,
whereLanguage: savedSearch.whereLanguage,
filters: savedSearch.filters?.map(f => ({ ...f })),
searchScope: savedSearch.searchScope,
groupBy: alert.groupBy,
select: ALERT_COUNT_DEFAULT_SELECT,
displayType: DisplayType.Line,
Expand Down
77 changes: 74 additions & 3 deletions packages/app/src/DBSearchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import {
} from '@hyperdx/common-utils/dist/clickhouse';
import { tcFromSource } from '@hyperdx/common-utils/dist/core/metadata';
import { buildSearchChartConfig } from '@hyperdx/common-utils/dist/core/searchChartConfig';
import { resolveTraceScope } from '@hyperdx/common-utils/dist/core/traceScope';
import {
aliasMapToWithClauses,
getReferencedWithClauses,
Expand All @@ -48,12 +49,15 @@ import {
Filter,
isPersistableUserId,
isTraceSource,
SearchScope,
SearchScopeSchema,
SourceKind,
TSource,
} from '@hyperdx/common-utils/dist/types';
import {
ActionIcon,
Anchor,
Badge,
Box,
Breadcrumbs,
Button,
Expand Down Expand Up @@ -144,6 +148,12 @@ import {
useUpdateSavedSearch,
} from '@/savedSearch';
import { useSearchPageFilterState } from '@/searchFilters';
import {
resolveSearchScope,
SEARCH_SCOPE_PARAM,
TRACE_SCOPE_LABEL,
TRACE_ZERO_EMPTY_DESCRIPTION,
} from '@/searchScope';
import { getEventBody, useSource, useSources } from '@/source';
import {
parseRelativeTimeQuery,
Expand Down Expand Up @@ -213,11 +223,12 @@ const LIVE_TAIL_REFRESH_FREQUENCY_OPTIONS = [
const DEFAULT_REFRESH_FREQUENCY = 10000;

const ALLOWED_SOURCE_KINDS = [SourceKind.Log, SourceKind.Trace];
const SearchConfigSchema = z.object({
export const SearchConfigSchema = z.object({
select: z.string(),
source: z.string(),
where: z.string(),
whereLanguage: z.enum(['sql', 'lucene']),
searchScope: SearchScopeSchema.default('span'),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 major — Search scope isn't saved with saved searches, and a stale searchScope=trace URL param carries over into a loaded saved search

SavedSearchSchema (common-utils/src/types.ts:1260) and the save flow have no searchScope. Saving a Trace-scoped search stores it without the scope, so reopening it runs span semantics. Separately, the saved-search load at DBSearchPage.tsx:1251 calls setSearchedConfig with a partial object that omits searchScope. nuqs merges partial updates, so a leftover searchScope=trace in the URL gets applied to the saved search. Fix: persist searchScope on saved searches, and set it explicitly (the saved value, or 'span') whenever a saved search is loaded. The default-source reset at line 1268 needs the same explicit value.

Nothing blocks merge automatically, but a maintainer will expect this fixed if it is a real defect in code this PR changes. If it is about surrounding code, reply and say so instead of patching. Do not widen the PR. How to respond

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 major — Saved searches and alerts silently drop trace scope

searchScope is only kept in the URL. The create/update saved-search payloads (DBSearchPage.tsx:547-587, handleUpdateTags at 1664) and DBSearchPageAlertModal.tsx:502 never send it. After saving, the reload to the saved-search route keeps only the time range. So a search the user saved, or alerted on, at Trace scope comes back as span scope, and checkAlerts/index.ts:803 evaluates it at span. Either persist searchScope on the saved-search model and pass it through to buildSearchChartConfig in checkAlerts, or block save/alert while scope is Trace.

Nothing blocks merge automatically, but a maintainer will expect this fixed if it is a real defect in code this PR changes. If it is about surrounding code, reply and say so instead of patching. Do not widen the PR. How to respond

orderBy: z.string(),
filters: z.array(
z.union([
Expand Down Expand Up @@ -583,6 +594,7 @@ function SaveSearchModalComponent({
source: searchedConfig.source ?? '',
orderBy: searchedConfig.orderBy ?? '',
filters: searchedConfig.filters ?? [],
searchScope: resolveSearchScope(searchedConfig.searchScope),
tags: tags,
},
{
Expand Down Expand Up @@ -611,6 +623,7 @@ function SaveSearchModalComponent({
source: searchedConfig.source ?? '',
orderBy: searchedConfig.orderBy ?? '',
filters: searchedConfig.filters ?? [],
searchScope: resolveSearchScope(searchedConfig.searchScope),
tags: tags,
});

Expand Down Expand Up @@ -833,7 +846,15 @@ function useLiveUpdate({
* and returns a chart config.
*/
function useSearchedConfigToChartConfig(
{ select, source, whereLanguage, where, filters, orderBy }: SearchConfig,
{
select,
source,
whereLanguage,
searchScope,
where,
filters,
orderBy,
}: SearchConfig,
defaultSearchConfig?: Partial<SearchConfig>,
) {
const { data: sourceObj, isLoading } = useSource({
Expand All @@ -850,6 +871,7 @@ function useSearchedConfigToChartConfig(
const chartConfig = buildSearchChartConfig(sourceObj, {
where,
whereLanguage,
searchScope: resolveSearchScope(searchScope),
filters,
select: select || defaultSearchConfig?.select || null,
displayType: DisplayType.Search,
Expand All @@ -870,6 +892,7 @@ function useSearchedConfigToChartConfig(
defaultSearchConfig,
where,
whereLanguage,
searchScope,
defaultOrderBy,
orderBy,
]);
Expand Down Expand Up @@ -951,6 +974,7 @@ const queryStateMap = {
where: parseAsStringEncoded,
select: parseAsStringEncoded,
whereLanguage: parseAsStringEnum<'sql' | 'lucene'>(['sql', 'lucene']),
searchScope: SEARCH_SCOPE_PARAM,
filters: parseAsJsonEncoded<Filter[]>(),
orderBy: parseAsStringEncoded,
};
Expand Down Expand Up @@ -1268,6 +1292,7 @@ function DBSearchPageContent() {
where: searchedConfig.where || '',
whereLanguage:
searchedConfig.whereLanguage ?? getStoredLanguage() ?? 'lucene',
searchScope: resolveSearchScope(searchedConfig.searchScope),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Form resets lose Trace scope

The new searchScope field is missing from the URL-to-form reset call. Whenever searchedConfig changes, that call replaces the form values without the scope. The control then shows Span, and the schema supplies 'span' on the next submit, even if the URL and current results still use Trace.

Include the resolved scope in that reset.

Fix in Claude Code Fix in Conductor Fix in Cursor Fix in Codex

// When source is provided in the URL or in the saved search, don't
// fallback to the default source.
source:
Expand Down Expand Up @@ -1354,6 +1379,7 @@ function DBSearchPageContent() {
source: searchedConfig?.source ?? undefined,
filters: searchedConfig?.filters ?? [],
orderBy: searchedConfig?.orderBy ?? '',
searchScope: resolveSearchScope(searchedConfig?.searchScope),
});
}
}, [searchedConfig, reset, prevSearched]);
Expand Down Expand Up @@ -1384,6 +1410,7 @@ function DBSearchPageContent() {
whereLanguage: savedSearch.whereLanguage as 'sql' | 'lucene',
filters: savedSearch.filters ?? [],
orderBy: savedSearch.orderBy ?? '',
searchScope: resolveSearchScope(savedSearch.searchScope),
});
return;
}
Expand Down Expand Up @@ -1454,11 +1481,20 @@ function DBSearchPageContent() {
onSearch(displayedTimeInputValue);
}
handleSubmit(
({ select, where, whereLanguage, source, filters, orderBy }) => {
({
select,
where,
whereLanguage,
searchScope,
source,
filters,
orderBy,
}) => {
setSearchedConfig({
select,
where,
whereLanguage,
searchScope,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Saved searches lose Trace scope

searchScope reaches the URL but never reaches a saved search. Both save actions omit it, SavedSearchSchema has no field for it, and loading a saved search does not restore it. Saving a Trace search therefore reopens it as Span, dropping matches whose predicates occur on different spans. Creating an alert from that search also evaluates the Span version.

Save and restore the scope, and pass it to the alert query builder.

Fix in Claude Code Fix in Conductor Fix in Cursor Fix in Codex

source,
filters,
orderBy,
Expand Down Expand Up @@ -1751,6 +1787,7 @@ function DBSearchPageContent() {
where: searchedConfig.where ?? '',
whereLanguage:
searchedConfig.whereLanguage ?? getStoredLanguage() ?? 'lucene',
searchScope: resolveSearchScope(searchedConfig.searchScope),
filters: searchedConfig.filters ?? [],
orderBy: searchedConfig.orderBy ?? '',
}),
Expand All @@ -1761,6 +1798,7 @@ function DBSearchPageContent() {
searchedConfig.select,
searchedConfig.where,
searchedConfig.whereLanguage,
searchedConfig.searchScope,
],
);

Expand All @@ -1775,8 +1813,24 @@ function DBSearchPageContent() {
: null;
return { hasQueryError, queryError };
}, [_queryErrors]);
const executedSearchScope = resolveSearchScope(searchedConfig.searchScope);
// Reflect what the query actually did: trace scope only takes effect on a
// trace source that exposes a trace-id expression. The badge/copy key off
// this so they never claim Trace when the rewrite silently fell back to span
// (e.g. scope left at trace while the sidebar was collapsed on a log source).
const traceScopeActive =
executedSearchScope === 'trace' &&
searchedSource != null &&
resolveTraceScope(searchedSource).applicable;
const inputWhere = useWatch({ name: 'where', control });
const inputWhereLanguage = useWatch({ name: 'whereLanguage', control });
const inputSearchScope = useWatch({ name: 'searchScope', control });
const onSearchScopeChange = useCallback(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 minor — Clicking Trace/Span does not re-run the search, unlike the other sidebar controls

onSearchScopeChange only calls setValue. Sidebar filter changes go through handleSetFilters, which also calls debouncedSubmit(). So the user picks Trace in the sidebar and the results, badge and empty state stay span-scoped until they press Enter in the query bar. Call debouncedSubmit() here, as handleSetFilters does.

Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond

(scope: SearchScope) => {
setValue('searchScope', scope, { shouldDirty: true });
},
[setValue],
);
// query suggestion for 'where' if error
const whereSuggestions = useSqlSuggestions({
input: inputWhere,
Expand Down Expand Up @@ -2950,6 +3004,8 @@ function DBSearchPageContent() {
displayedColumns={displayedColumns}
onCollapse={isCompact ? undefined : collapseFilters}
fill={isCompact}
searchScope={resolveSearchScope(inputSearchScope)}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 minor — The scope control only exists inside the filter sidebar, so with the sidebar collapsed users can't see or change an active Trace scope

SearchScopeControl is rendered only when !isFilterSidebarCollapsed, and its reset-on-source-switch effect only runs while mounted, as the traceScopeActive comment admits. With the sidebar collapsed, a searchScope=trace URL applies trace scope with no visible control. Render the control next to the query bar (as the PR description says it is), or move the source-switch reset into DBSearchPage.

Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond

onSearchScopeChange={onSearchScopeChange}
{...searchFilters}
/>
</ErrorBoundary>
Expand Down Expand Up @@ -3105,6 +3161,16 @@ function DBSearchPageContent() {
}
/>
<Group gap="sm" align="center">
{traceScopeActive && (
<Badge
variant="light"
color="blue"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 minor — Scope badge uses the raw Mantine palette (variant="light" color="blue")

The semantic-design-tokens convention says not to use raw Mantine color props for app chrome, and the Click UI convention prefers click-ui Badge for simple primitives. Fix: use click-ui Badge or semantic --color-* tokens so the badge follows both brands and light/dark themes.

Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond

radius="sm"
aria-label={TRACE_SCOPE_LABEL}
>
{TRACE_SCOPE_LABEL}
</Badge>
)}
{traceChartsSource != null && (
<SegmentedControl
size="xs"
Expand Down Expand Up @@ -3348,6 +3414,11 @@ function DBSearchPageContent() {
selectionResetKey={selectionResetKey}
onSelectedRowsChange={onSelectedRowsChange}
onResolvedColumnsChange={onResolvedColumnsChange}
noResultsMessage={

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 major — noResultsMessage is not a prop of DBSqlRowTableWithSideBar, so the trace-zero empty state never renders

Props in packages/app/src/components/DBSqlRowTableWithSidebar.tsx:29-54 has no noResultsMessage, and the empty copy is hardcoded in packages/app/src/components/DBRowTable.tsx:1297 (No results found.). Passing the prop is an excess-property error in JSX (breaks tsc) and is silently dropped at runtime, so getTraceZeroEmptyDescription() is never shown and the new e2e assertion traceZeroEmptyState (packages/app/tests/e2e/features/trace-scope-search.spec.ts:1027) cannot pass. Thread the message through DBSqlRowTableWithSideBar → DBSqlRowTable → DBRowTable and render it with EmptyState per the repo's REQUIRED empty-state rule, or drop the prop.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 critical — noResultsMessage is not a prop of DBSqlRowTableWithSideBar; the trace-zero empty state never renders

Props in packages/app/src/components/DBSqlRowTableWithSidebar.tsx:29-54 has no noResultsMessage (and no rest spread), and DBRowTable hardcodes No results found. at packages/app/src/components/DBRowTable.tsx:1297. So this is a TS error on an excess prop and, even if it compiled, the trace-zero copy is dropped — the new e2e assertion searchPage.traceZeroEmptyState (packages/app/tests/e2e/features/trace-scope-search.spec.ts:911) cannot pass. Add the prop through DBSqlRowTableWithSideBar → DBSqlRowTable down to the no-results branch, and render it via EmptyState per the repository's REQUIRED EmptyState rule rather than the ad-hoc <div>.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 critical — noResultsMessage is not a prop of DBSqlRowTableWithSideBar — type error, and the trace-zero empty state never renders

Props in packages/app/src/components/DBSqlRowTableWithSidebar.tsx:29-57 has no noResultsMessage, so this is a JSX excess-property error (next.config.mjs:121 does not set ignoreBuildErrors, so next build fails), and even ignoring types the string is dropped — DBRowTable.tsx:1345 always renders the hardcoded "No results found." The e2e assertion on searchPage.traceZeroEmptyState (tests/e2e/features/trace-scope-search.spec.ts) therefore cannot pass. Thread an optional noResultsMessage through DBSqlRowTableWithSideBar → DBSqlRowTable → DBRowTable and render it in that empty block (via EmptyState's description, per the EmptyState convention).

Nothing blocks merge automatically, but a maintainer will expect this fixed if it is a real defect in code this PR changes. If it is about surrounding code, reply and say so instead of patching. Do not widen the PR. How to respond

traceScopeActive
? TRACE_ZERO_EMPTY_DESCRIPTION
: undefined
}
Comment on lines +3417 to +3421

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Ad-hoc trace empty state

The new trace-specific zero-result path passes custom text into the table's inline no-results branch. The repository requires all empty and no-data states to use the shared EmptyState component, so this requirement must be satisfied before merging.

Context Used: CLAUDE.md (source)

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Fix in Claude Code Fix in Conductor Fix in Cursor Fix in Codex

/>
)}
</Box>
Expand Down
6 changes: 6 additions & 0 deletions packages/app/src/DBSearchPageAlertModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
scheduleStartAtSchema,
SearchCondition,
SearchConditionLanguage,
SearchScope,
validateAlertScheduleOffsetMinutes,
validateAlertThresholdMax,
zAlertChannels,
Expand Down Expand Up @@ -164,6 +165,7 @@ const AlertForm = ({
where,
whereLanguage,
filters,
searchScope,
select,
defaultValues,
loading,
Expand All @@ -179,6 +181,7 @@ const AlertForm = ({
where?: SearchCondition | null;
whereLanguage?: SearchConditionLanguage | null;
filters?: Filter[] | null;
searchScope?: SearchScope | null;
select?: string | null;
defaultValues?: null | AlertWithCreatedBy;
loading?: boolean;
Expand Down Expand Up @@ -475,6 +478,7 @@ const AlertForm = ({
where={where}
whereLanguage={whereLanguage}
filters={filters}
searchScope={searchScope}
select={select}
interval={interval}
groupBy={groupByValue}
Expand Down Expand Up @@ -578,6 +582,7 @@ export const DBSearchPageAlertModal = ({
source: searchedConfig.source ?? '',
orderBy: searchedConfig.orderBy ?? '',
filters: searchedConfig.filters ?? [],
searchScope: searchedConfig.searchScope ?? undefined,
tags: newSavedSearchTags,
});
await createAlert.mutateAsync({
Expand Down Expand Up @@ -712,6 +717,7 @@ export const DBSearchPageAlertModal = ({
where={searchedConfig?.where}
whereLanguage={searchedConfig?.whereLanguage}
filters={searchedConfig?.filters}
searchScope={searchedConfig?.searchScope}
select={searchedConfig?.select}
defaultValues={
activeIndex === 'stage'
Expand Down
Loading
Loading