fix: resolve 4 TypeScript compilation errors from CI
All checks were successful
CI / cleanup-branch (push) Has been skipped
CI / build (push) Successful in 1m56s
CI / cleanup-branch (pull_request) Has been skipped
CI / build (pull_request) Successful in 1m58s
CI / docker (pull_request) Has been skipped
CI / deploy (pull_request) Has been skipped
CI / deploy-feature (pull_request) Has been skipped
CI / docker (push) Successful in 1m12s
CI / deploy (push) Has been skipped
CI / deploy-feature (push) Successful in 37s

- AuditLogPage: e.details -> e.detail (correct property name)
- AgentInstance: BarChart x: number -> x: String(i) (BarSeries requires string)
- AppsTab: add missing CatalogRoute import
- Dashboard: wrap MonoText in span for title attribute (MonoText lacks title prop)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-09 18:57:42 +02:00
parent 4bc38453fe
commit 191d4f39c1
4 changed files with 6 additions and 7 deletions

View File

@@ -21,7 +21,7 @@ const CATEGORIES = [
function exportCsv(events: AuditEvent[]) {
const headers = ['Timestamp', 'User', 'Category', 'Action', 'Target', 'Result', 'Details'];
const rows = events.map(e => [
e.timestamp, e.username, e.category, e.action, e.target, e.result, e.details ?? '',
e.timestamp, e.username, e.category, e.action, e.target, e.result, e.detail ?? '',
]);
const csv = [headers, ...rows].map(r => r.map(c => `"${String(c).replace(/"/g, '""')}"`).join(',')).join('\n');
const blob = new Blob([csv], { type: 'text/csv' });

View File

@@ -116,7 +116,7 @@ export default function AgentInstance() {
const gcSeries = useMemo(() => {
const pts = jvmMetrics?.metrics?.['jvm.gc.time'];
if (!pts?.length) return null;
return [{ label: 'GC ms', data: pts.map((p: any, i: number) => ({ x: i, y: p.value })) }];
return [{ label: 'GC ms', data: pts.map((p: any, i: number) => ({ x: String(i), y: p.value })) }];
}, [jvmMetrics]);
const throughputSeries = useMemo(

View File

@@ -36,7 +36,7 @@ import type { Environment } from '../../api/queries/admin/environments';
import { useApplicationConfig, useUpdateApplicationConfig, useProcessorRouteMapping } from '../../api/queries/commands';
import type { ApplicationConfig, TapDefinition } from '../../api/queries/commands';
import { useCatalog } from '../../api/queries/catalog';
import type { CatalogApp } from '../../api/queries/catalog';
import type { CatalogApp, CatalogRoute } from '../../api/queries/catalog';
import { DeploymentProgress } from '../../components/DeploymentProgress';
import { timeAgo } from '../../utils/format-utils';
import { applyTracedProcessorUpdate, applyRouteRecordingUpdate } from '../../utils/config-draft-utils';

View File

@@ -119,8 +119,7 @@ function buildColumns(hasAttributes: boolean): Column<Row>[] {
header: 'Exchange ID',
sortable: true,
render: (_: unknown, row: Row) => (
<MonoText
size="xs"
<span
title={row.executionId}
style={{ cursor: 'pointer' }}
onClick={(e: React.MouseEvent) => {
@@ -128,8 +127,8 @@ function buildColumns(hasAttributes: boolean): Column<Row>[] {
navigator.clipboard.writeText(row.executionId);
}}
>
...{row.executionId.slice(-8)}
</MonoText>
<MonoText size="xs">...{row.executionId.slice(-8)}</MonoText>
</span>
),
},
{