feat: add environment filtering across all APIs and UI
Backend: Added optional `environment` query parameter to catalog, search, stats, timeseries, punchcard, top-errors, logs, and agents endpoints. ClickHouse queries filter by environment when specified (literal SQL for AggregatingMergeTree, ? binds for raw tables). StatsStore interface methods all accept environment parameter. UI: Added EnvironmentSelector component (compact native select). LayoutShell extracts distinct environments from agent data and passes selected environment to catalog and agent queries via URL search param (?env=). TopBar shows current environment label. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
10
ui/src/api/schema.d.ts
vendored
10
ui/src/api/schema.d.ts
vendored
@@ -1502,6 +1502,7 @@ export interface components {
|
||||
limit?: number;
|
||||
sortField?: string;
|
||||
sortDir?: string;
|
||||
environment?: string;
|
||||
};
|
||||
ExecutionSummary: {
|
||||
executionId: string;
|
||||
@@ -1960,6 +1961,7 @@ export interface components {
|
||||
instanceId: string;
|
||||
displayName: string;
|
||||
applicationId: string;
|
||||
environmentId?: string;
|
||||
status: string;
|
||||
routeIds: string[];
|
||||
/** Format: date-time */
|
||||
@@ -2773,6 +2775,7 @@ export interface operations {
|
||||
agentId?: string;
|
||||
processorType?: string;
|
||||
application?: string;
|
||||
environment?: string;
|
||||
offset?: number;
|
||||
limit?: number;
|
||||
sortField?: string;
|
||||
@@ -3795,6 +3798,7 @@ export interface operations {
|
||||
to?: string;
|
||||
routeId?: string;
|
||||
application?: string;
|
||||
environment?: string;
|
||||
};
|
||||
header?: never;
|
||||
path?: never;
|
||||
@@ -3821,6 +3825,7 @@ export interface operations {
|
||||
buckets?: number;
|
||||
routeId?: string;
|
||||
application?: string;
|
||||
environment?: string;
|
||||
};
|
||||
header?: never;
|
||||
path?: never;
|
||||
@@ -3846,6 +3851,7 @@ export interface operations {
|
||||
to?: string;
|
||||
buckets?: number;
|
||||
application: string;
|
||||
environment?: string;
|
||||
};
|
||||
header?: never;
|
||||
path?: never;
|
||||
@@ -3872,6 +3878,7 @@ export interface operations {
|
||||
from: string;
|
||||
to?: string;
|
||||
buckets?: number;
|
||||
environment?: string;
|
||||
};
|
||||
header?: never;
|
||||
path?: never;
|
||||
@@ -3896,6 +3903,7 @@ export interface operations {
|
||||
parameters: {
|
||||
query?: {
|
||||
application?: string;
|
||||
environment?: string;
|
||||
};
|
||||
header?: never;
|
||||
path?: never;
|
||||
@@ -3921,6 +3929,7 @@ export interface operations {
|
||||
to?: string;
|
||||
application?: string;
|
||||
routeId?: string;
|
||||
environment?: string;
|
||||
limit?: number;
|
||||
};
|
||||
header?: never;
|
||||
@@ -4334,6 +4343,7 @@ export interface operations {
|
||||
query?: {
|
||||
status?: string;
|
||||
application?: string;
|
||||
environment?: string;
|
||||
};
|
||||
header?: never;
|
||||
path?: never;
|
||||
|
||||
Reference in New Issue
Block a user