meyi-insight-ui-dev 1.0.0

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 (50) hide show
  1. package/dist/InsightPage.d.ts +7 -0
  2. package/dist/api.d.ts +2 -0
  3. package/dist/components/common/InsightPagination.d.ts +11 -0
  4. package/dist/components/ui/badge.d.ts +9 -0
  5. package/dist/components/ui/button.d.ts +11 -0
  6. package/dist/components/ui/card.d.ts +8 -0
  7. package/dist/components/ui/dialog.d.ts +19 -0
  8. package/dist/components/ui/dropdown-menu.d.ts +21 -0
  9. package/dist/components/ui/input.d.ts +3 -0
  10. package/dist/components/ui/label.d.ts +4 -0
  11. package/dist/components/ui/scroll-area.d.ts +5 -0
  12. package/dist/components/ui/separator.d.ts +4 -0
  13. package/dist/components/ui/skeleton.d.ts +2 -0
  14. package/dist/components/ui/table.d.ts +10 -0
  15. package/dist/components/ui/tabs.d.ts +7 -0
  16. package/dist/features/alerts/components/AlertDeleteDialog.d.ts +6 -0
  17. package/dist/features/alerts/components/AlertStatusBadge.d.ts +4 -0
  18. package/dist/features/alerts/components/InsightAlertCard.d.ts +10 -0
  19. package/dist/features/alerts/components/InsightAlertTable.d.ts +10 -0
  20. package/dist/features/alerts/components/InsightSeverityBadge.d.ts +4 -0
  21. package/dist/features/alerts/components/PromoteDialog.d.ts +8 -0
  22. package/dist/features/alerts/index.d.ts +5 -0
  23. package/dist/features/connectors/components/InsightConnectorCard.d.ts +11 -0
  24. package/dist/features/connectors/components/InsightConnectorDeleteDialog.d.ts +9 -0
  25. package/dist/features/connectors/components/InsightConnectorForm.d.ts +17 -0
  26. package/dist/features/connectors/components/WebhookSuccessModal.d.ts +6 -0
  27. package/dist/features/connectors/index.d.ts +1 -0
  28. package/dist/features/incidents/components/InsightIncidentCard.d.ts +7 -0
  29. package/dist/features/incidents/components/InsightIncidentTable.d.ts +8 -0
  30. package/dist/features/incidents/components/InsightRcaResult.d.ts +9 -0
  31. package/dist/features/incidents/components/InsightStatusBadge.d.ts +3 -0
  32. package/dist/features/incidents/detail.d.ts +7 -0
  33. package/dist/features/incidents/index.d.ts +5 -0
  34. package/dist/features/projects/components/DeleteDialog.d.ts +7 -0
  35. package/dist/features/projects/components/InsightProjectCard.d.ts +8 -0
  36. package/dist/features/projects/components/InsightProjectTable.d.ts +8 -0
  37. package/dist/features/projects/components/ProjectForm.d.ts +18 -0
  38. package/dist/features/projects/index.d.ts +1 -0
  39. package/dist/features/settings/components/SettingsForm.d.ts +13 -0
  40. package/dist/features/settings/index.d.ts +1 -0
  41. package/dist/hooks/useInsightPolling.d.ts +18 -0
  42. package/dist/index.d.ts +10 -0
  43. package/dist/index.js +63 -0
  44. package/dist/index.mjs +17545 -0
  45. package/dist/lib/utils.d.ts +6 -0
  46. package/dist/router.d.ts +1 -0
  47. package/dist/services/insight.d.ts +128 -0
  48. package/dist/style.css +1 -0
  49. package/dist/types.d.ts +173 -0
  50. package/package.json +61 -0
