meyi-insight-ui-dev 1.0.2 → 1.0.4
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.
- package/dist/components/common/PageSkeleton.d.ts +10 -0
- package/dist/components/data-table/toolbar.d.ts +3 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/multi-select.d.ts +15 -0
- package/dist/components/ui/single-select.d.ts +15 -0
- package/dist/features/alerts/components/AlertFilters.d.ts +15 -0
- package/dist/features/alerts/components/ProcessingLifecycle.d.ts +5 -0
- package/dist/features/alerts/components/alerts-columns.d.ts +1 -0
- package/dist/features/alerts/components/alerts-table.d.ts +6 -9
- package/dist/features/alerts/detail.d.ts +7 -0
- package/dist/features/alerts/index.d.ts +2 -1
- package/dist/features/incidents/analytics.d.ts +1 -0
- package/dist/features/incidents/components/IncidentFilters.d.ts +4 -1
- package/dist/features/incidents/components/IncidentForm.d.ts +4 -0
- package/dist/features/incidents/components/InsightStatusBadge.d.ts +3 -0
- package/dist/features/incidents/components/incidents-columns.d.ts +0 -1
- package/dist/features/incidents/components/incidents-table.d.ts +3 -4
- package/dist/features/incidents/dashboard.d.ts +5 -0
- package/dist/features/pipeline/PipelineRuleEditor.d.ts +9 -0
- package/dist/features/pipeline/dedup.d.ts +4 -0
- package/dist/features/pipeline/editor-dedup.d.ts +4 -0
- package/dist/features/pipeline/editor-grouping.d.ts +4 -0
- package/dist/features/pipeline/editor-normalization.d.ts +4 -0
- package/dist/features/pipeline/grouping.d.ts +4 -0
- package/dist/features/pipeline/normalization.d.ts +1 -0
- package/dist/features/projects/components/ProjectFilters.d.ts +9 -0
- package/dist/features/projects/components/projects-table.d.ts +4 -3
- package/dist/features/settings/components/NotificationProvidersManager.d.ts +1 -0
- package/dist/features/settings/index.d.ts +5 -1
- package/dist/features/sop/components/SopFilters.d.ts +13 -0
- package/dist/features/sop/components/sop-table.d.ts +4 -7
- package/dist/features/sources/add-wizard/AddSourceConfigureStep.d.ts +8 -0
- package/dist/features/sources/add-wizard/AddSourceDeployStep.d.ts +11 -0
- package/dist/features/sources/add-wizard/AddSourceOverviewStep.d.ts +4 -0
- package/dist/features/sources/add-wizard/AddSourceSourceStep.d.ts +5 -0
- package/dist/features/{connectors/prometheus-wizard/PrometheusConnectorWizard.d.ts → sources/add-wizard/AddSourceWizard.d.ts} +1 -1
- package/dist/features/sources/add-wizard/add-source-options.d.ts +10 -0
- package/dist/features/sources/cloudwatch-wizard/CloudWatchSourceWizard.d.ts +8 -0
- package/dist/features/sources/components/InsightSourceDeleteDialog.d.ts +9 -0
- package/dist/features/sources/components/InsightSourceForm.d.ts +18 -0
- package/dist/features/{connectors/components/ConnectorAwsOnboardingDialog.d.ts → sources/components/SourceAwsOnboardingDialog.d.ts} +1 -1
- package/dist/features/{connectors/components/ConnectorDatadogSetupDialog.d.ts → sources/components/SourceDatadogSetupDialog.d.ts} +2 -2
- package/dist/features/sources/components/SourceDetailsDialog.d.ts +8 -0
- package/dist/features/sources/components/SourceFilters.d.ts +21 -0
- package/dist/features/{connectors/components/ConnectorGrafanaSetupDialog.d.ts → sources/components/SourceGrafanaSetupDialog.d.ts} +2 -2
- package/dist/features/sources/components/SourceGroupedList.d.ts +18 -0
- package/dist/features/{connectors/components/ConnectorPrometheusSetupDialog.d.ts → sources/components/SourcePrometheusSetupDialog.d.ts} +2 -2
- package/dist/features/sources/components/SourceTokenPolicyDialog.d.ts +11 -0
- package/dist/features/sources/components/WebhookSuccessModal.d.ts +6 -0
- package/dist/features/sources/detail/SourceAlarmsTab.d.ts +4 -0
- package/dist/features/sources/detail/SourceConfigurationTab.d.ts +10 -0
- package/dist/features/sources/detail/SourceDetailHeader.d.ts +11 -0
- package/dist/features/sources/detail/SourceDetailPage.d.ts +5 -0
- package/dist/features/sources/detail/SourceDetailTabs.d.ts +6 -0
- package/dist/features/sources/detail/SourceLogsTab.d.ts +6 -0
- package/dist/features/sources/detail/SourceOverviewTab.d.ts +4 -0
- package/dist/features/sources/detail/SourceSetupTab.d.ts +10 -0
- package/dist/features/sources/detail/SourceTestTab.d.ts +6 -0
- package/dist/features/sources/detail/source-detail-utils.d.ts +18 -0
- package/dist/features/sources/grafana-wizard/GrafanaSourceWizard.d.ts +7 -0
- package/dist/features/sources/index.d.ts +1 -0
- package/dist/features/sources/prometheus-wizard/PrometheusSourceWizard.d.ts +5 -0
- package/dist/features/sources/source-selection/SourceSourcePickerDialog.d.ts +6 -0
- package/dist/features/workflows/components/WorkflowFilters.d.ts +11 -0
- package/dist/features/workflows/components/WorkflowFormHelper.d.ts +6 -0
- package/dist/features/workflows/components/workflows-columns.d.ts +8 -0
- package/dist/features/workflows/components/workflows-table.d.ts +17 -0
- package/dist/features/workflows/editor.d.ts +4 -0
- package/dist/features/workflows/index.d.ts +4 -1
- package/dist/hooks/useInsightPolling.d.ts +1 -0
- package/dist/index.d.ts +17 -3
- package/dist/index.js +246 -112
- package/dist/index.mjs +71807 -73140
- package/dist/router.d.ts +1 -1
- package/dist/services/insight.d.ts +285 -21
- package/dist/services/workflow.d.ts +2 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +128 -51
- package/package.json +4 -1
- package/dist/features/alerts/components/InsightAlertCard.d.ts +0 -13
- package/dist/features/connectors/cloudwatch-wizard/CloudWatchConnectorWizard.d.ts +0 -8
- package/dist/features/connectors/components/ConnectorDetailsDialog.d.ts +0 -8
- package/dist/features/connectors/components/ConnectorFilters.d.ts +0 -18
- package/dist/features/connectors/components/ConnectorTokenPolicyDialog.d.ts +0 -11
- package/dist/features/connectors/components/InsightConnectorCard.d.ts +0 -17
- package/dist/features/connectors/components/InsightConnectorDeleteDialog.d.ts +0 -9
- package/dist/features/connectors/components/InsightConnectorForm.d.ts +0 -18
- package/dist/features/connectors/components/WebhookSuccessModal.d.ts +0 -6
- package/dist/features/connectors/grafana-wizard/GrafanaConnectorWizard.d.ts +0 -7
- package/dist/features/connectors/index.d.ts +0 -1
- package/dist/features/connectors/source-selection/ConnectorSourcePickerDialog.d.ts +0 -6
- package/dist/features/incidents/components/InsightIncidentCard.d.ts +0 -8
- package/dist/features/workflows/components/WorkflowDiagramModal.d.ts +0 -6
- package/dist/features/workflows/components/WorkflowFormDialog.d.ts +0 -7
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InsightSource } from '../../../types.js';
|
|
2
|
+
type Props = {
|
|
3
|
+
source: InsightSource;
|
|
4
|
+
disabling: boolean;
|
|
5
|
+
testing: boolean;
|
|
6
|
+
onBack: () => void;
|
|
7
|
+
onToggleActive: () => void;
|
|
8
|
+
onTest: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function SourceDetailHeader({ source, disabling, testing, onBack, onToggleActive, onTest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type SourceDetailTab = "overview" | "alarms" | "configuration" | "setup" | "logs" | "test";
|
|
2
|
+
export declare function SourceDetailTabs({ activeTab, showSetup, onChange, }: {
|
|
3
|
+
activeTab: SourceDetailTab;
|
|
4
|
+
showSetup: boolean;
|
|
5
|
+
onChange: (tab: SourceDetailTab) => void;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InsightCloudTrailConsoleDeploy, InsightCloudWatchConsoleDeployResult, InsightSource, InsightDatadogOnboarding, InsightGrafanaOnboarding, InsightPrometheusOnboarding } from '../../../types.js';
|
|
2
|
+
export declare function SourceSetupTab({ source, loading, cloudWatch, cloudTrail, grafana, prometheus, datadog, }: {
|
|
3
|
+
source: InsightSource;
|
|
4
|
+
loading: boolean;
|
|
5
|
+
cloudWatch: InsightCloudWatchConsoleDeployResult | null;
|
|
6
|
+
cloudTrail: InsightCloudTrailConsoleDeploy | null;
|
|
7
|
+
grafana: InsightGrafanaOnboarding | null;
|
|
8
|
+
prometheus: InsightPrometheusOnboarding | null;
|
|
9
|
+
datadog: InsightDatadogOnboarding | null;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { InsightSource, InsightSourceType } from '../../../types.js';
|
|
2
|
+
export declare const sourceMeta: Record<string, {
|
|
3
|
+
label: string;
|
|
4
|
+
mono: string;
|
|
5
|
+
color: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare function normalizeSourceType(value: unknown): InsightSourceType;
|
|
8
|
+
export declare function sourceProvider(source: InsightSource): {
|
|
9
|
+
label: string;
|
|
10
|
+
mono: string;
|
|
11
|
+
color: string;
|
|
12
|
+
};
|
|
13
|
+
export declare function sourceRegion(source: InsightSource): string;
|
|
14
|
+
export declare function sourceEndpoint(source: InsightSource): string;
|
|
15
|
+
export declare function sourceSetupStatus(source: InsightSource): string;
|
|
16
|
+
export declare function isSourceSetupComplete(source: InsightSource): boolean;
|
|
17
|
+
export declare function timeAgo(value?: string | null): string;
|
|
18
|
+
export declare function severityClass(value: string): "im-sev-critical" | "im-sev-high" | "im-sev-medium" | "im-sev-low";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InsightSource } from '../../../types.js';
|
|
2
|
+
export declare function GrafanaSourceWizard({ open, source, onOpenChange, onCreated, }: {
|
|
3
|
+
open: boolean;
|
|
4
|
+
source?: InsightSource | null;
|
|
5
|
+
onOpenChange: (open: boolean) => void;
|
|
6
|
+
onCreated: () => void;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function InsightSourcesPage(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InsightSourceType } from '../../../types.js';
|
|
2
|
+
export declare function SourceSourcePickerDialog({ open, onOpenChange, onSelect, }: {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onOpenChange: (open: boolean) => void;
|
|
5
|
+
onSelect: (type: InsightSourceType) => void;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
search: string;
|
|
3
|
+
onSearchChange: (value: string) => void;
|
|
4
|
+
statusFilter: string[];
|
|
5
|
+
onStatusChange: (statuses: string[]) => void;
|
|
6
|
+
onRefresh?: () => void;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare function WorkflowFilters({ search, onSearchChange, statusFilter, onStatusChange, onRefresh, loading, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
2
|
+
import { InsightWorkflow } from '../../../types.js';
|
|
3
|
+
export declare const getWorkflowsColumns: (actions: {
|
|
4
|
+
onEdit: (workflow: InsightWorkflow) => void;
|
|
5
|
+
onToggleActive: (workflow: InsightWorkflow) => void;
|
|
6
|
+
onDelete: (workflow: InsightWorkflow) => void;
|
|
7
|
+
onOpenExecutions: (workflow: InsightWorkflow) => void;
|
|
8
|
+
}) => ColumnDef<InsightWorkflow>[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { InsightWorkflow } from '../../../types.js';
|
|
3
|
+
interface WorkflowsTableProps {
|
|
4
|
+
data: InsightWorkflow[];
|
|
5
|
+
total: number;
|
|
6
|
+
page: number;
|
|
7
|
+
limit: number;
|
|
8
|
+
onPageChange: (page: number) => void;
|
|
9
|
+
onLimitChange: (limit: number) => void;
|
|
10
|
+
onEdit: (workflow: InsightWorkflow) => void;
|
|
11
|
+
onToggleActive: (workflow: InsightWorkflow) => void;
|
|
12
|
+
onDelete: (workflow: InsightWorkflow) => void;
|
|
13
|
+
onOpenExecutions: (workflow: InsightWorkflow) => void;
|
|
14
|
+
renderFilters?: (table: any) => React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare function WorkflowsTable({ data, total, page, limit, onPageChange, onLimitChange, onEdit, onToggleActive, onDelete, onOpenExecutions, renderFilters, }: WorkflowsTableProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
export { InsightPage, type InsightPageProps } from './InsightPage.js';
|
|
2
2
|
export { configureApi, api } from './api.js';
|
|
3
3
|
export { createRouteTree } from './router.js';
|
|
4
|
-
export type { InsightIncident, InsightAnalysisResult, NewInsightAnalysisResult,
|
|
5
|
-
export declare const insightNavItems: {
|
|
4
|
+
export type { InsightIncident, InsightAnalysisResult, NewInsightAnalysisResult, InsightSource, InsightSourceType, InsightAlert, InsightAlertSeverity, InsightAlertStatus, InsightProject, InsightSop, InsightSopSeverity, InsightSopStatus, InsightWorkflow, InsightWorkflowExecution, } from './types.js';
|
|
5
|
+
export declare const insightNavItems: ({
|
|
6
6
|
title: string;
|
|
7
7
|
url: string;
|
|
8
8
|
icon: string;
|
|
9
9
|
roles: string[];
|
|
10
|
-
|
|
10
|
+
badge?: undefined;
|
|
11
|
+
items?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
title: string;
|
|
14
|
+
url: string;
|
|
15
|
+
icon: string;
|
|
16
|
+
roles: string[];
|
|
17
|
+
badge: string;
|
|
18
|
+
items: {
|
|
19
|
+
title: string;
|
|
20
|
+
url: string;
|
|
21
|
+
icon: string;
|
|
22
|
+
roles: string[];
|
|
23
|
+
}[];
|
|
24
|
+
})[];
|