@odigos/ui-kit 0.0.284 → 0.0.286-dev.520
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/CHANGELOG.md +28 -0
- package/docs/api-context.md +1 -1
- package/lib/chunks/{helpers-DqYXvhEu.js → helpers-B0SJ6hqm.js} +2 -2
- package/lib/chunks/index-9H2LDuOq.js +311 -0
- package/lib/chunks/source-instrument-form-context-BF70uJ_R.js +5 -0
- package/lib/chunks/ui-components-DqG0z5U0.js +1878 -0
- package/lib/components/_cards/data-card/index.d.ts +6 -1
- package/lib/components/_cards/text-card/index.d.ts +3 -0
- package/lib/components/drawer/header/index.d.ts +2 -0
- package/lib/components/hover-actions/index.d.ts +1 -1
- package/lib/components/index.d.ts +2 -0
- package/lib/components/info-row/index.d.ts +11 -0
- package/lib/components/input/index.d.ts +2 -0
- package/lib/components/table/index.d.ts +10 -0
- package/lib/components/table/styled.d.ts +11 -0
- package/lib/components/table/table-rows/index.d.ts +6 -1
- package/lib/components/table/types.d.ts +11 -2
- package/lib/components/trace-view/index.d.ts +4 -0
- package/lib/components/trace-view/styled.d.ts +43 -0
- package/lib/components/trace-view/types.d.ts +46 -0
- package/lib/components.js +1 -1
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/recommendations/index.d.ts +31 -0
- package/lib/constants/strings/index.d.ts +3 -0
- package/lib/constants.js +1 -1
- package/lib/containers/_drawers/edit-source-drawer/overview/runtime-card.d.ts +5 -2
- package/lib/containers/_drawers/edit-source-drawer/pods/containers-card/process-card.d.ts +1 -7
- package/lib/containers/_drawers/index.d.ts +1 -0
- package/lib/containers/_drawers/recommendations-drawer/helpers.d.ts +22 -0
- package/lib/containers/_drawers/recommendations-drawer/index.d.ts +9 -0
- package/lib/containers/_drawers/recommendations-drawer/manual-examples.d.ts +6 -0
- package/lib/containers/_drawers/recommendations-drawer/recommendation-card.d.ts +13 -0
- package/lib/containers/_drawers/recommendations-drawer/remediation-actions.d.ts +9 -0
- package/lib/containers/_drawers/recommendations-drawer/remediation-methods.d.ts +13 -0
- package/lib/containers/index.d.ts +1 -0
- package/lib/containers/insights/consts.d.ts +6 -0
- package/lib/containers/insights/findings/drawer/anomaly/anomaly-blast-radius/animated-edge.d.ts +10 -0
- package/lib/containers/insights/findings/drawer/anomaly/anomaly-blast-radius/blast-radius-node.d.ts +6 -0
- package/lib/containers/insights/findings/drawer/anomaly/anomaly-blast-radius/helpers.d.ts +28 -0
- package/lib/containers/insights/findings/drawer/anomaly/anomaly-blast-radius/index.d.ts +7 -0
- package/lib/containers/insights/findings/drawer/anomaly/anomaly-blast-radius/types.d.ts +19 -0
- package/lib/containers/insights/findings/drawer/anomaly/anomaly-trace-compare/helpers.d.ts +15 -0
- package/lib/containers/insights/findings/drawer/anomaly/anomaly-trace-compare/index.d.ts +7 -0
- package/lib/containers/insights/findings/drawer/anomaly/index.d.ts +15 -0
- package/lib/containers/insights/findings/drawer/anomaly/why-this-fired/index.d.ts +6 -0
- package/lib/containers/insights/findings/drawer/helpers.d.ts +11 -0
- package/lib/containers/insights/findings/drawer/index.d.ts +6 -0
- package/lib/containers/insights/findings/drawer/violation/index.d.ts +6 -0
- package/lib/containers/insights/findings/drawer/violation/violation-trace-view/index.d.ts +8 -0
- package/lib/containers/insights/findings/helpers.d.ts +47 -0
- package/lib/containers/insights/findings/index.d.ts +2 -0
- package/lib/containers/insights/index.d.ts +6 -0
- package/lib/containers/insights/insights-context.d.ts +44 -0
- package/lib/containers/insights/overview/contained-table-and-heading/index.d.ts +18 -0
- package/lib/containers/insights/overview/index.d.ts +6 -0
- package/lib/containers/insights/settings-and-configurations/constants.d.ts +16 -0
- package/lib/containers/insights/settings-and-configurations/content-panel/index.d.ts +11 -0
- package/lib/containers/insights/settings-and-configurations/index.d.ts +2 -0
- package/lib/containers/insights/settings-and-configurations/menu-config.d.ts +24 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/constants.d.ts +40 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/create-override-panel.d.ts +14 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/index.d.ts +2 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/mappers.d.ts +12 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/mock.d.ts +4 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/policies-menu.d.ts +10 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/policy-editor.d.ts +8 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/policy-list-item.d.ts +8 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/risk-levels.d.ts +15 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/risk-model-drawer/constants.d.ts +16 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/risk-model-drawer/default-catalog.d.ts +3 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/risk-model-drawer/helpers.d.ts +30 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/risk-model-drawer/index.d.ts +10 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/signal-weights-panel.d.ts +13 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/signal-weights.d.ts +17 -0
- package/lib/containers/insights/settings-and-configurations/panels/detection/types.d.ts +29 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/constants.d.ts +35 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/create-panel.d.ts +17 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/edit-panel.d.ts +10 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/facet-section.d.ts +13 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/guardrail-list-item.d.ts +8 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/guardrails-menu.d.ts +9 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/index.d.ts +2 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/mappers.d.ts +18 -0
- package/lib/containers/insights/settings-and-configurations/panels/guardrails/types.d.ts +10 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/constants.d.ts +82 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/create-override-panel.d.ts +21 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/index.d.ts +2 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/mappers.d.ts +38 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/policies-menu.d.ts +10 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/policy-editor.d.ts +9 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/policy-list-item.d.ts +8 -0
- package/lib/containers/insights/settings-and-configurations/panels/learning/types.d.ts +31 -0
- package/lib/containers/insights/settings-and-configurations/panels/storage/constants.d.ts +52 -0
- package/lib/containers/insights/settings-and-configurations/panels/storage/formatters.d.ts +5 -0
- package/lib/containers/insights/settings-and-configurations/panels/storage/index.d.ts +2 -0
- package/lib/containers/insights/settings-and-configurations/panels/storage/layout.d.ts +18 -0
- package/lib/containers/insights/settings-and-configurations/panels/storage/mappers.d.ts +27 -0
- package/lib/containers/insights/settings-and-configurations/panels/system/constants.d.ts +31 -0
- package/lib/containers/insights/settings-and-configurations/panels/system/index.d.ts +2 -0
- package/lib/containers/insights/settings-and-configurations/settings-menu/category-header.d.ts +8 -0
- package/lib/containers/insights/settings-and-configurations/settings-menu/index.d.ts +7 -0
- package/lib/containers/insights/transactions/drawer/baselines/helpers.d.ts +16 -0
- package/lib/containers/insights/transactions/drawer/baselines/index.d.ts +5 -0
- package/lib/containers/insights/transactions/drawer/index.d.ts +2 -0
- package/lib/containers/insights/transactions/drawer/observations/helpers.d.ts +11 -0
- package/lib/containers/insights/transactions/drawer/observations/index.d.ts +5 -0
- package/lib/containers/insights/transactions/helpers.d.ts +35 -0
- package/lib/containers/insights/transactions/index.d.ts +2 -0
- package/lib/containers/overview/search/builder.d.ts +3 -1
- package/lib/containers.js +1436 -248
- package/lib/contexts/odigos-api/capabilities.d.ts +5 -0
- package/lib/contexts/odigos-api/hooks/use-actions-api.d.ts +3 -1
- package/lib/contexts/odigos-api/hooks/use-insights-api.d.ts +153 -0
- package/lib/contexts/odigos-api/hooks/use-recommendations-api.d.ts +32 -0
- package/lib/contexts/odigos-api/index.d.ts +3 -1
- package/lib/contexts/odigos-api/internal/notify.d.ts +4 -3
- package/lib/contexts/odigos-api/types.d.ts +223 -1
- package/lib/contexts/odigos-api/use-odigos-api.d.ts +4 -0
- package/lib/contexts.js +1 -1
- package/lib/functions/index.d.ts +1 -0
- package/lib/functions/parse-raw-otlp/index.d.ts +43 -0
- package/lib/functions.js +1 -1
- package/lib/hooks/useCopy.d.ts +2 -3
- package/lib/hooks/useTimeAgo.d.ts +4 -0
- package/lib/hooks.js +1 -1
- package/lib/icons/common/index.d.ts +4 -0
- package/lib/icons/common/insights-findings-icon/index.d.ts +2 -0
- package/lib/icons/common/insights-transactions-icon/index.d.ts +2 -0
- package/lib/icons/common/recommendations-icon/index.d.ts +2 -0
- package/lib/icons/common/threat-detection-icon/index.d.ts +2 -0
- package/lib/icons/overview/index.d.ts +1 -0
- package/lib/icons/overview/insights-icon/index.d.ts +2 -0
- package/lib/icons.js +1 -1
- package/lib/snippets/animated-collapse/index.d.ts +10 -0
- package/lib/snippets/code-modal/index.d.ts +9 -0
- package/lib/snippets/index.d.ts +2 -0
- package/lib/snippets/rich-title/index.d.ts +4 -1
- package/lib/snippets/trace-modal/index.d.ts +8 -0
- package/lib/snippets/yaml-section-card/index.d.ts +1 -0
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme/palettes/index.d.ts +7 -1
- package/lib/theme.js +1 -1
- package/lib/types/common/index.d.ts +4 -1
- package/lib/types/destinations/index.d.ts +1 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/insights/index.d.ts +598 -0
- package/lib/types/recommendations.d.ts +73 -0
- package/lib/types/workload/index.d.ts +14 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/index-DxXpZafj.js +0 -257
- package/lib/chunks/source-instrument-form-context-BPXm6ufr.js +0 -5
- package/lib/chunks/ui-components-M0c3qdR2.js +0 -1601
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ReactNode, type FC, type CSSProperties } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { type TagProps } from '../../tag';
|
|
3
3
|
import { type BadgeProps } from '../../badge';
|
|
4
|
+
import { DefaultTheme } from 'styled-components';
|
|
4
5
|
import { type ActionsProps } from '../../../snippets/actions';
|
|
5
6
|
import { type DropDataProps } from '../../drop-data';
|
|
6
7
|
import { type RichTitleProps } from '../../../snippets/rich-title';
|
|
@@ -10,6 +11,7 @@ export interface DataCardProps {
|
|
|
10
11
|
width?: CSSProperties['width'];
|
|
11
12
|
fullHeight?: boolean;
|
|
12
13
|
moreSpacing?: boolean;
|
|
14
|
+
overflow?: CSSProperties['overflow'];
|
|
13
15
|
richTitle?: RichTitleProps;
|
|
14
16
|
withCollapse?: boolean;
|
|
15
17
|
collapseIsDefaultOpen?: boolean;
|
|
@@ -32,8 +34,11 @@ export interface DataCardProps {
|
|
|
32
34
|
labelTooltip?: string;
|
|
33
35
|
withCopy?: boolean;
|
|
34
36
|
badge?: BadgeProps;
|
|
37
|
+
tag?: TagProps;
|
|
35
38
|
}[];
|
|
36
39
|
children?: ReactNode;
|
|
40
|
+
onClick?: () => void;
|
|
41
|
+
clickStylesRemainActive?: boolean;
|
|
37
42
|
}
|
|
38
43
|
export declare const DataCard: FC<DataCardProps>;
|
|
39
44
|
export {};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
+
import { type DefaultTheme } from 'styled-components';
|
|
2
3
|
interface Cell {
|
|
3
4
|
value: string;
|
|
4
5
|
label?: string;
|
|
5
6
|
isLoading?: boolean;
|
|
6
7
|
}
|
|
8
|
+
type BgTint = keyof DefaultTheme['v2']['colors']['silver'];
|
|
7
9
|
export interface TextCardProps {
|
|
8
10
|
title: string;
|
|
9
11
|
cells: Cell[];
|
|
12
|
+
bgTint?: BgTint;
|
|
10
13
|
}
|
|
11
14
|
export declare const TextCard: FC<TextCardProps>;
|
|
12
15
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
2
|
import type { SVG } from '../../../types';
|
|
3
|
+
import { type TagProps } from '../../tag';
|
|
3
4
|
import { type BadgeProps } from '../../badge';
|
|
4
5
|
import { type ToggleProps } from '../../toggle';
|
|
5
6
|
import { type DropDataProps } from '../../drop-data';
|
|
@@ -9,6 +10,7 @@ export interface HeaderProps {
|
|
|
9
10
|
title?: string;
|
|
10
11
|
titleBadges?: BadgeProps[];
|
|
11
12
|
subTitle?: string;
|
|
13
|
+
subTitleTags?: TagProps[];
|
|
12
14
|
toggleProps?: ToggleProps;
|
|
13
15
|
actions?: (DropDataProps['items'][number] & {
|
|
14
16
|
active?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type CSSProperties, type FC } from 'react';
|
|
2
2
|
import { type ButtonProps } from '../button';
|
|
3
|
-
export interface HoverAction extends Pick<ButtonProps, 'label' | 'leftIcon' | 'rightIcon' | 'loading' | 'disabled'> {
|
|
3
|
+
export interface HoverAction extends Pick<ButtonProps, 'label' | 'leftIcon' | 'rightIcon' | 'loading' | 'disabled' | 'variant'> {
|
|
4
4
|
id: string;
|
|
5
5
|
'data-id'?: string;
|
|
6
6
|
onClick: () => void;
|
|
@@ -20,6 +20,7 @@ export * from './header';
|
|
|
20
20
|
export * from './hover-actions';
|
|
21
21
|
export * from './icon-button';
|
|
22
22
|
export * from './icon-group';
|
|
23
|
+
export * from './info-row';
|
|
23
24
|
export * from './input';
|
|
24
25
|
export * from './input-list';
|
|
25
26
|
export * from './input-table';
|
|
@@ -42,6 +43,7 @@ export * from './textarea';
|
|
|
42
43
|
export * from './time-input';
|
|
43
44
|
export * from './toggle';
|
|
44
45
|
export * from './tooltip';
|
|
46
|
+
export * from './trace-view';
|
|
45
47
|
export * from './typography';
|
|
46
48
|
export * from './typography-truncatable';
|
|
47
49
|
export * from './warning-modal';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
export interface InfoRowProps {
|
|
3
|
+
label: string;
|
|
4
|
+
value?: string | null;
|
|
5
|
+
isStandardLibrary?: boolean | null;
|
|
6
|
+
healthy?: boolean | null;
|
|
7
|
+
message?: string | null;
|
|
8
|
+
}
|
|
9
|
+
/** Single-line row height: 8px padding × 2 + XXS line-height (12+2). */
|
|
10
|
+
export declare const INFO_ROW_HEIGHT_PX = 30;
|
|
11
|
+
export declare const InfoRow: FC<InfoRowProps>;
|
|
@@ -9,6 +9,8 @@ export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
9
9
|
badge?: BadgeProps;
|
|
10
10
|
leftIcon?: SVG;
|
|
11
11
|
rightIcon?: SVG;
|
|
12
|
+
/** Static text rendered inside the control, after the value (e.g. a unit). */
|
|
13
|
+
suffix?: string;
|
|
12
14
|
hasError?: boolean;
|
|
13
15
|
maxWidth?: CSSProperties['maxWidth'];
|
|
14
16
|
width?: CSSProperties['width'];
|
|
@@ -6,6 +6,13 @@ export * from './types';
|
|
|
6
6
|
export interface TableProps {
|
|
7
7
|
variant: TableVariant;
|
|
8
8
|
maxHeight?: CSSProperties['maxHeight'];
|
|
9
|
+
/**
|
|
10
|
+
* Prefer content height over filling the parent. With `maxHeight`, small lists
|
|
11
|
+
* (under 100 rows) size to content under the cap; larger lists use a fixed
|
|
12
|
+
* virtua viewport at `maxHeight`. Without `maxHeight`, rows always render at
|
|
13
|
+
* natural height (no virtualization).
|
|
14
|
+
*/
|
|
15
|
+
fitContent?: boolean;
|
|
9
16
|
headerBackgroundColor?: CSSProperties['backgroundColor'];
|
|
10
17
|
hideHeader?: boolean;
|
|
11
18
|
isLoading?: boolean;
|
|
@@ -27,5 +34,8 @@ export interface TableProps {
|
|
|
27
34
|
activeRowId?: string | null;
|
|
28
35
|
/** Bump to (re)trigger a scroll to `activeRowId` even when it's unchanged (e.g. the same row was re-selected externally). */
|
|
29
36
|
scrollSignal?: number;
|
|
37
|
+
/** Controlled accordion: id of the expanded row (`TableRow.id`). Pass with `onExpandedRowIdChange`. */
|
|
38
|
+
expandedRowId?: string | null;
|
|
39
|
+
onExpandedRowIdChange?: (id: string | null) => void;
|
|
30
40
|
}
|
|
31
41
|
export declare const Table: FC<TableProps>;
|
|
@@ -4,6 +4,9 @@ import { type IStyledComponent } from 'styled-components';
|
|
|
4
4
|
type DivProps<P = object> = P & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement>;
|
|
5
5
|
interface ContainerProps {
|
|
6
6
|
$maxHeight?: CSSProperties['maxHeight'];
|
|
7
|
+
$fitContent?: boolean;
|
|
8
|
+
/** With `$fitContent` + `$maxHeight`: fixed viewport for virtua. Without it: content height capped by maxHeight. */
|
|
9
|
+
$virtualize?: boolean;
|
|
7
10
|
}
|
|
8
11
|
export declare const Container: IStyledComponent<'web', DivProps<ContainerProps>>;
|
|
9
12
|
interface TableRootProps {
|
|
@@ -11,7 +14,14 @@ interface TableRootProps {
|
|
|
11
14
|
}
|
|
12
15
|
export declare const TableRoot: IStyledComponent<'web', DivProps<TableRootProps>>;
|
|
13
16
|
export declare const THead: IStyledComponent<'web', DivProps>;
|
|
17
|
+
export declare const TBody: IStyledComponent<'web', DivProps>;
|
|
14
18
|
export declare const Row: IStyledComponent<'web', DivProps>;
|
|
19
|
+
export declare const ExpandableRowItem: IStyledComponent<'web', DivProps>;
|
|
20
|
+
interface ExpandedContentProps {
|
|
21
|
+
$maxHeight?: CSSProperties['maxHeight'];
|
|
22
|
+
}
|
|
23
|
+
/** Caps accordion panel height when the outer body viewport has been measured. */
|
|
24
|
+
export declare const ExpandedContent: IStyledComponent<'web', DivProps<ExpandedContentProps>>;
|
|
15
25
|
interface ThProps {
|
|
16
26
|
$variant: TableVariant;
|
|
17
27
|
$backgroundColor?: CSSProperties['backgroundColor'];
|
|
@@ -26,6 +36,7 @@ export declare const Th: IStyledComponent<'web', DivProps<ThProps>>;
|
|
|
26
36
|
export declare const ThBorder: IStyledComponent<'web', DivProps>;
|
|
27
37
|
interface TdProps {
|
|
28
38
|
$variant: TableVariant;
|
|
39
|
+
$index?: number;
|
|
29
40
|
$withClick: boolean;
|
|
30
41
|
$hovered: boolean;
|
|
31
42
|
$selected: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type FC, type CSSProperties } from 'react';
|
|
2
|
-
import { TableColumn, TableRow, TableVariant } from '../types';
|
|
3
2
|
import { HoverAction } from '../../hover-actions';
|
|
3
|
+
import { TableColumn, TableRow, TableVariant } from '../types';
|
|
4
4
|
interface TableRowsProps {
|
|
5
5
|
variant: TableVariant;
|
|
6
6
|
columns: TableColumn[];
|
|
@@ -17,6 +17,11 @@ interface TableRowsProps {
|
|
|
17
17
|
scrollToIndex?: number | null;
|
|
18
18
|
/** Bump to (re)trigger the scroll even when the index is unchanged. */
|
|
19
19
|
scrollSignal?: number;
|
|
20
|
+
/** When false, render rows at natural height (no ScrollY/virtua). */
|
|
21
|
+
useVirtua?: boolean;
|
|
22
|
+
expandedRowId?: string | null;
|
|
23
|
+
onToggleExpand?: (rowId: string) => void;
|
|
24
|
+
expandedMaxHeight?: CSSProperties['maxHeight'];
|
|
20
25
|
}
|
|
21
26
|
export declare const TableRows: FC<TableRowsProps>;
|
|
22
27
|
export {};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { type CSSProperties, type FC } from 'react';
|
|
1
|
+
import { type CSSProperties, type FC, type ReactNode } from 'react';
|
|
2
2
|
export declare enum TableVariant {
|
|
3
|
+
Pretty = "pretty",
|
|
3
4
|
Data = "data",
|
|
4
|
-
|
|
5
|
+
DataSecondary = "dataSecondary"
|
|
6
|
+
}
|
|
7
|
+
export interface TableRowExpandedContentContext {
|
|
8
|
+
maxHeight?: CSSProperties['maxHeight'];
|
|
5
9
|
}
|
|
6
10
|
export interface TableColumnFilterOption {
|
|
7
11
|
id: string;
|
|
@@ -40,6 +44,11 @@ export interface TableRow {
|
|
|
40
44
|
id?: string;
|
|
41
45
|
cells: TableRowCell[];
|
|
42
46
|
onClick?: () => void;
|
|
47
|
+
/**
|
|
48
|
+
* When set, the row becomes an accordion trigger. Content renders below the row when expanded.
|
|
49
|
+
* Prefer a function form to receive the table body `maxHeight` for nested scrollable content.
|
|
50
|
+
*/
|
|
51
|
+
expandedContent?: ReactNode | ((ctx: TableRowExpandedContentContext) => ReactNode);
|
|
43
52
|
isSelected?: boolean;
|
|
44
53
|
onSelect?: () => void;
|
|
45
54
|
onDeselect?: () => void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { TraceViewProps } from './types';
|
|
3
|
+
export type { TraceViewAttribute, TraceViewCorner, TraceViewHeaderBadge, TraceViewMetaChip as TraceViewMetaChipType, TraceViewProps, TraceViewRow, TraceViewRowBadge, TraceViewRowVariant, } from './types';
|
|
4
|
+
export declare const TraceView: FC<TraceViewProps>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { TraceViewCorner, TraceViewRowVariant } from './types';
|
|
2
|
+
export declare const TraceViewRoot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
3
|
+
export declare const TraceViewHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$corner"> & {
|
|
4
|
+
$corner: TraceViewCorner;
|
|
5
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$corner"> & {
|
|
6
|
+
$corner: TraceViewCorner;
|
|
7
|
+
}, never>>> & string;
|
|
8
|
+
export declare const TraceViewHeaderTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
9
|
+
export declare const TraceViewMetaChip: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
10
|
+
export declare const TraceViewBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$corner" | "$hasHeader"> & {
|
|
11
|
+
$corner: TraceViewCorner;
|
|
12
|
+
$hasHeader: boolean;
|
|
13
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$corner" | "$hasHeader"> & {
|
|
14
|
+
$corner: TraceViewCorner;
|
|
15
|
+
$hasHeader: boolean;
|
|
16
|
+
}, never>>> & string;
|
|
17
|
+
export declare const TraceViewRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$variant" | "$selected" | "$interactive"> & {
|
|
18
|
+
$variant: TraceViewRowVariant;
|
|
19
|
+
$selected: boolean;
|
|
20
|
+
$interactive: boolean;
|
|
21
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "$variant" | "$selected" | "$interactive"> & {
|
|
22
|
+
$variant: TraceViewRowVariant;
|
|
23
|
+
$selected: boolean;
|
|
24
|
+
$interactive: boolean;
|
|
25
|
+
}, never>>> & string;
|
|
26
|
+
export declare const TraceViewRowMain: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$depth"> & {
|
|
27
|
+
$depth: number;
|
|
28
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$depth"> & {
|
|
29
|
+
$depth: number;
|
|
30
|
+
}, never>>> & string;
|
|
31
|
+
export declare const TraceViewIndex: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../typography").TypographyProps & import("react").RefAttributes<HTMLElement>, never> & Partial<Pick<import("../typography").TypographyProps & import("react").RefAttributes<HTMLElement>, never>>> & string & Omit<import("react").ForwardRefExoticComponent<import("../typography").TypographyProps & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
32
|
+
export declare const TraceViewRowContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
33
|
+
export declare const TraceViewServiceTag: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
34
|
+
export declare const TraceViewServiceTagText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../typography").TypographyProps & import("react").RefAttributes<HTMLElement>, never> & Partial<Pick<import("../typography").TypographyProps & import("react").RefAttributes<HTMLElement>, never>>> & string & Omit<import("react").ForwardRefExoticComponent<import("../typography").TypographyProps & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
35
|
+
export declare const TraceViewNameGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
36
|
+
export declare const TraceViewDuration: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("../typography").TypographyProps & import("react").RefAttributes<HTMLElement>, never> & Partial<Pick<import("../typography").TypographyProps & import("react").RefAttributes<HTMLElement>, never>>> & string & Omit<import("react").ForwardRefExoticComponent<import("../typography").TypographyProps & import("react").RefAttributes<HTMLElement>>, keyof import("react").Component<any, {}, any>>;
|
|
37
|
+
export declare const TraceViewInlineBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$tone"> & {
|
|
38
|
+
$tone: "warning" | "danger" | "success";
|
|
39
|
+
}, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$tone"> & {
|
|
40
|
+
$tone: "warning" | "danger" | "success";
|
|
41
|
+
}, never>>> & string;
|
|
42
|
+
export declare const TraceViewPlaceholderBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
43
|
+
export declare const TraceViewDetails: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { SVG } from '../../types';
|
|
2
|
+
export type TraceViewRowVariant = 'default' | 'timing' | 'new' | 'placeholder';
|
|
3
|
+
export type TraceViewCorner = 'left' | 'right' | 'both' | 'none';
|
|
4
|
+
export interface TraceViewAttribute {
|
|
5
|
+
key?: string | null;
|
|
6
|
+
value?: string | null;
|
|
7
|
+
}
|
|
8
|
+
export interface TraceViewRowBadge {
|
|
9
|
+
label?: string | null;
|
|
10
|
+
tone?: 'warning' | 'danger' | 'success' | null;
|
|
11
|
+
icon?: SVG | null;
|
|
12
|
+
}
|
|
13
|
+
export interface TraceViewRow {
|
|
14
|
+
/** Stable id used for selection / expand sync across paired views. */
|
|
15
|
+
id: string;
|
|
16
|
+
/** 1-based display index; omit/null for placeholder rows. */
|
|
17
|
+
index?: number | null;
|
|
18
|
+
service?: string | null;
|
|
19
|
+
name?: string | null;
|
|
20
|
+
durationLabel?: string | null;
|
|
21
|
+
depth?: number | null;
|
|
22
|
+
variant?: TraceViewRowVariant | null;
|
|
23
|
+
badge?: TraceViewRowBadge | null;
|
|
24
|
+
scope?: string | null;
|
|
25
|
+
attributes?: TraceViewAttribute[] | null;
|
|
26
|
+
}
|
|
27
|
+
export interface TraceViewMetaChip {
|
|
28
|
+
label: string;
|
|
29
|
+
}
|
|
30
|
+
export interface TraceViewHeaderBadge {
|
|
31
|
+
label: string;
|
|
32
|
+
tone?: 'success' | 'danger' | 'neutral' | null;
|
|
33
|
+
}
|
|
34
|
+
export interface TraceViewProps {
|
|
35
|
+
title?: string;
|
|
36
|
+
titleIcon?: SVG;
|
|
37
|
+
headerBadge?: TraceViewHeaderBadge | null;
|
|
38
|
+
meta?: TraceViewMetaChip[] | null;
|
|
39
|
+
rows?: TraceViewRow[] | null;
|
|
40
|
+
/** Ids of expanded span rows (multi-expand). */
|
|
41
|
+
expandedRowIds?: string[] | null;
|
|
42
|
+
/** Toggle a row id in the expanded set. */
|
|
43
|
+
onToggleRow?: (rowId: string) => void;
|
|
44
|
+
/** Rounding for split/compare layouts. */
|
|
45
|
+
corner?: TraceViewCorner | null;
|
|
46
|
+
}
|
package/lib/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{a3 as Autocomplete,bK as Badge,B as Button,i as ButtonSize,hl as ButtonTab,hm as ButtonTabList,j as ButtonVariants,b6 as CenterThis,w as Checkbox,hn as CheckboxList,a5 as CheckboxSize,cx as CliCommand,C as Code,cf as Condition,ch as Conditions,ho as DEFAULT_TIME_UNITS,m as DataCard,aa as Divider,D as Drawer,aE as DropData,dJ as DropDataAlignX,dI as DropDataAlignY,x as DropDown,hp as ErrorBoundary,k as FieldMessage,d as FieldTitle,F as FlexColumn,h as FlexRow,fc as GaugeChart,fd as GaugeChartVariant,hq as Header,hr as HoverActions,hs as INFO_ROW_HEIGHT_PX,I as IconButton,l as IconButtonSize,cC as IconGroup,cu as InfoRow,H as Input,ab as InputCardTable,G as InputList,z as InputTable,cU as Island,b7 as Loader,M as Modal,ht as ModalBody,hu as Navbar,N as NoData,K as Note,hv as Overlay,bH as Padding,eX as PageContent,ay as Radio,cd as RadioCard,hw as RadioGroup,bP as RadioSize,b5 as ScrollY,b8 as Search,a0 as SectionCard,hx as SectionCardSize,a2 as Segment,ac as SegmentSize,cR as SegmentVariant,bI as SkeletonLoader,fB as StatusCard,fg as Stepper,cS as Table,hy as TableContainer,hz as TableTitleWrap,cT as TableVariant,hA as TableWrap,Q as Tag,cw as TagVariants,y as TextArea,eY as TextCard,v as TimeInput,q as Toggle,hB as ToggleCodeComponent,r as ToggleLabelAlign,hC as ToggleList,s as ToggleSize,hD as ToggleVariant,T as Tooltip,f2 as TraceView,bQ as TruncatableTypography,e as Typography,f as TypographyColor,g as TypographySize,c9 as TypographyVariants,ff as UpgradeRequiredWrapper,hE as VerticalScroll,W as WarningModal,hF as resolveTypographyColor}from"./chunks/ui-components-DqG0z5U0.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"zustand/middleware";import"react-error-boundary";import"virtua";
|
package/lib/constants/index.d.ts
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { RecommendationState } from '../../types';
|
|
2
|
+
export declare const RECOMMENDATIONS_DRAWER_TITLE = "Recommendations";
|
|
3
|
+
export declare const RECOMMENDATIONS_DRAWER_SUBTITLE = "Optimize your observability setup with actionable recommendations.";
|
|
4
|
+
export declare const SECTION_RECOMMENDED = "Recommended";
|
|
5
|
+
export declare const SECTION_APPLIED = "Applied";
|
|
6
|
+
export declare const SECTION_DISMISSED = "Dismissed";
|
|
7
|
+
export declare const SECTION_NOT_APPLICABLE = "Not applicable";
|
|
8
|
+
export declare const SECTION_TITLES: Record<RecommendationState, string>;
|
|
9
|
+
export declare const BTN_ACCEPT = "Accept";
|
|
10
|
+
export declare const BTN_DISMISS = "Dismiss";
|
|
11
|
+
export declare const BTN_RESTORE = "Restore";
|
|
12
|
+
export declare const BTN_DOCS = "Docs";
|
|
13
|
+
export declare const LABEL_BENEFITS = "Benefits";
|
|
14
|
+
export declare const LABEL_CONSIDERATIONS = "Considerations";
|
|
15
|
+
export declare const LABEL_ENABLE_RECOMMENDATION = "Apply Recommendation";
|
|
16
|
+
export declare const LABEL_APPLY_VIA_UI = "Apply via UI";
|
|
17
|
+
export declare const LABEL_APPLY_VIA_GITOPS = "Apply via GitOps";
|
|
18
|
+
export declare const LABEL_VIA_UI = "Via UI";
|
|
19
|
+
export declare const LABEL_VIA_GITOPS = "Via GitOps";
|
|
20
|
+
export declare const ACCEPT_RECOMMENDATION_DESCRIPTION = "Accept to choose how to apply this recommendation, or dismiss it if it is not relevant.";
|
|
21
|
+
export declare const INSTALLATION_METHOD_DESCRIPTION = "There are 2 ways to apply this recommendation.";
|
|
22
|
+
export declare const APPLY_VIA_UI_DESCRIPTION = "Odigos applies the selected change immediately.";
|
|
23
|
+
export declare const APPLY_VIA_GITOPS_DESCRIPTION = "Commit the configuration to your repository and let your GitOps controller apply it.";
|
|
24
|
+
export declare const GITOPS_OVERRIDE_WARNING = "UI changes apply only to this cluster and will not carry over if you re-install odigos.";
|
|
25
|
+
export declare const EMPTY_TITLE = "No recommendations";
|
|
26
|
+
export declare const EMPTY_SUBTITLE = "There are no recommendations for this cluster right now.";
|
|
27
|
+
export declare const NOT_APPLICABLE_SUMMARY = "This recommendation does not currently apply to your cluster.";
|
|
28
|
+
export declare const SUCCESS_DISMISSED = "Recommendation dismissed";
|
|
29
|
+
export declare const SUCCESS_RESTORED = "Recommendation restored";
|
|
30
|
+
export declare const SUCCESS_APPLIED = "Recommendation applied successfully";
|
|
31
|
+
export declare const ERROR_APPLY_RECOMMENDATION = "Failed to apply recommendation";
|
|
@@ -48,6 +48,9 @@ export declare const DISPLAY_TITLES: {
|
|
|
48
48
|
CLOUD_CONNECTOR_CUSTOM_COL_TYPE: string;
|
|
49
49
|
CLOUD_CONNECTOR_CUSTOM_COL_DISCOVERY: string;
|
|
50
50
|
CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION: string;
|
|
51
|
+
CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION_TOOLTIP: string;
|
|
52
|
+
CLOUD_CONNECTOR_INSTRUMENTATION_MANAGED_BY_ODIGOS: string;
|
|
53
|
+
CLOUD_CONNECTOR_INSTRUMENTATION_SELF_MANAGED: string;
|
|
51
54
|
CLOUD_CONNECTOR_SETUP_CREDENTIALS_TITLE: string;
|
|
52
55
|
CLOUD_CONNECTOR_SETUP_CREDENTIALS_SUBTITLE: string;
|
|
53
56
|
CLOUD_CONNECTOR_AUTH_TITLE: string;
|
package/lib/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{d6 as ACCEPT_RECOMMENDATION_DESCRIPTION,bJ as ACTION_CATEGORIES,bv as ACTION_OPTIONS,gP as ACTION_TYPE_TO_CATEGORY,gQ as ALL_LANGUAGES_WILDCARD,gR as ALL_SOURCES,d1 as APPLY_VIA_GITOPS_DESCRIPTION,d3 as APPLY_VIA_UI_DESCRIPTION,d7 as BTN_ACCEPT,dm as BTN_CANCEL,du as BTN_CONTINUE_EDITING,fE as BTN_CREATE_FIRST_RULE,cW as BTN_CREATE_RULE,dq as BTN_DELETE_RULE,d8 as BTN_DISMISS,dg as BTN_DOCS,ad as BTN_EDIT_AUTO_RULE,dp as BTN_EDIT_RULE,dh as BTN_RESTORE,dE as BTN_SAVE,dn as BTN_SAVE_RULE,n as BUTTON_TEXTS,dr as CATEGORY_DESCRIPTIONS,b0 as CATEGORY_LABELS,dt as CATEGORY_TITLES,gS as CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,gT as CREATE_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,gU as CREATE_NOISY_AUTO_RULE_DRAWER_TITLE,cb as DEFAULT_CLUSTER_ID,ca as DEFAULT_CLUSTER_NAME,fy as DEFAULT_DATA_STREAM_NAME,as as DESC_DURATION,gV as DESC_ERRORS,av as DESC_OPERATION,gW as DESC_PERCENTAGE_HIGHLY_RELEVANT,c0 as DESC_PERCENTAGE_NOISY,b1 as DESC_RULE_TYPE,a1 as DESC_SOURCE_SCOPE,c7 as DESTINATION_CATEGORIES,fk as DISPLAY_LANGUAGES,o as DISPLAY_TITLES,bR as DOCS_BASE_URL,bA as DestinationCategoryTypes,dA as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,dB as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,dy as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,dz as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,dC as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,dD as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,ds as EDIT_TITLES,dk as EMPTY_SUBTITLE,dl as EMPTY_TITLE,aJ as EMPTY_VALUE,bn as ERROR_APPLY_RECOMMENDATION,bO as EXTRACTION_FORMAT_COPY,bM as EXTRACT_ATTRIBUTE_FORM,fC as FILTER_TYPE_ALL,bb as FORM_ALERTS,d4 as GITOPS_OVERRIDE_WARNING,d9 as INSTALLATION_METHOD_DESCRIPTION,bE as INSTRUMENTATION_RULE_OPTIONS,d0 as LABEL_APPLY_VIA_GITOPS,d2 as LABEL_APPLY_VIA_UI,de as LABEL_BENEFITS,df as LABEL_CONSIDERATIONS,at as LABEL_CUSTOM_DURATION,c4 as LABEL_CUSTOM_PERCENTAGE,c3 as LABEL_DISABLED,cV as LABEL_DISABLED_RULE,aT as LABEL_DROP_ALL,bZ as LABEL_DROP_AT_MOST,c2 as LABEL_ENABLED,d5 as LABEL_ENABLE_RECOMMENDATION,aB as LABEL_HTTP_ROUTE,aD as LABEL_HTTP_ROUTE_PREFIX,aG as LABEL_KAFKA_TOPIC,aU as LABEL_KEEP_ALL,aQ as LABEL_KEEP_AT_LEAST,aR as LABEL_KEEP_AT_MOST,aP as LABEL_KEEP_PERCENTAGE,ar as LABEL_KEEP_TRACES_DURATION,ap as LABEL_KEEP_TRACES_ERRORS,aF as LABEL_METHOD,aY as LABEL_NOTE,ae as LABEL_NO_PREVIEW,aI as LABEL_OPERATION_TYPE,gX as LABEL_RULE_DISABLED,gY as LABEL_RULE_ENABLED,aW as LABEL_RULE_NAME,aX as LABEL_RULE_TYPE,aS as LABEL_SAMPLE,ax as LABEL_SERVER_ADDRESS,aA as LABEL_TEMPLATED_PATH,aC as LABEL_TEMPLATED_PATH_PREFIX,db as LABEL_VIA_GITOPS,da as LABEL_VIA_UI,cJ as LANGUAGE_OPTIONS,b4 as MONITORS_OPTIONS,L as NOTE_ENTIRE_CLUSTER,Z as NOTE_SOURCE_SCOPE_LOGIC,dc as NOT_APPLICABLE_SUMMARY,gZ as OPENTELEMETRY_EBPF_DISTRO_OPTION,aL as OPERATION_ALL,aK as OPERATION_HTTP_CLIENT,aH as OPERATION_HTTP_SERVER,aM as OPERATION_KAFKA_CONSUMER,aN as OPERATION_KAFKA_PRODUCER,cI as OTEL_DISTRO_NAME_OPTIONS,aO as PERCENTAGE_SECTION_DESCRIPTIONS,a_ as PLACEHOLDER_NOTE,az as PLACEHOLDER_ROUTE,aZ as PLACEHOLDER_RULE_NAME,a4 as PLACEHOLDER_SEARCH_SOURCE,aw as PLACEHOLDER_SERVER_ADDRESS,ct as PROCESS_ATTRIBUTE_NAMES,di as RECOMMENDATIONS_DRAWER_SUBTITLE,dj as RECOMMENDATIONS_DRAWER_TITLE,c as REGEX_TESTER_DRAWER,c1 as SAMPLING_AUTO_RULE_TITLE,fK as SAMPLING_BTN_CREATE_RULE,fI as SAMPLING_BTN_DOCS,fJ as SAMPLING_BTN_REFRESH,b$ as SAMPLING_COST_REDUCTION_AUTO_RULE_TITLE,dv as SAMPLING_DEFAULT_CONFIRM_DESCRIPTION,dx as SAMPLING_DEFAULT_CONFIRM_PREVIEW_LABEL,dw as SAMPLING_DEFAULT_CONFIRM_TITLE,fN as SAMPLING_DELETE_MODAL_APPROVE,fO as SAMPLING_DELETE_MODAL_CANCEL,fP as SAMPLING_DELETE_MODAL_DESCRIPTION,fQ as SAMPLING_DELETE_MODAL_TITLE,dF as SAMPLING_DRAWER_WIDTH,fH as SAMPLING_DUPLICATE_RULE_WARNING,bY as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,et as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_1,eu as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_2,ev as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_3,ew as SAMPLING_ONBOARDING_ADVANCED_LEFT_TITLE,ex as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_1,ey as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_2,ez as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_3,eA as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_4,eB as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_5,eC as SAMPLING_ONBOARDING_ADVANCED_RIGHT_TITLE,eE as SAMPLING_ONBOARDING_ADVANCED_SUBTITLE,eD as SAMPLING_ONBOARDING_ADVANCED_TITLE,eV as SAMPLING_ONBOARDING_AMBIENT_LABEL,d$ as SAMPLING_ONBOARDING_BTN_GO_TO,dM as SAMPLING_ONBOARDING_BTN_NEXT,es as SAMPLING_ONBOARDING_BTN_READ_MORE,ea as SAMPLING_ONBOARDING_BTN_SKIP,eb as SAMPLING_ONBOARDING_BTN_START,eF as SAMPLING_ONBOARDING_COMMON_BANNER,eU as SAMPLING_ONBOARDING_COMMON_RULES_SECTION,eI as SAMPLING_ONBOARDING_DROP_DESCRIPTION,eH as SAMPLING_ONBOARDING_DROP_SUBTITLE,eG as SAMPLING_ONBOARDING_DROP_TITLE,eL as SAMPLING_ONBOARDING_ERROR_PRESET_NAME,eK as SAMPLING_ONBOARDING_ERROR_PRESET_TOGGLE_LABEL,eO as SAMPLING_ONBOARDING_KEEP_DESCRIPTION,eN as SAMPLING_ONBOARDING_KEEP_SUBTITLE,eM as SAMPLING_ONBOARDING_KEEP_TITLE,eP as SAMPLING_ONBOARDING_KEEP_USE_CASE_1,eQ as SAMPLING_ONBOARDING_KEEP_USE_CASE_2,eR as SAMPLING_ONBOARDING_KEEP_USE_CASE_3,eS as SAMPLING_ONBOARDING_KEEP_USE_CASE_4,eT as SAMPLING_ONBOARDING_KEEP_USE_CASE_5,dT as SAMPLING_ONBOARDING_NOISY_BANNER,dP as SAMPLING_ONBOARDING_NOISY_DESCRIPTION,dS as SAMPLING_ONBOARDING_NOISY_PRESET_NAME,dQ as SAMPLING_ONBOARDING_NOISY_PRESET_SECTION,dR as SAMPLING_ONBOARDING_NOISY_PRESET_TOGGLE_LABEL,dO as SAMPLING_ONBOARDING_NOISY_SUBTITLE,dN as SAMPLING_ONBOARDING_NOISY_TITLE,eJ as SAMPLING_ONBOARDING_PRESET_RULES_SECTION,dL as SAMPLING_ONBOARDING_RECOMMENDED_BADGE,ep as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_BADGE,eq as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_DESC,er as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_NAME,em as SAMPLING_ONBOARDING_STRATEGY_DROP_BADGE,ek as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_1,el as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_2,en as SAMPLING_ONBOARDING_STRATEGY_DROP_DESC,eo as SAMPLING_ONBOARDING_STRATEGY_DROP_NAME,eh as SAMPLING_ONBOARDING_STRATEGY_KEEP_BADGE,ef as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_1,eg as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_2,ei as SAMPLING_ONBOARDING_STRATEGY_KEEP_DESC,ej as SAMPLING_ONBOARDING_STRATEGY_KEEP_NAME,ee as SAMPLING_ONBOARDING_STRATEGY_KEEP_WARNING,ed as SAMPLING_ONBOARDING_STRATEGY_SUBTITLE,ec as SAMPLING_ONBOARDING_STRATEGY_TITLE,dY as SAMPLING_ONBOARDING_SUCCESS_BULLET_1,dZ as SAMPLING_ONBOARDING_SUCCESS_BULLET_2,d_ as SAMPLING_ONBOARDING_SUCCESS_BULLET_3,dX as SAMPLING_ONBOARDING_SUCCESS_INTRO,dW as SAMPLING_ONBOARDING_SUCCESS_SUBTITLE,dV as SAMPLING_ONBOARDING_SUCCESS_TITLE,e9 as SAMPLING_ONBOARDING_WELCOME_BANNER,e2 as SAMPLING_ONBOARDING_WELCOME_INTRO,e3 as SAMPLING_ONBOARDING_WELCOME_STAGE_1_DESC,e4 as SAMPLING_ONBOARDING_WELCOME_STAGE_1_TITLE,e5 as SAMPLING_ONBOARDING_WELCOME_STAGE_2_DESC,e6 as SAMPLING_ONBOARDING_WELCOME_STAGE_2_TITLE,e7 as SAMPLING_ONBOARDING_WELCOME_STAGE_3_DESC,e8 as SAMPLING_ONBOARDING_WELCOME_STAGE_3_TITLE,e1 as SAMPLING_ONBOARDING_WELCOME_SUBTITLE,e0 as SAMPLING_ONBOARDING_WELCOME_TITLE,fL as SAMPLING_PAGE_DESCRIPTION,fM as SAMPLING_PAGE_TITLE,a7 as SCOPE_AND_LABEL,a6 as SCOPE_GROUP_ANY_OF_HINT,Y as SCOPE_GROUP_LANGUAGES_TITLE,X as SCOPE_GROUP_NAMESPACES_TITLE,O as SCOPE_GROUP_SOURCES_TITLE,g_ as SECTION_APPLIED,g$ as SECTION_DISMISSED,aq as SECTION_DURATION,ao as SECTION_ERRORS,b_ as SECTION_KEEP_PERCENTAGE,h0 as SECTION_NOT_APPLICABLE,au as SECTION_OPERATION,h1 as SECTION_RECOMMENDED,b2 as SECTION_SAMPLING_PREVIEW,a8 as SECTION_SOURCE_SCOPE,dd as SECTION_TITLES,fj as STORAGE_KEYS,bo as SUCCESS_APPLIED,bp as SUCCESS_DISMISSED,bq as SUCCESS_RESTORED,fD as TITLE_NO_RESULTS,fF as TITLE_NO_RULES,h2 as TOKEN_ABOUT_TO_EXPIRE,a$ as TOOLTIP_NOTE,U as UNKNOWN_SOURCE_LABEL,aV as UNNAMED_RULE,co as canAgentReportPodStartTime,fG as getNoResultsSubTitle,cQ as getSourceConditionsForPanel,c5 as getSupportedActionOptions,bW as getSupportedLanguageIcon,bX as getSupportedLanguageLabel,h3 as isActionSupportedOnPlatform,h4 as isActionSupportedOnVersion,bT as isRuleSourceScopeSupported,bk as mapActionTypesToOptions,bs as mapRuleTypesToOptions,bU as normalizeSupportedLanguagesForDisplay,cP as shouldShowSourceConditionsPanel,h5 as supportsAllLanguages,bV as toScopeSupportedLanguages}from"./chunks/ui-components-DqG0z5U0.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"zustand/middleware";import"react-error-boundary";import"virtua";
|
|
@@ -6,8 +6,11 @@ export interface RuntimeCardProps {
|
|
|
6
6
|
/**
|
|
7
7
|
* Connector/VM counterpart to the K8s Containers card row: one instrumentation
|
|
8
8
|
* unit (the source itself) with runtime + instrumented badge and source-level
|
|
9
|
-
* runtime/distro overrides.
|
|
10
|
-
*
|
|
9
|
+
* runtime/distro overrides.
|
|
10
|
+
*
|
|
11
|
+
* Used for kinds without a container layer (Lambda, process, systemd). When
|
|
12
|
+
* `source.containers` is populated (ECS/Fargate/docker), Overview renders
|
|
13
|
+
* ContainersCard instead — that card owns per-container overrides.
|
|
11
14
|
*
|
|
12
15
|
* VM only: nests a per-PID process list from WorkloadReport.instances/processMetadata.
|
|
13
16
|
*/
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import { type K8sWorkloadPodContainerProcess
|
|
2
|
+
import { type K8sWorkloadPodContainerProcess } from '../../../../../types';
|
|
3
3
|
export declare const ProcessCard: FC<K8sWorkloadPodContainerProcess & {
|
|
4
4
|
overrideProcessNum?: number;
|
|
5
5
|
isJumpToTarget?: boolean;
|
|
6
6
|
}>;
|
|
7
|
-
interface InfoRowProps extends Pick<K8sWorkloadPodContainerProcessInstrumentation, 'isStandardLibrary' | 'healthy' | 'message'> {
|
|
8
|
-
label: string;
|
|
9
|
-
value?: string | null;
|
|
10
|
-
}
|
|
11
|
-
export declare const InfoRow: FC<InfoRowProps>;
|
|
12
|
-
export {};
|
|
@@ -9,5 +9,6 @@ export * from './edit-destination-drawer';
|
|
|
9
9
|
export * from './edit-rule-drawer';
|
|
10
10
|
export * from './edit-source-drawer';
|
|
11
11
|
export * from './regex-tester-drawer';
|
|
12
|
+
export * from './recommendations-drawer';
|
|
12
13
|
export * from './sampling-rule-drawer';
|
|
13
14
|
export * from './system-drawer';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RecommendationState, StatusType, type ActionFormData, type Recommendation, type RecommendationCatalogRemediation, type SVG } from '../../../types';
|
|
2
|
+
export interface RecommendationCategoryPresentation {
|
|
3
|
+
icon: SVG;
|
|
4
|
+
status: StatusType;
|
|
5
|
+
}
|
|
6
|
+
export declare const getRecommendationCategoryPresentation: (category?: string | null) => RecommendationCategoryPresentation;
|
|
7
|
+
export declare const RECOMMENDATION_STATE_STATUS: Record<RecommendationState, StatusType>;
|
|
8
|
+
export declare const hasOdigosActionExample: (remediation: RecommendationCatalogRemediation) => boolean;
|
|
9
|
+
export declare const buildRemediationAction: (remediation: RecommendationCatalogRemediation) => ActionFormData | undefined;
|
|
10
|
+
/** Derive the UI state from the three wire booleans. Compute once — never inline. */
|
|
11
|
+
export declare const getRecommendationState: (recommendation: Pick<Recommendation, "applied" | "conditionsMet" | "dismissed">) => RecommendationState;
|
|
12
|
+
export interface GroupedRecommendations {
|
|
13
|
+
[RecommendationState.Recommended]: Recommendation[];
|
|
14
|
+
[RecommendationState.Applied]: Recommendation[];
|
|
15
|
+
[RecommendationState.Dismissed]: Recommendation[];
|
|
16
|
+
[RecommendationState.NotApplicable]: Recommendation[];
|
|
17
|
+
}
|
|
18
|
+
/** Group recommendations into the four display sections. */
|
|
19
|
+
export declare const groupRecommendations: (items: Recommendation[]) => GroupedRecommendations;
|
|
20
|
+
/** Count of items in the Recommended section — drives the header badge. */
|
|
21
|
+
export declare const countRecommended: (items: Recommendation[]) => number;
|
|
22
|
+
export declare const SECTION_ORDER: RecommendationState[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type DrawerProps } from '../../../components';
|
|
3
|
+
import { type HeaderProps } from '../../../components/drawer/header';
|
|
4
|
+
export interface RecommendationsDrawerProps {
|
|
5
|
+
isOpen: DrawerProps['isOpen'];
|
|
6
|
+
onClose: HeaderProps['onClose'];
|
|
7
|
+
}
|
|
8
|
+
export declare const RecommendationsDrawer: FC<RecommendationsDrawerProps>;
|
|
9
|
+
export { getRecommendationState, groupRecommendations, countRecommended, SECTION_ORDER } from './helpers';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { RecommendationState, type Recommendation, type RecommendationCatalogRemediation, type RecommendationRemediationType } from '../../../types';
|
|
3
|
+
export interface RecommendationCardProps {
|
|
4
|
+
recommendation: Recommendation;
|
|
5
|
+
state: RecommendationState;
|
|
6
|
+
onDismiss?: (name: string, dismissed: boolean) => Promise<{
|
|
7
|
+
error?: string;
|
|
8
|
+
} | undefined>;
|
|
9
|
+
onApplyServerRemediation?: (remediationType: RecommendationRemediationType) => Promise<boolean>;
|
|
10
|
+
onCreateAction?: (remediation: RecommendationCatalogRemediation) => Promise<boolean>;
|
|
11
|
+
onRemediationApplied?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const RecommendationCard: FC<RecommendationCardProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type Recommendation, type RecommendationCatalogRemediation, type RecommendationRemediationType } from '../../../types';
|
|
3
|
+
export interface RemediationActionsProps {
|
|
4
|
+
recommendation: Recommendation;
|
|
5
|
+
onApplyServerRemediation?: (remediationType: RecommendationRemediationType) => Promise<boolean>;
|
|
6
|
+
onCreateAction?: (remediation: RecommendationCatalogRemediation) => Promise<boolean>;
|
|
7
|
+
onApplied?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const RemediationActions: FC<RemediationActionsProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { Recommendation, RecommendationCatalogRemediation, RecommendationRemediationType } from '../../../types';
|
|
3
|
+
export interface RemediationMethodsProps {
|
|
4
|
+
recommendation: Recommendation;
|
|
5
|
+
onDismiss?: (name: string, dismissed: boolean) => Promise<{
|
|
6
|
+
error?: string;
|
|
7
|
+
} | undefined>;
|
|
8
|
+
onAcceptedChange?: (accepted: boolean) => void;
|
|
9
|
+
onApplyServerRemediation?: (remediationType: RecommendationRemediationType) => Promise<boolean>;
|
|
10
|
+
onCreateAction?: (remediation: RecommendationCatalogRemediation) => Promise<boolean>;
|
|
11
|
+
onApplied?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const RemediationMethods: FC<RemediationMethodsProps>;
|
package/lib/containers/insights/findings/drawer/anomaly/anomaly-blast-radius/animated-edge.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BlastRadiusEdgeTypes, type BlastRadiusEdgeData } from './types';
|
|
3
|
+
import { type Edge, type EdgeProps } from '@xyflow/react';
|
|
4
|
+
export type BlastRadiusAnimatedEdgeType = Edge<BlastRadiusEdgeData, BlastRadiusEdgeTypes.Animated>;
|
|
5
|
+
/**
|
|
6
|
+
* Packet-stream animation (service-map style). Duration scales with path length.
|
|
7
|
+
* Attacker edges use red track/packets; others keep silver.
|
|
8
|
+
*/
|
|
9
|
+
declare const BlastRadiusAnimatedEdgeComponent: React.FC<EdgeProps<BlastRadiusAnimatedEdgeType>>;
|
|
10
|
+
export { BlastRadiusAnimatedEdgeComponent as BlastRadiusAnimatedEdge };
|
package/lib/containers/insights/findings/drawer/anomaly/anomaly-blast-radius/blast-radius-node.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type BlastRadiusServiceNode } from './types';
|
|
3
|
+
import { type NodeProps } from '@xyflow/react';
|
|
4
|
+
type BlastRadiusNodeProps = NodeProps<BlastRadiusServiceNode>;
|
|
5
|
+
export declare const BlastRadiusNode: FC<BlastRadiusNodeProps>;
|
|
6
|
+
export {};
|