@@ -0,0 +1,7 @@
1
+ export interface InsightPageProps {
2
+ apiBase: string;
3
+ token?: string;
4
+ basePath?: string;
5
+ userRole?: string;
6
+ }
7
+ export declare function InsightPage({ apiBase, token, basePath }: InsightPageProps): import("react/jsx-runtime").JSX.Element;
package/dist/api.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export declare const api: import('axios').AxiosInstance;
2
+ export declare function configureApi(apiBase: string, token?: string): void;
@@ -0,0 +1,11 @@
1
+ interface InsightPaginationProps {
2
+ currentPage: number;
3
+ pageSize: number;
4
+ totalPages: number;
5
+ total: number;
6
+ onPageChange: (page: number) => void;
7
+ onPageSizeChange?: (pageSize: number) => void;
8
+ className?: string;
9
+ }
10
+ export declare function InsightPagination({ currentPage, pageSize, totalPages, total, onPageChange, onPageSizeChange, className, }: InsightPaginationProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,9 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const badgeVariants: (props?: ({
4
+ variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
7
+ }
8
+ declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
9
+ export { Badge, badgeVariants };
@@ -0,0 +1,11 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
5
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
+ asChild?: boolean;
9
+ }
10
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
11
+ export { Button, buttonVariants };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
3
+ declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
5
+ declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
6
+ declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
7
+ declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
8
+ export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
@@ -0,0 +1,19 @@
1
+ import * as React from "react";
2
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
3
+ declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
4
+ declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
6
+ declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const DialogHeader: {
10
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
11
+ displayName: string;
12
+ };
13
+ declare const DialogFooter: {
14
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
15
+ displayName: string;
16
+ };
17
+ declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
18
+ declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
19
+ export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
@@ -0,0 +1,21 @@
1
+ import * as React from "react";
2
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
3
+ declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
4
+ declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
6
+ declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
7
+ declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
8
+ declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
9
+ declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
10
+ inset?: boolean;
11
+ } & React.RefAttributes<HTMLDivElement>>;
12
+ declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
+ declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
15
+ inset?: boolean;
16
+ } & React.RefAttributes<HTMLDivElement>>;
17
+ declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
18
+ inset?: boolean;
19
+ } & React.RefAttributes<HTMLDivElement>>;
20
+ declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
21
+ export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
@@ -0,0 +1,3 @@
1
+ import * as React from "react";
2
+ declare const Input: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
3
+ export { Input };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as LabelPrimitive from "@radix-ui/react-label";
3
+ declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
4
+ export { Label };
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
3
+ declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
3
+ declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ export { Separator };
@@ -0,0 +1,2 @@
1
+ declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
2
+ export { Skeleton };
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
3
+ declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
4
+ declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
5
+ declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
6
+ declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
7
+ declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
8
+ declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
9
+ declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
10
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
3
+ declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
4
+ declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
6
+ declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ export { Tabs, TabsList, TabsTrigger, TabsContent };
@@ -0,0 +1,6 @@
1
+ export declare function AlertDeleteDialog({ open, onConfirm, onCancel, deleting, }: {
2
+ open: boolean;
3
+ onConfirm: () => void;
4
+ onCancel: () => void;
5
+ deleting: boolean;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { InsightAlertStatus } from '../../../types.js';
2
+ export declare function AlertStatusBadge({ status }: {
3
+ status: InsightAlertStatus;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { InsightAlert } from '../../../types.js';
2
+ interface InsightAlertCardProps {
3
+ alert: InsightAlert;
4
+ deletingId: string | null;
5
+ onViewIncident: (id: string) => void;
6
+ onPromote: (alert: InsightAlert) => void;
7
+ onDelete: (id: string) => void;
8
+ }
9
+ export declare function InsightAlertCard({ alert, deletingId, onViewIncident, onPromote, onDelete, }: InsightAlertCardProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,10 @@
1
+ import { InsightAlert } from '../../../types.js';
2
+ interface InsightAlertTableProps {
3
+ alerts: InsightAlert[];
4
+ deletingId: string | null;
5
+ onViewIncident: (id: string) => void;
6
+ onPromote: (alert: InsightAlert) => void;
7
+ onDelete: (id: string) => void;
8
+ }
9
+ export declare function InsightAlertTable({ alerts, deletingId, onViewIncident, onPromote, onDelete, }: InsightAlertTableProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,4 @@
1
+ import { InsightAlertSeverity } from '../../../types.js';
2
+ export declare function SeverityBadge({ severity }: {
3
+ severity: InsightAlertSeverity;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { InsightAlert } from '../../../types.js';
2
+ export declare function PromoteDialog({ alert, open, onConfirm, onCancel, promoting, }: {
3
+ alert: InsightAlert | null;
4
+ open: boolean;
5
+ onConfirm: () => void;
6
+ onCancel: () => void;
7
+ promoting: boolean;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ interface Props {
2
+ onViewIncident: (id: string) => void;
3
+ }
4
+ export declare function InsightAlertsPage({ onViewIncident }: Props): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,11 @@
1
+ import { InsightConnector } from '../../../types.js';
2
+ interface InsightConnectorCardProps {
3
+ connector: InsightConnector;
4
+ deletingId: string | null;
5
+ rotatingId: string | null;
6
+ onEdit: (connector: InsightConnector) => void;
7
+ onRotate: (id: string) => void;
8
+ onDelete: (id: string) => void;
9
+ }
10
+ export declare function InsightConnectorCard({ connector, deletingId, rotatingId, onEdit, onRotate, onDelete, }: InsightConnectorCardProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,9 @@
1
+ import { InsightConnector } from '../../../types.js';
2
+ interface InsightConnectorDeleteDialogProps {
3
+ open: boolean;
4
+ onOpenChange: (open: boolean) => void;
5
+ connector: InsightConnector | null;
6
+ onConfirm: () => Promise<void>;
7
+ }
8
+ export declare function InsightConnectorDeleteDialog({ open, onOpenChange, connector, onConfirm, }: InsightConnectorDeleteDialogProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,17 @@
1
+ import { InsightConnector, InsightConnectorType } from '../../../types.js';
2
+ export declare const CONNECTOR_META: Record<InsightConnectorType, {
3
+ label: string;
4
+ Icon: any;
5
+ color: string;
6
+ }>;
7
+ interface InsightConnectorFormProps {
8
+ open: boolean;
9
+ connector: InsightConnector | null;
10
+ submitting: boolean;
11
+ onClose: () => void;
12
+ onSubmit: (name: string, type: InsightConnectorType, description?: string) => void;
13
+ createdWebhookUrl?: string | null;
14
+ onWebhookModalClose?: () => void;
15
+ }
16
+ export declare function InsightConnectorForm({ open, connector, submitting, onClose, onSubmit, createdWebhookUrl, onWebhookModalClose, }: InsightConnectorFormProps): import("react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -0,0 +1,6 @@
1
+ import { InsightConnectorType } from '../../../types.js';
2
+ export declare function WebhookSuccessModal({ webhookUrl, connectorType, onClose, }: {
3
+ webhookUrl: string;
4
+ connectorType: InsightConnectorType;
5
+ onClose: () => void;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function InsightConnectorsPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { InsightIncident } from '../../../types.js';
2
+ interface Props {
3
+ incident: InsightIncident;
4
+ onViewResult: (id: string) => void;
5
+ }
6
+ export declare function InsightIncidentCard({ incident: init, onViewResult }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import { InsightIncident } from '../../../types.js';
2
+ interface Props {
3
+ incidents: InsightIncident[];
4
+ loading?: boolean;
5
+ onViewResult: (id: string) => void;
6
+ }
7
+ export declare function InsightIncidentTable({ incidents, loading, onViewResult }: Props): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ import { NewInsightAnalysisResult, NewRemediationSteps } from '../../../types.js';
2
+ interface InsightRcaResultProps {
3
+ result: NewInsightAnalysisResult;
4
+ remediationSteps?: NewRemediationSteps | any[] | string | null;
5
+ confidenceScore?: number | null;
6
+ aiModelUsed?: string | null;
7
+ }
8
+ export declare function InsightRcaResult({ result, remediationSteps, confidenceScore, aiModelUsed, }: InsightRcaResultProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare function AnalysisStatusBadge({ status }: {
2
+ status: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ interface Props {
2
+ incidentId: string;
3
+ onBack: () => void;
4
+ onViewAlert?: (alertId: string) => void;
5
+ }
6
+ export declare function InsightIncidentDetailPage({ incidentId, onBack, onViewAlert }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,5 @@
1
+ interface Props {
2
+ onViewResult: (id: string) => void;
3
+ }
4
+ export declare function InsightIncidentsPage({ onViewResult }: Props): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,7 @@
1
+ import { InsightProject } from '../../../types.js';
2
+ export declare function DeleteDialog({ project, onConfirm, onCancel, deleting, }: {
3
+ project: InsightProject;
4
+ onConfirm: () => void;
5
+ onCancel: () => void;
6
+ deleting: boolean;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { InsightProject } from '../../../types.js';
2
+ interface InsightProjectCardProps {
3
+ project: InsightProject;
4
+ onEdit: (project: InsightProject) => void;
5
+ onDelete: (project: InsightProject) => void;
6
+ }
7
+ export declare function InsightProjectCard({ project, onEdit, onDelete, }: InsightProjectCardProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { InsightProject } from '../../../types.js';
2
+ interface InsightProjectTableProps {
3
+ projects: InsightProject[];
4
+ onEdit: (project: InsightProject) => void;
5
+ onDelete: (project: InsightProject) => void;
6
+ }
7
+ export declare function InsightProjectTable({ projects, onEdit, onDelete, }: InsightProjectTableProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,18 @@
1
+ import { InsightProject } from '../../../types.js';
2
+ interface ProjectFormProps {
3
+ open: boolean;
4
+ project: InsightProject | null;
5
+ submitting: boolean;
6
+ onClose: () => void;
7
+ onSubmit: (data: {
8
+ name: string;
9
+ tag: string;
10
+ description?: string;
11
+ dependencies: any[];
12
+ awsAccessKeyId?: string;
13
+ awsSecretAccessKey?: string;
14
+ awsRegion?: string;
15
+ }) => void;
16
+ }
17
+ export declare function ProjectForm({ open, project, submitting, onClose, onSubmit }: ProjectFormProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1 @@
1
+ export declare function InsightProjectsPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import * as React from "react";
2
+ interface SettingsFormProps {
3
+ awsBedrockAccessKeyId: string;
4
+ setAwsBedrockAccessKeyId: (val: string) => void;
5
+ awsBedrockSecretAccessKey: string;
6
+ setAwsBedrockSecretAccessKey: (val: string) => void;
7
+ awsBedrockRegion: string;
8
+ setAwsBedrockRegion: (val: string) => void;
9
+ saving: boolean;
10
+ onSave: (e: React.FormEvent) => void;
11
+ }
12
+ export declare function SettingsForm({ awsBedrockAccessKeyId, setAwsBedrockAccessKeyId, awsBedrockSecretAccessKey, setAwsBedrockSecretAccessKey, awsBedrockRegion, setAwsBedrockRegion, saving, onSave }: SettingsFormProps): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1 @@
1
+ export declare function InsightSettingsPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ export declare const ACTIVE_STATUSES: Set<string>;
2
+ /**
3
+ * Polls /incidents/:id/status while analysis is in-flight.
4
+ *
5
+ * Key fixes vs original:
6
+ * - `initialStatus` seeds the state so the hook reflects the DB value immediately.
7
+ * - `optimisticTrigger()` lets a card flip to "triggered" locally the instant the
8
+ * user clicks Analyse — before the parent re-fetches.
9
+ * - The polling effect restarts whenever `autoStart` flips to true (e.g. after
10
+ * the optimistic trigger), not just on mount.
11
+ */
12
+ export declare function useInsightPolling(incidentId: string | null, autoStart: boolean, initialStatus?: string): {
13
+ status: string;
14
+ progressPercent: number;
15
+ isComplete: boolean;
16
+ isFailed: boolean;
17
+ optimisticTrigger: () => void;
18
+ };
@@ -0,0 +1,10 @@
1
+ export { InsightPage, type InsightPageProps } from './InsightPage.js';
2
+ export { configureApi, api } from './api.js';
3
+ export { createRouteTree } from './router.js';
4
+ export type { InsightIncident, InsightAnalysisResult, NewInsightAnalysisResult, InsightConnector, InsightConnectorType, InsightAlert, InsightAlertSeverity, InsightAlertStatus, InsightProject, } from './types.js';
5
+ export declare const insightNavItems: {
6
+ title: string;
7
+ url: string;
8
+ icon: string;
9
+ roles: string[];
10
+ }[];