feat: add environment filtering across all APIs and UI
Some checks failed
CI / cleanup-branch (push) Has been skipped
CI / build (push) Successful in 1m8s
CI / deploy (push) Has been cancelled
CI / deploy-feature (push) Has been cancelled
CI / docker (push) Has been cancelled

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:
hsiegeln
2026-04-04 15:42:26 +02:00
parent babdc1d7a4
commit 694d0eef59
25 changed files with 439 additions and 160 deletions

View File

@@ -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;