meyi-insight-ui-dev 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/components/common/PageSkeleton.d.ts +10 -0
  2. package/dist/components/data-table/toolbar.d.ts +3 -1
  3. package/dist/components/ui/alert-dialog.d.ts +14 -0
  4. package/dist/components/ui/badge.d.ts +1 -1
  5. package/dist/components/ui/button.d.ts +2 -2
  6. package/dist/components/ui/checkbox.d.ts +4 -0
  7. package/dist/components/ui/multi-select.d.ts +15 -0
  8. package/dist/components/ui/single-select.d.ts +15 -0
  9. package/dist/components/ui/switch.d.ts +4 -0
  10. package/dist/features/alerts/components/AlertFilters.d.ts +15 -0
  11. package/dist/features/alerts/components/ProcessingLifecycle.d.ts +5 -0
  12. package/dist/features/alerts/components/alerts-columns.d.ts +1 -0
  13. package/dist/features/alerts/components/alerts-table.d.ts +6 -9
  14. package/dist/features/alerts/detail.d.ts +7 -0
  15. package/dist/features/alerts/index.d.ts +2 -1
  16. package/dist/features/connectors/add-wizard/AddConnectorConfigureStep.d.ts +8 -0
  17. package/dist/features/connectors/add-wizard/AddConnectorDeployStep.d.ts +11 -0
  18. package/dist/features/connectors/add-wizard/AddConnectorOverviewStep.d.ts +4 -0
  19. package/dist/features/connectors/add-wizard/AddConnectorSourceStep.d.ts +5 -0
  20. package/dist/features/connectors/add-wizard/AddConnectorWizard.d.ts +5 -0
  21. package/dist/features/connectors/add-wizard/add-connector-options.d.ts +10 -0
  22. package/dist/features/connectors/components/ConnectorFilters.d.ts +5 -2
  23. package/dist/features/connectors/components/{InsightConnectorCard.d.ts → ConnectorGroupedList.d.ts} +7 -4
  24. package/dist/features/connectors/components/ConnectorPrometheusSetupDialog.d.ts +11 -1
  25. package/dist/features/connectors/detail/ConnectorAlarmsTab.d.ts +4 -0
  26. package/dist/features/connectors/detail/ConnectorConfigurationTab.d.ts +10 -0
  27. package/dist/features/connectors/detail/ConnectorDetailHeader.d.ts +11 -0
  28. package/dist/features/connectors/detail/ConnectorDetailPage.d.ts +5 -0
  29. package/dist/features/connectors/detail/ConnectorDetailTabs.d.ts +6 -0
  30. package/dist/features/connectors/detail/ConnectorLogsTab.d.ts +6 -0
  31. package/dist/features/connectors/detail/ConnectorOverviewTab.d.ts +4 -0
  32. package/dist/features/connectors/detail/ConnectorSetupTab.d.ts +10 -0
  33. package/dist/features/connectors/detail/ConnectorTestTab.d.ts +6 -0
  34. package/dist/features/connectors/detail/connector-detail-utils.d.ts +18 -0
  35. package/dist/features/incidents/analytics.d.ts +1 -0
  36. package/dist/features/incidents/components/IncidentFilters.d.ts +4 -1
  37. package/dist/features/incidents/components/IncidentForm.d.ts +4 -0
  38. package/dist/features/incidents/components/InsightStatusBadge.d.ts +3 -0
  39. package/dist/features/incidents/components/incidents-columns.d.ts +0 -1
  40. package/dist/features/incidents/components/incidents-table.d.ts +3 -4
  41. package/dist/features/incidents/dashboard.d.ts +5 -0
  42. package/dist/features/pipeline/PipelineRuleEditor.d.ts +9 -0
  43. package/dist/features/pipeline/dedup.d.ts +4 -0
  44. package/dist/features/pipeline/editor-dedup.d.ts +4 -0
  45. package/dist/features/pipeline/editor-grouping.d.ts +4 -0
  46. package/dist/features/pipeline/editor-normalization.d.ts +4 -0
  47. package/dist/features/pipeline/grouping.d.ts +4 -0
  48. package/dist/features/pipeline/normalization.d.ts +1 -0
  49. package/dist/features/projects/components/ProjectFilters.d.ts +9 -0
  50. package/dist/features/projects/components/projects-table.d.ts +4 -3
  51. package/dist/features/settings/components/NotificationProvidersManager.d.ts +1 -0
  52. package/dist/features/settings/index.d.ts +5 -1
  53. package/dist/features/sop/components/SopFilters.d.ts +13 -0
  54. package/dist/features/sop/components/sop-table.d.ts +4 -7
  55. package/dist/features/workflows/components/WorkflowExecutionsDrawer.d.ts +6 -0
  56. package/dist/features/workflows/components/WorkflowFilters.d.ts +11 -0
  57. package/dist/features/workflows/components/WorkflowFormHelper.d.ts +6 -0
  58. package/dist/features/workflows/components/workflows-columns.d.ts +8 -0
  59. package/dist/features/workflows/components/workflows-table.d.ts +17 -0
  60. package/dist/features/workflows/editor.d.ts +4 -0
  61. package/dist/features/workflows/index.d.ts +4 -0
  62. package/dist/hooks/useInsightPolling.d.ts +1 -0
  63. package/dist/index.d.ts +17 -3
  64. package/dist/index.js +244 -98
  65. package/dist/index.mjs +38316 -29107
  66. package/dist/router.d.ts +1 -1
  67. package/dist/services/insight.d.ts +273 -1
  68. package/dist/services/workflow.d.ts +13 -0
  69. package/dist/style.css +1 -1
  70. package/dist/types.d.ts +131 -3
  71. package/package.json +9 -1
  72. package/dist/features/alerts/components/InsightAlertCard.d.ts +0 -13
  73. package/dist/features/incidents/components/InsightIncidentCard.d.ts +0 -8
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type InsightConnectorType = 'meyi_pulse' | 'grafana' | 'datadog' | 'prometheus' | 'cloudwatch' | 'pagerduty' | 'custom';
1
+ export type InsightConnectorType = 'meyi_pulse' | 'grafana' | 'datadog' | 'prometheus' | 'cloudwatch' | 'cloudtrail' | 'pagerduty' | 'custom';
2
2
  export type InsightConnector = {
3
3
  id: string;
4
4
  name: string;
@@ -13,6 +13,7 @@ export type InsightConnector = {
13
13
  awsRegion?: string | null;
14
14
  awsSelectedAlarmNames?: string[];
15
15
  awsSelectedMetricKeys?: string[];
16
+ awsCreateNewTrail?: boolean;
16
17
  awsDeploymentStatus?: 'not_started' | 'pending' | 'deployed' | 'failed' | 'deleted' | string;
17
18
  awsDeploymentStatusReason?: string | null;
18
19
  awsStackName?: string | null;
@@ -24,7 +25,9 @@ export type InsightConnector = {
24
25
  grafanaSetupStatusReason?: string | null;
25
26
  prometheusEnvironment?: string | null;
26
27
  prometheusReceiverName?: string | null;
27
- prometheusSetupStatus?: 'not_started' | 'generated' | 'downloaded' | 'configured' | 'failed' | string;
28
+ prometheusBaseUrl?: string | null;
29
+ alertmanagerBaseUrl?: string | null;
30
+ prometheusSetupStatus?: 'not_started' | 'generated' | 'downloaded' | 'checking' | 'configured' | 'failed' | 'not_yet' | string;
28
31
  prometheusSetupStatusReason?: string | null;
29
32
  deliveryStatus?: 'unknown' | 'healthy' | 'failed' | string;
30
33
  lastWebhookReceivedAt?: string | null;
@@ -61,6 +64,38 @@ export type InsightConnectorTokenPolicy = {
61
64
  expiresAt: string | null;
62
65
  defaultTtlDays: number;
63
66
  };
67
+ export type InsightConnectorOverview = {
68
+ connector: InsightConnector;
69
+ summary: {
70
+ status: string;
71
+ lastAlarmAt: string | null;
72
+ alarmsToday: number;
73
+ errorsLastHour: number;
74
+ weeklyRate: {
75
+ day: string;
76
+ count: number;
77
+ }[];
78
+ webhookEndpoint: string;
79
+ webhookPath?: string;
80
+ authTokenPreview: string | null;
81
+ };
82
+ };
83
+ export type InsightConnectorLog = {
84
+ id: string;
85
+ timestamp: string;
86
+ httpStatus: number;
87
+ sourceIp: string;
88
+ payloadSize: number;
89
+ result: string;
90
+ };
91
+ export type InsightConnectorTestResult = {
92
+ ok: boolean;
93
+ connectorId: string;
94
+ accepted: boolean;
95
+ createsAlarm?: boolean;
96
+ receivedAt: string;
97
+ envelope: Record<string, any>;
98
+ };
64
99
  export type InsightCloudWatchDiscoverResult = {
65
100
  ok: boolean;
66
101
  connector: {
@@ -169,6 +204,31 @@ export type InsightCloudWatchConsoleDeployResult = {
169
204
  resources: string[];
170
205
  };
171
206
  };
207
+ export type InsightCloudTrailConsoleDeploy = {
208
+ ok: boolean;
209
+ connector: {
210
+ id: string;
211
+ name: string;
212
+ type: InsightConnectorType;
213
+ };
214
+ webhook: {
215
+ path: string;
216
+ url: string;
217
+ };
218
+ deployment: {
219
+ method: string;
220
+ region: string;
221
+ stackName: string;
222
+ createNewTrail: boolean;
223
+ deploymentStatusUrl: string;
224
+ templateUrl: string;
225
+ templateDownloadUrl: string;
226
+ quickCreateUrl: string;
227
+ isPublicTemplateUrl: boolean;
228
+ canPrefillTemplateUrl?: boolean;
229
+ resources: string[];
230
+ };
231
+ };
172
232
  export type InsightCloudWatchLambdaOnboarding = {
173
233
  ok: boolean;
174
234
  connector: {
@@ -269,6 +329,10 @@ export type InsightPrometheusOnboarding = {
269
329
  };
270
330
  defaults: {
271
331
  receiverName: string;
332
+ prometheusBaseUrl?: string;
333
+ alertmanagerBaseUrl?: string;
334
+ setupStatus?: string;
335
+ setupStatusReason?: string | null;
272
336
  dockerCommand?: string;
273
337
  linuxCommand?: string;
274
338
  kubernetesCommand?: string;
@@ -343,8 +407,16 @@ export type InsightAlert = {
343
407
  incidentId?: string;
344
408
  incidentAssigneeId?: string | null;
345
409
  downTime: string;
410
+ dupCount?: number;
411
+ lastDupAt?: string | null;
346
412
  createdAt: string;
347
413
  updatedAt: string;
414
+ pipelineStatus?: string | null;
415
+ fingerprint?: string | null;
416
+ dedupKey?: string | null;
417
+ groupId?: string | null;
418
+ additionalConfiguration?: Record<string, any>;
419
+ rawPayload?: unknown;
348
420
  };
349
421
  export type InsightAlertSummary = {
350
422
  total: number;
@@ -374,6 +446,15 @@ export type InsightSettings = {
374
446
  awsBedrockRegion?: string;
375
447
  updatedAt: string;
376
448
  };
449
+ export type InsightNotificationProvider = {
450
+ id: string;
451
+ provider_name: string;
452
+ display_name: string;
453
+ icon?: string;
454
+ is_enabled?: boolean;
455
+ config?: Record<string, any>;
456
+ description?: string;
457
+ };
377
458
  export type InsightIncidentComment = {
378
459
  id: string;
379
460
  message: string;
@@ -392,6 +473,7 @@ export type InsightIncident = {
392
473
  projectTag?: string;
393
474
  downTime: string | null;
394
475
  resolvedAt?: string;
476
+ status: "open" | "in_progress" | "resolved" | "closed";
395
477
  analysisStatus: "pending" | "triggered" | "processing" | "completed" | "failed";
396
478
  progressPercent: number;
397
479
  analysisTriggeredAt?: string | null;
@@ -403,9 +485,20 @@ export type InsightIncident = {
403
485
  alertId?: string | null;
404
486
  assigneeIds?: string[];
405
487
  comments?: InsightIncidentComment[];
488
+ events?: InsightIncidentEvent[];
406
489
  createdAt: string;
407
490
  updatedAt: string;
408
491
  };
492
+ export type InsightIncidentEvent = {
493
+ id: string;
494
+ incidentId: string;
495
+ type: "created" | "status_change" | "assigned" | "analysis" | "comment" | string;
496
+ actor?: string | null;
497
+ message?: string | null;
498
+ beforeValue?: string | null;
499
+ afterValue?: string | null;
500
+ createdAt: string;
501
+ };
409
502
  export type InsightAnalysisResult = {
410
503
  event_id: string;
411
504
  instance_id: string;
@@ -477,6 +570,7 @@ export type InsightAnalysisResult = {
477
570
  };
478
571
  is_complete: boolean;
479
572
  is_failed: boolean;
573
+ error?: string;
480
574
  };
481
575
  export type NewInsightAnalysisResult = {
482
576
  summary?: string;
@@ -501,6 +595,7 @@ export type NewInsightAnalysisResult = {
501
595
  dependency_impact?: string[];
502
596
  probable_root_cause?: string;
503
597
  recommended_actions?: string[];
598
+ error?: string;
504
599
  };
505
600
  export type NewRemediationSteps = {
506
601
  immediate_actions?: string[];
@@ -511,7 +606,7 @@ export type NewRemediationSteps = {
511
606
  /** @deprecated Use InsightConnector */
512
607
  export type CloudConnector = InsightConnector;
513
608
  export type InsightSopSeverity = 'critical' | 'high' | 'medium' | 'low';
514
- export type InsightSopStatus = 'draft' | 'pending' | 'approved' | 'generating';
609
+ export type InsightSopStatus = 'draft' | 'pending' | 'approved' | 'generating' | 'failed';
515
610
  export type InsightSop = {
516
611
  id: string;
517
612
  sopId: string;
@@ -527,7 +622,40 @@ export type InsightSop = {
527
622
  source?: string;
528
623
  project?: string;
529
624
  steps?: string;
625
+ error_response?: string | null;
530
626
  createdBy?: string;
531
627
  createdAt: string;
532
628
  updatedAt: string;
533
629
  };
630
+ export type InsightWorkflow = {
631
+ id: string;
632
+ name: string;
633
+ isActive: boolean;
634
+ priority: number;
635
+ yamlDefinition: string;
636
+ createdAt: string;
637
+ updatedAt: string;
638
+ };
639
+ export type YamlParseResult = {
640
+ ok: boolean;
641
+ definition?: {
642
+ name: string;
643
+ description?: string;
644
+ priority: number;
645
+ active: boolean;
646
+ conditions: any[];
647
+ actions: any[];
648
+ };
649
+ errors?: string[];
650
+ };
651
+ export type InsightWorkflowExecution = {
652
+ id: string;
653
+ workflowId: string;
654
+ alertId: string | null;
655
+ status: string;
656
+ actionsExecuted: any[];
657
+ errorMessage: string | null;
658
+ triggeredAt: string;
659
+ completedAt: string | null;
660
+ alertName?: string;
661
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "meyi-insight-ui-dev",
3
3
  "private": false,
4
- "version": "1.0.1",
4
+ "version": "1.0.3",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",
@@ -28,6 +28,9 @@
28
28
  "react-dom": "^19.0.0"
29
29
  },
30
30
  "dependencies": {
31
+ "@monaco-editor/react": "^4.7.0",
32
+ "@radix-ui/react-alert-dialog": "^1.1.16",
33
+ "@radix-ui/react-checkbox": "^1.3.4",
31
34
  "@radix-ui/react-dialog": "^1.1.15",
32
35
  "@radix-ui/react-dropdown-menu": "^2.1.16",
33
36
  "@radix-ui/react-label": "^2.1.8",
@@ -36,16 +39,20 @@
36
39
  "@radix-ui/react-select": "^2.2.0",
37
40
  "@radix-ui/react-separator": "^1.1.0",
38
41
  "@radix-ui/react-slot": "^1.2.4",
42
+ "@radix-ui/react-switch": "^1.3.0",
39
43
  "@radix-ui/react-tabs": "^1.1.0",
40
44
  "@radix-ui/react-tooltip": "^1.2.0",
41
45
  "@tanstack/react-query": "^5.0.0",
42
46
  "@tanstack/react-router": "^1.132.0",
43
47
  "@tanstack/react-table": "^8.21.3",
44
48
  "@uiw/react-md-editor": "^4.1.1",
49
+ "@xyflow/react": "^12.11.0",
45
50
  "axios": "^1.12.0",
46
51
  "class-variance-authority": "^0.7.0",
47
52
  "clsx": "^2.1.0",
48
53
  "cmdk": "^1.1.1",
54
+ "date-fns": "^4.4.0",
55
+ "js-yaml": "^4.2.0",
49
56
  "lucide-react": "^0.545.0",
50
57
  "next-remove-imports": "^1.0.13",
51
58
  "socket.io-client": "^4.8.1",
@@ -56,6 +63,7 @@
56
63
  },
57
64
  "devDependencies": {
58
65
  "@tailwindcss/vite": "^4.1.0",
66
+ "@types/js-yaml": "^4.0.9",
59
67
  "@types/node": "^20.0.0",
60
68
  "@types/react": "^19.0.0",
61
69
  "@types/react-dom": "^19.0.0",
@@ -1,13 +0,0 @@
1
- import { InsightAlert } from '../../../types.js';
2
- interface InsightAlertCardProps {
3
- alert: InsightAlert;
4
- deletingId: string | null;
5
- onViewIncident: (id: string) => void;
6
- onConvert: (alert: InsightAlert) => void;
7
- onGenerateSop?: (alert: InsightAlert) => void;
8
- generatingSopId?: string | null;
9
- sopId?: string | null;
10
- onDelete: (id: string) => void;
11
- }
12
- export declare function InsightAlertCard({ alert, deletingId, onViewIncident, onConvert, onGenerateSop, generatingSopId, sopId, onDelete, }: InsightAlertCardProps): import("react/jsx-runtime").JSX.Element;
13
- export {};
@@ -1,8 +0,0 @@
1
- import { InsightIncident } from '../../../types.js';
2
- interface Props {
3
- incident: InsightIncident;
4
- onViewResult: (id: string) => void;
5
- onAssignClick: (incident: InsightIncident) => void;
6
- }
7
- export declare function InsightIncidentCard({ incident: init, onViewResult, onAssignClick }: Props): import("react/jsx-runtime").JSX.Element;
8
- export {};