Improve frontend 5

This commit is contained in:
Urtzi Alfaro
2025-11-20 19:14:49 +01:00
parent 29e6ddcea9
commit 4433b66f25
30 changed files with 3649 additions and 600 deletions

View File

@@ -75,11 +75,17 @@ export interface OrchestrationSummary {
userActionsRequired: number;
durationSeconds: number | null;
aiAssisted: boolean;
message?: string;
message_i18n?: {
key: string;
params?: Record<string, any>;
}; // i18n data for message
}
export interface ActionButton {
label: string;
label_i18n: {
key: string;
params?: Record<string, any>;
}; // i18n data for button label
type: 'primary' | 'secondary' | 'tertiary';
action: string;
}
@@ -88,10 +94,25 @@ export interface ActionItem {
id: string;
type: string;
urgency: 'critical' | 'important' | 'normal';
title: string;
subtitle: string;
reasoning?: string; // Deprecated: Use reasoning_data instead
consequence?: string; // Deprecated: Use reasoning_data instead
title?: string; // Legacy field kept for alerts
title_i18n?: {
key: string;
params?: Record<string, any>;
}; // i18n data for title
subtitle?: string; // Legacy field kept for alerts
subtitle_i18n?: {
key: string;
params?: Record<string, any>;
}; // i18n data for subtitle
reasoning?: string; // Legacy field kept for alerts
reasoning_i18n?: {
key: string;
params?: Record<string, any>;
}; // i18n data for reasoning
consequence_i18n: {
key: string;
params?: Record<string, any>;
}; // i18n data for consequence
reasoning_data?: any; // Structured reasoning data for i18n translation
amount?: number;
currency?: string;
@@ -123,6 +144,14 @@ export interface ProductionTimelineItem {
priority: string;
reasoning?: string; // Deprecated: Use reasoning_data instead
reasoning_data?: any; // Structured reasoning data for i18n translation
reasoning_i18n?: {
key: string;
params?: Record<string, any>;
}; // i18n data for reasoning
status_i18n?: {
key: string;
params?: Record<string, any>;
}; // i18n data for status text
}
export interface ProductionTimeline {
@@ -134,10 +163,21 @@ export interface ProductionTimeline {
}
export interface InsightCard {
label: string;
value: string;
detail: string;
color: 'green' | 'amber' | 'red';
i18n: {
label: {
key: string;
params?: Record<string, any>;
};
value: {
key: string;
params?: Record<string, any>;
};
detail: {
key: string;
params?: Record<string, any>;
} | null;
};
}
export interface Insights {