@odigos/ui-kit 0.0.238 → 0.0.239
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 +14 -0
- package/lib/chunks/{index-D6SlbWIi.js → index-B5PgIL40.js} +1 -1
- package/lib/chunks/index-Dy4pkeq6.js +145 -0
- package/lib/chunks/index-uXyrp4Xe.js +41 -0
- package/lib/chunks/ui-components-BPdnIOmj.js +2248 -0
- package/lib/components/_v2/cards/data-card/index.d.ts +6 -1
- package/lib/components/_v2/drawer/header/index.d.ts +2 -0
- package/lib/components/_v2/drawer/index.d.ts +1 -1
- package/lib/components/_v2/drop-data/index.d.ts +1 -2
- package/lib/components/_v2/icon-group/index.d.ts +10 -0
- package/lib/components/_v2/index.d.ts +1 -0
- package/lib/components/_v2/tag/index.d.ts +10 -0
- package/lib/components/_v2/typography/index.d.ts +2 -0
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants/sources/index.d.ts +5 -0
- package/lib/constants/strings/index.d.ts +89 -0
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/_drawers/edit-source-drawer/common/index.d.ts +1 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/common/pods-header.d.ts +8 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/helpers.d.ts +12 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/index.d.ts +19 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/distro-override.d.ts +11 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/index.d.ts +7 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/popup-form.d.ts +15 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/runtime-override.d.ts +10 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/health-card.d.ts +6 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/index.d.ts +10 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/main-card.d.ts +6 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/index.d.ts +6 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/container-row.d.ts +9 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/helpers.d.ts +16 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/index.d.ts +12 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/pod-row.d.ts +8 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/process-row.d.ts +10 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/row-header.d.ts +13 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/types.d.ts +18 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/statuses-card.d.ts +8 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/peers/index.d.ts +11 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/pods/containers-card/index.d.ts +7 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/pods/containers-card/process-card.d.ts +3 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/pods/debug-commands.d.ts +6 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/pods/index.d.ts +7 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/pods/pod-card.d.ts +8 -0
- package/lib/containers/_v2/_drawers/index.d.ts +1 -0
- package/lib/containers/_v2/_forms/edit-source-form/index.d.ts +2 -0
- package/lib/containers/_v2/_forms/index.d.ts +1 -0
- package/lib/containers/_v2/_modals/index.d.ts +1 -0
- package/lib/containers/_v2/_modals/onboarding-done/background.d.ts +5 -0
- package/lib/containers/_v2/_modals/onboarding-done/index.d.ts +3 -0
- package/lib/containers/_v2/overview/drawers/index.d.ts +1 -3
- package/lib/containers/source-drawer/index.d.ts +1 -1
- package/lib/containers/v2.js +226 -121
- package/lib/containers.js +49 -19
- package/lib/contexts/action-form-context.d.ts +0 -1
- package/lib/contexts/destination-form-context.d.ts +0 -1
- package/lib/contexts/index.d.ts +1 -0
- package/lib/contexts/rule-form-context.d.ts +0 -1
- package/lib/contexts/source-edit-form-context.d.ts +17 -0
- package/lib/contexts.js +1 -1
- package/lib/functions/get-containers-icons/index.d.ts +3 -1
- package/lib/functions/get-virtual-service-icon/index.d.ts +1 -1
- package/lib/functions/get-workload-id/index.d.ts +2 -2
- package/lib/functions/index.d.ts +2 -0
- package/lib/functions/is-pod-injected-with-agent/index.d.ts +3 -0
- package/lib/functions/map-desired-status-to-condition-status/index.d.ts +2 -0
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/icons/brand/index.d.ts +3 -0
- package/lib/icons/brand/odigos-logo-text-colored-central/index.d.ts +2 -0
- package/lib/icons/brand/odigos-logo-text-colored-community/index.d.ts +2 -0
- package/lib/icons/brand/odigos-logo-text-colored-enterprise/index.d.ts +2 -0
- package/lib/icons.js +1 -1
- package/lib/mock-data/profiling/index.d.ts +1 -1
- package/lib/mock-data/service-map/index.d.ts +1 -1
- package/lib/mock-data/sources/index.d.ts +1 -1
- package/lib/snippets/_v2/odigos-logo-text-by-tier/index.d.ts +2 -0
- package/lib/snippets/_v2/rich-title/index.d.ts +5 -0
- package/lib/snippets/_v2/wide-drawer/index.d.ts +7 -1
- package/lib/snippets/source-container/index.d.ts +1 -2
- package/lib/snippets/v2.js +1 -1
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/common/index.d.ts +28 -0
- package/lib/types/service-map/index.d.ts +2 -2
- package/lib/types/sources/index.d.ts +7 -3
- package/lib/types/workload/index.d.ts +178 -1
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/index-CCaTS6aq.js +0 -145
- package/lib/chunks/index-ChkHWnzu.js +0 -77
- package/lib/chunks/ui-components-rpRyPe3l.js +0 -2235
- /package/lib/containers/{source-drawer → _v2/_drawers/edit-source-drawer}/profiling/flame-graph-canvas.d.ts +0 -0
- /package/lib/containers/{source-drawer → _v2/_drawers/edit-source-drawer}/profiling/flamebearer.d.ts +0 -0
- /package/lib/containers/{source-drawer → _v2/_drawers/edit-source-drawer}/profiling/index.d.ts +0 -0
- /package/lib/containers/{source-drawer → _v2/_drawers/edit-source-drawer}/profiling/symbol-table.d.ts +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ReactNode, type FC, type CSSProperties } from 'react';
|
|
2
2
|
import { type BadgeProps } from '../../badge';
|
|
3
3
|
import { DefaultTheme } from 'styled-components';
|
|
4
|
+
import { type DropDataProps } from '../../drop-data';
|
|
4
5
|
import { type ActionsProps } from '@/snippets/_v2/actions';
|
|
5
6
|
import { type RichTitleProps } from '@/snippets/_v2/rich-title';
|
|
6
7
|
type BgTint = keyof DefaultTheme['v2']['colors']['silver'];
|
|
@@ -12,13 +13,17 @@ export interface DataCardProps {
|
|
|
12
13
|
richTitle?: RichTitleProps;
|
|
13
14
|
withCollapse?: boolean;
|
|
14
15
|
collapseIsDefaultOpen?: boolean;
|
|
15
|
-
actions?: ActionsProps['actions'];
|
|
16
16
|
badges?: (BadgeProps & {
|
|
17
17
|
key: string;
|
|
18
18
|
})[];
|
|
19
|
+
actions?: ActionsProps['actions'];
|
|
20
|
+
dropDataActions?: (DropDataProps['items'][number] & {
|
|
21
|
+
onClick: () => void;
|
|
22
|
+
})[];
|
|
19
23
|
cellsPerRow?: number;
|
|
20
24
|
items?: {
|
|
21
25
|
id: string;
|
|
26
|
+
spacer?: boolean;
|
|
22
27
|
/** Optional. When omitted/empty the small grey title row is not rendered. */
|
|
23
28
|
title?: string;
|
|
24
29
|
titleTooltip?: string;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
2
|
import type { SVG } from '@/types';
|
|
3
|
+
import { type BadgeProps } from '../../badge';
|
|
3
4
|
import { type ToggleProps } from '../../toggle';
|
|
4
5
|
import { type DropDataProps } from '../../drop-data';
|
|
5
6
|
export interface HeaderProps {
|
|
6
7
|
icon?: SVG;
|
|
7
8
|
iconSrc?: string;
|
|
8
9
|
title?: string;
|
|
10
|
+
titleBadges?: BadgeProps[];
|
|
9
11
|
subTitle?: string;
|
|
10
12
|
toggleProps?: ToggleProps;
|
|
11
13
|
actions?: (DropDataProps['items'][number] & {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type FC, type CSSProperties, type ReactNode, type MouseEvent } from 'react';
|
|
2
2
|
import type { SVG } from '@/types';
|
|
3
3
|
import { type ButtonProps } from '../button';
|
|
4
|
-
import { type IconButtonProps } from '../icon-button';
|
|
5
4
|
export declare enum DropDataAlignX {
|
|
6
5
|
Left = "left",
|
|
7
6
|
Right = "right"
|
|
@@ -32,7 +31,7 @@ export interface DropDataProps {
|
|
|
32
31
|
fullWidth?: boolean;
|
|
33
32
|
maxHeight?: CSSProperties['maxHeight'];
|
|
34
33
|
buttonProps?: Omit<ButtonProps, 'fullWidth'>;
|
|
35
|
-
iconButtonProps?:
|
|
34
|
+
iconButtonProps?: Omit<ButtonProps, 'variant' | 'size'>;
|
|
36
35
|
isLoading?: boolean;
|
|
37
36
|
emptyMessage?: string;
|
|
38
37
|
children?: ReactNode | ((props: {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { SVG } from '@/types';
|
|
3
|
+
export interface IconGroupProps {
|
|
4
|
+
icons?: SVG[];
|
|
5
|
+
icon?: SVG;
|
|
6
|
+
iconSrc?: string;
|
|
7
|
+
smallIconSize?: number;
|
|
8
|
+
largeIconSize?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const IconGroup: FC<IconGroupProps>;
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { CSSProperties, type FC } from 'react';
|
|
2
2
|
import { type SVG } from '@/types';
|
|
3
|
+
export declare enum TagVariants {
|
|
4
|
+
Default = "default",
|
|
5
|
+
Purple = "purple",
|
|
6
|
+
Yellow = "yellow",
|
|
7
|
+
Blue = "blue",
|
|
8
|
+
Pink = "pink",
|
|
9
|
+
Green = "green",
|
|
10
|
+
Loader = "loader"
|
|
11
|
+
}
|
|
3
12
|
export interface TagProps {
|
|
13
|
+
variant?: TagVariants;
|
|
4
14
|
label: string;
|
|
5
15
|
leftIcon?: SVG;
|
|
6
16
|
rightIcon?: SVG;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { type CSSProperties } from 'react';
|
|
2
|
+
import { type DefaultTheme } from 'styled-components';
|
|
2
3
|
export declare enum TypographyVariants {
|
|
3
4
|
H1 = "h1",
|
|
4
5
|
H2 = "h2",
|
|
@@ -35,6 +36,7 @@ export declare enum TypographyColor {
|
|
|
35
36
|
Link = "link",
|
|
36
37
|
Success = "success"
|
|
37
38
|
}
|
|
39
|
+
export declare const resolveTypographyColor: (theme: DefaultTheme, color?: TypographyProps["color"]) => string | undefined;
|
|
38
40
|
export interface TypographyProps {
|
|
39
41
|
children: React.ReactNode;
|
|
40
42
|
variant?: TypographyVariants;
|
package/lib/components/v2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{fH as Autocomplete,p as Badge,e as Button,B as ButtonSize,hx as ButtonTab,hy as ButtonTabList,a as ButtonVariants,aw as Checkbox,hz as CheckboxList,dW as CheckboxSize,bP as CliCommand,bO as Condition,bC as Conditions,hA as DEFAULT_TIME_UNITS,D as DataCard,$ as Drawer,cl as DropData,cn as DropDataAlignX,cm as DropDataAlignY,bh as DropDown,ax as FieldMessage,av as FieldTitle,ed as GaugeChart,hB as GaugeChartVariant,hC as Header,af as HoverActions,bi as IconButton,bj as IconButtonSize,bU as IconGroup,ay as Input,aD as InputList,aB as InputTable,dN as Island,L as Loader,cp as Modal,hD as Navbar,N as NoData,aL as Note,d9 as Radio,hE as RadioGroup,da as RadioSize,o as Search,bb as SectionCard,hF as SectionCardSize,S as Segment,l as SegmentSize,k as SegmentVariant,ec as StatusCard,dO as Stepper,m as Table,n as TableVariant,bJ as Tag,bS as TagVariants,aI as TextArea,ee as TextCard,eN as TimeInput,T as Toggle,d as ToggleLabelAlign,hG as ToggleList,c as ToggleSize,hH as ToggleVariant,dY as TruncatableTypography,f as Typography,h as TypographyColor,i as TypographySize,bs as TypographyVariants,a$ as WarningModal,hI as resolveTypographyColor}from"../chunks/ui-components-BPdnIOmj.js";import"react/jsx-runtime";import"styled-components";import"../icons.js";import"zustand";import"react";import"javascript-time-ago";import"../chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"virtua";
|
package/lib/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{h2 as Badge,h3 as Button,R as CancelWarning,b as CenterThis,h4 as Checkbox,C as Code,aq as ConditionDetails,ae as DataCard,a4 as DataCardFieldTypes,h5 as DataCardFields,h6 as DataTab,Q as DeleteWarning,ac as DescribeRow,a0 as Divider,O as Drawer,h7 as DrawerFooter,h8 as DrawerHeader,h9 as Dropdown,ha as ErrorBoundary,hb as ExtendArrow,a9 as FadeLoader,hc as FieldError,hd as FieldLabel,q as FlexColumn,F as FlexRow,I as IconButton,he as IconGroup,hf as IconWrapped,hg as ImageControlled,V as Input,hh as LoadingText,hi as Modal,hj as ModalBody,hk as MonitorsIcons,v as NoDataFound,ah as NotificationNote,hl as Overlay,bB as Padding,dI as PageContent,t as Popup,hm as PopupForm,hn as ScrollX,bT as ScrollY,d_ as SkeletonLoader,a6 as Status,ho as TabList,hp as TableContainer,hq as TableTitleWrap,hr as TableWrap,w as Text,hs as ToggleCodeComponent,j as Tooltip,ef as UpgradeRequiredWrapper,ht as VerticalScroll,as as WarningModal,hu as getLinksFromText,hv as getStrongsFromText,hw as renderText}from"./chunks/ui-components-BPdnIOmj.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"virtua";
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { DropdownOption } from '@/components';
|
|
2
2
|
import { OtelDistroName, ProgrammingLanguages } from '@/types';
|
|
3
|
+
/** OpenTelemetry / K8s identifying-attribute names emitted by the agent. */
|
|
4
|
+
export declare const PROCESS_ATTRIBUTE_NAMES: {
|
|
5
|
+
PID: string;
|
|
6
|
+
VPID: string;
|
|
7
|
+
};
|
|
3
8
|
export declare const DISPLAY_LANGUAGES: Record<ProgrammingLanguages, string>;
|
|
4
9
|
export declare const LANGUAGE_OPTIONS: DropdownOption<ProgrammingLanguages>[];
|
|
5
10
|
export declare const OPENTELEMETRY_EBPF_DISTRO_OPTION: DropdownOption<OtelDistroName>;
|
|
@@ -96,11 +96,76 @@ export declare const DISPLAY_TITLES: {
|
|
|
96
96
|
API_TOKENS: string;
|
|
97
97
|
DESCRIBE_ODIGOS: string;
|
|
98
98
|
DESCRIBE_SOURCE: string;
|
|
99
|
+
OVERVIEW: string;
|
|
100
|
+
LIBRARIES: string;
|
|
101
|
+
STANDARD_LIBRARY: string;
|
|
102
|
+
STANDARD: string;
|
|
103
|
+
PEER_SOURCES: string;
|
|
104
|
+
PROFILING: string;
|
|
105
|
+
INBOUND: string;
|
|
106
|
+
OUTBOUND: string;
|
|
107
|
+
INBOUND_DESCRIPTION: (serviceName: string) => string;
|
|
108
|
+
OUTBOUND_DESCRIPTION: (serviceName: string) => string;
|
|
109
|
+
NO_INBOUND_CONNECTIONS: string;
|
|
110
|
+
NO_OUTBOUND_CONNECTIONS: string;
|
|
111
|
+
COULD_NOT_FETCH_PEER_SOURCES: string;
|
|
112
|
+
VIRTUAL: string;
|
|
113
|
+
VIRTUAL_TOOLTIP: string;
|
|
114
|
+
NO_RESULTS: string;
|
|
115
|
+
NO_RESULTS_FOR_FILTER: (filter: string) => string;
|
|
116
|
+
POD: string;
|
|
117
|
+
PODS: string;
|
|
118
|
+
PODS_HEALTHY: string;
|
|
119
|
+
PODS_NOT_HEALTHY: string;
|
|
120
|
+
NO_RUNNING_PODS: string;
|
|
121
|
+
AGENT_INJECTED: string;
|
|
122
|
+
AGENT_NOT_INJECTED: string;
|
|
123
|
+
KUBERNETES_HEALTHY: string;
|
|
124
|
+
ODIGOS_HEALTHY: string;
|
|
125
|
+
HEALTHY: string;
|
|
126
|
+
UNHEALTHY: string;
|
|
127
|
+
NOT_HEALTHY: string;
|
|
128
|
+
NODE: string;
|
|
129
|
+
START_TIME: string;
|
|
130
|
+
RESTARTS: string;
|
|
131
|
+
LATEST_REVISION: string;
|
|
132
|
+
OLD_REVISION: string;
|
|
133
|
+
READY: string;
|
|
134
|
+
NOT_READY: string;
|
|
135
|
+
STARTED: string;
|
|
136
|
+
NOT_STARTED: string;
|
|
137
|
+
CRASHLOOP: string;
|
|
138
|
+
NO_CRASHLOOP: string;
|
|
139
|
+
CRASHLOOP_BACKOFF: string;
|
|
140
|
+
CANNOT_POOL_IMAGE: string;
|
|
141
|
+
DEVICE_NAME: string;
|
|
142
|
+
INSTRUMENTED: string;
|
|
143
|
+
UNINSTRUMENTED: string;
|
|
144
|
+
INSTRUMENTED_WITH_DISTRO: (otelDistroName: string) => string;
|
|
145
|
+
DEBUG_COMMANDS: string;
|
|
146
|
+
GET_POD: string;
|
|
147
|
+
GET_POD_YAML: string;
|
|
148
|
+
GET_POD_JSON: string;
|
|
149
|
+
GET_POD_DESCRIBE: string;
|
|
150
|
+
GET_POD_LOGS: string;
|
|
151
|
+
CONTAINER: string;
|
|
152
|
+
CONTAINERS: string;
|
|
99
153
|
DETECTED_CONTAINERS: string;
|
|
100
154
|
DETECTED_CONTAINERS_DESCRIPTION: string;
|
|
155
|
+
NO_CONTAINERS_DETECTED: string;
|
|
101
156
|
DETECTED_PROCESSES: string;
|
|
102
157
|
DETECTED_PROCESSES_DESCRIPTION: string;
|
|
158
|
+
NO_PROCESSES_DETECTED: string;
|
|
103
159
|
CONTAINER_NAME: string;
|
|
160
|
+
PROCESS: string;
|
|
161
|
+
PROCESSES: string;
|
|
162
|
+
PROCESS_FALLBACK_NAME: string;
|
|
163
|
+
OPEN_IN_POD_TAB: string;
|
|
164
|
+
ALL_CONTAINERS_HEALTHY: (count: number) => string;
|
|
165
|
+
ALL_PROCESSES_HEALTHY: (count: number) => string;
|
|
166
|
+
PID: (pid: string) => string;
|
|
167
|
+
IDENTIFYING_ATTRIBUTES: string;
|
|
168
|
+
INSTRUMENTATION_LIBRARIES: string;
|
|
104
169
|
FILTERED_COUNT_TOOLTIP: string;
|
|
105
170
|
SEARCH_NAMESPACES: string;
|
|
106
171
|
SEARCH_SOURCES: string;
|
|
@@ -122,6 +187,12 @@ export declare const DISPLAY_TITLES: {
|
|
|
122
187
|
OVERIDDEN: string;
|
|
123
188
|
OVERRIDE_RUNTIME_DETAILS: string;
|
|
124
189
|
OVERRIDE_RUNTIME_WARNING: string;
|
|
190
|
+
OVERRIDE_OTEL_DISTRO_NAME: string;
|
|
191
|
+
OVERRIDE_OTEL_DISTRO_NAME_WARNING: string;
|
|
192
|
+
OTEL_DISTRO_NAME: string;
|
|
193
|
+
WAITING_FOR_RUNTIME_DETECTION: string;
|
|
194
|
+
DETECTING_RUNTIME_INFO: string;
|
|
195
|
+
NO_AVAILABLE_AGENT: string;
|
|
125
196
|
ACTIVE: string;
|
|
126
197
|
INACTIVE: string;
|
|
127
198
|
ENABLED: string;
|
|
@@ -130,7 +201,21 @@ export declare const DISPLAY_TITLES: {
|
|
|
130
201
|
ARE_SERVICES_INSTRUMENTED_AND_PRODUCING_TRAFFIC: string;
|
|
131
202
|
JAVA_CUSTOM_PROBES: string;
|
|
132
203
|
GOLANG_CUSTOM_PROBES: string;
|
|
204
|
+
ROLLOUT: string;
|
|
205
|
+
ROLLOUT_RESTART: string;
|
|
206
|
+
ROLLOUT_NOT_REQUIRED: string;
|
|
207
|
+
ROLLOUT_NOT_REQUIRED_MESSAGE: string;
|
|
208
|
+
ROLLOUT_FAILED: string;
|
|
209
|
+
ROLLOUT_PREVIOUS_ONGOING: string;
|
|
210
|
+
ROLLOUT_PREVIOUS_ONGOING_MESSAGE: string;
|
|
211
|
+
ROLLOUT_AUTO_DISABLED: string;
|
|
212
|
+
ROLLOUT_AUTO_DISABLED_MESSAGE: string;
|
|
213
|
+
ROLLOUT_FINISHED: string;
|
|
214
|
+
ROLLOUT_FINISHED_MESSAGE: string;
|
|
215
|
+
ROLLBACK: string;
|
|
216
|
+
ROLLBACK_OCCURRED: string;
|
|
133
217
|
ROLLBACK_OCCURRED_MESSAGE: string;
|
|
218
|
+
ROLLBACK_SUCCESS: string;
|
|
134
219
|
ROLLBACK_RECOVER: string;
|
|
135
220
|
FETCHING_NAMESPACES: string;
|
|
136
221
|
FETCHING_NAMESPACES_SUBTITLE: string;
|
|
@@ -148,6 +233,7 @@ export declare const DISPLAY_TITLES: {
|
|
|
148
233
|
CREATING_DESTINATION: string;
|
|
149
234
|
CREATING_DESTINATION_SUBTITLE: string;
|
|
150
235
|
ADD_DESTINATION_DRAWER_DESCRIPTION: string;
|
|
236
|
+
THROUGHPUT_LAST_10_SECONDS: string;
|
|
151
237
|
};
|
|
152
238
|
export declare const BUTTON_TEXTS: {
|
|
153
239
|
GET_STARTED: string;
|
|
@@ -159,6 +245,9 @@ export declare const BUTTON_TEXTS: {
|
|
|
159
245
|
UPDATE: string;
|
|
160
246
|
EDIT: string;
|
|
161
247
|
DELETE: string;
|
|
248
|
+
RESTART: string;
|
|
249
|
+
RESTART_POD: string;
|
|
250
|
+
REFRESH: string;
|
|
162
251
|
CANCEL: string;
|
|
163
252
|
DONE: string;
|
|
164
253
|
SAVE: string;
|
package/lib/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{be as ACTION_ATTRIBUTE_OPTIONS,gC as ACTION_OPTIONS,bf as ACTION_SAMPLER_OPTIONS,gD as ALL_SOURCES,c2 as BTN_CANCEL,ej as BTN_CREATE_FIRST_RULE,ca as BTN_CREATE_RULE,c5 as BTN_DELETE_RULE,fs as BTN_EDIT_AUTO_RULE,c4 as BTN_EDIT_RULE,ci as BTN_SAVE,c3 as BTN_SAVE_RULE,M as BUTTON_TEXTS,c7 as CATEGORY_DESCRIPTIONS,fp as CATEGORY_LABELS,cb as CATEGORY_TITLES,gE as CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,gF as CREATE_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,gG as CREATE_NOISY_AUTO_RULE_DRAWER_TITLE,bz as DEFAULT_CLUSTER_ID,by as DEFAULT_CLUSTER_NAME,e7 as DEFAULT_DATA_STREAM_NAME,eT as DESC_DURATION,eS as DESC_ERRORS,eW as DESC_OPERATION,gH as DESC_PERCENTAGE_HIGHLY_RELEVANT,b7 as DESC_PERCENTAGE_NOISY,fq as DESC_RULE_TYPE,fF as DESC_SOURCE_SCOPE,bk as DESTINATION_CATEGORIES,aY as DISPLAY_LANGUAGES,X as DISPLAY_TITLES,aH as DOCS_BASE_URL,bg as DestinationCategoryTypes,ce as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,cf as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,cc as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,cd as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,cg as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,ch as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,c8 as EDIT_TITLES,f6 as EMPTY_VALUE,eh as FILTER_TYPE_ALL,bI as FORM_ALERTS,bn as INSTRUMENTATION_RULE_OPTIONS,eU as LABEL_CUSTOM_DURATION,bc as LABEL_CUSTOM_PERCENTAGE,ba as LABEL_DISABLED,eg as LABEL_DISABLED_RULE,fh as LABEL_DROP_ALL,b4 as LABEL_DROP_AT_MOST,b9 as LABEL_ENABLED,e$ as LABEL_HTTP_ROUTE,f1 as LABEL_HTTP_ROUTE_PREFIX,f3 as LABEL_KAFKA_TOPIC,fi as LABEL_KEEP_ALL,fd as LABEL_KEEP_AT_LEAST,fe as LABEL_KEEP_AT_MOST,fc as LABEL_KEEP_PERCENTAGE,eR as LABEL_KEEP_TRACES_DURATION,eP as LABEL_KEEP_TRACES_ERRORS,f2 as LABEL_METHOD,fl as LABEL_NOTE,fx as LABEL_NO_PREVIEW,f5 as LABEL_OPERATION_TYPE,gI as LABEL_RULE_DISABLED,gJ as LABEL_RULE_ENABLED,fj as LABEL_RULE_NAME,fk as LABEL_RULE_TYPE,ff as LABEL_SAMPLE,eY as LABEL_SERVER_ADDRESS,e_ as LABEL_TEMPLATED_PATH,f0 as LABEL_TEMPLATED_PATH_PREFIX,b$ as LANGUAGE_OPTIONS,dR as MONITORS_OPTIONS,fD as NOTE_ENTIRE_CLUSTER,fG as NOTE_SOURCE_SCOPE_LOGIC,gK as OPENTELEMETRY_EBPF_DISTRO_OPTION,f8 as OPERATION_ALL,f7 as OPERATION_HTTP_CLIENT,f4 as OPERATION_HTTP_SERVER,f9 as OPERATION_KAFKA_CONSUMER,fa as OPERATION_KAFKA_PRODUCER,b_ as OTEL_DISTRO_NAME_OPTIONS,fb as PERCENTAGE_SECTION_DESCRIPTIONS,fn as PLACEHOLDER_NOTE,eZ as PLACEHOLDER_ROUTE,fm as PLACEHOLDER_RULE_NAME,fI as PLACEHOLDER_SEARCH_SOURCE,eX as PLACEHOLDER_SERVER_ADDRESS,bQ as PROCESS_ATTRIBUTE_NAMES,b8 as SAMPLING_AUTO_RULE_TITLE,eC as SAMPLING_BTN_CREATE_RULE,eA as SAMPLING_BTN_DOCS,eB as SAMPLING_BTN_REFRESH,b6 as SAMPLING_COST_REDUCTION_AUTO_RULE_TITLE,eI as SAMPLING_DELETE_MODAL_APPROVE,eJ as SAMPLING_DELETE_MODAL_CANCEL,eK as SAMPLING_DELETE_MODAL_DESCRIPTION,eL as SAMPLING_DELETE_MODAL_TITLE,cj as SAMPLING_DRAWER_WIDTH,ez as SAMPLING_DUPLICATE_RULE_WARNING,b3 as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,dc as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_1,dd as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_2,de as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_3,df as SAMPLING_ONBOARDING_ADVANCED_LEFT_TITLE,dg as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_1,dh as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_2,di as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_3,dj as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_4,dk as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_5,dl as SAMPLING_ONBOARDING_ADVANCED_RIGHT_TITLE,dn as SAMPLING_ONBOARDING_ADVANCED_SUBTITLE,dm as SAMPLING_ONBOARDING_ADVANCED_TITLE,dG as SAMPLING_ONBOARDING_AMBIENT_LABEL,cI as SAMPLING_ONBOARDING_BTN_GO_TO,cs as SAMPLING_ONBOARDING_BTN_NEXT,db as SAMPLING_ONBOARDING_BTN_READ_MORE,cT as SAMPLING_ONBOARDING_BTN_SKIP,cU as SAMPLING_ONBOARDING_BTN_START,dp as SAMPLING_ONBOARDING_COMMON_BANNER,dF as SAMPLING_ONBOARDING_COMMON_RULES_SECTION,dt as SAMPLING_ONBOARDING_DROP_DESCRIPTION,ds as SAMPLING_ONBOARDING_DROP_SUBTITLE,dr as SAMPLING_ONBOARDING_DROP_TITLE,dw as SAMPLING_ONBOARDING_ERROR_PRESET_NAME,dv as SAMPLING_ONBOARDING_ERROR_PRESET_TOGGLE_LABEL,dz as SAMPLING_ONBOARDING_KEEP_DESCRIPTION,dy as SAMPLING_ONBOARDING_KEEP_SUBTITLE,dx as SAMPLING_ONBOARDING_KEEP_TITLE,dA as SAMPLING_ONBOARDING_KEEP_USE_CASE_1,dB as SAMPLING_ONBOARDING_KEEP_USE_CASE_2,dC as SAMPLING_ONBOARDING_KEEP_USE_CASE_3,dD as SAMPLING_ONBOARDING_KEEP_USE_CASE_4,dE as SAMPLING_ONBOARDING_KEEP_USE_CASE_5,cA as SAMPLING_ONBOARDING_NOISY_BANNER,cw as SAMPLING_ONBOARDING_NOISY_DESCRIPTION,cz as SAMPLING_ONBOARDING_NOISY_PRESET_NAME,cx as SAMPLING_ONBOARDING_NOISY_PRESET_SECTION,cy as SAMPLING_ONBOARDING_NOISY_PRESET_TOGGLE_LABEL,cv as SAMPLING_ONBOARDING_NOISY_SUBTITLE,cu as SAMPLING_ONBOARDING_NOISY_TITLE,du as SAMPLING_ONBOARDING_PRESET_RULES_SECTION,cq as SAMPLING_ONBOARDING_RECOMMENDED_BADGE,d6 as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_BADGE,d7 as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_DESC,d8 as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_NAME,d3 as SAMPLING_ONBOARDING_STRATEGY_DROP_BADGE,d1 as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_1,d2 as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_2,d4 as SAMPLING_ONBOARDING_STRATEGY_DROP_DESC,d5 as SAMPLING_ONBOARDING_STRATEGY_DROP_NAME,c_ as SAMPLING_ONBOARDING_STRATEGY_KEEP_BADGE,cY as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_1,cZ as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_2,c$ as SAMPLING_ONBOARDING_STRATEGY_KEEP_DESC,d0 as SAMPLING_ONBOARDING_STRATEGY_KEEP_NAME,cX as SAMPLING_ONBOARDING_STRATEGY_KEEP_WARNING,cW as SAMPLING_ONBOARDING_STRATEGY_SUBTITLE,cV as SAMPLING_ONBOARDING_STRATEGY_TITLE,cF as SAMPLING_ONBOARDING_SUCCESS_BULLET_1,cG as SAMPLING_ONBOARDING_SUCCESS_BULLET_2,cH as SAMPLING_ONBOARDING_SUCCESS_BULLET_3,cE as SAMPLING_ONBOARDING_SUCCESS_INTRO,cD as SAMPLING_ONBOARDING_SUCCESS_SUBTITLE,cC as SAMPLING_ONBOARDING_SUCCESS_TITLE,cS as SAMPLING_ONBOARDING_WELCOME_BANNER,cL as SAMPLING_ONBOARDING_WELCOME_INTRO,cM as SAMPLING_ONBOARDING_WELCOME_STAGE_1_DESC,cN as SAMPLING_ONBOARDING_WELCOME_STAGE_1_TITLE,cO as SAMPLING_ONBOARDING_WELCOME_STAGE_2_DESC,cP as SAMPLING_ONBOARDING_WELCOME_STAGE_2_TITLE,cQ as SAMPLING_ONBOARDING_WELCOME_STAGE_3_DESC,cR as SAMPLING_ONBOARDING_WELCOME_STAGE_3_TITLE,cK as SAMPLING_ONBOARDING_WELCOME_SUBTITLE,cJ as SAMPLING_ONBOARDING_WELCOME_TITLE,eD as SAMPLING_PAGE_DESCRIPTION,eE as SAMPLING_PAGE_TITLE,eQ as SECTION_DURATION,eO as SECTION_ERRORS,b5 as SECTION_KEEP_PERCENTAGE,eV as SECTION_OPERATION,fw as SECTION_SAMPLING_PREVIEW,fC as SECTION_SOURCE_SCOPE,dQ as STORAGE_KEYS,ei as TITLE_NO_RESULTS,ek as TITLE_NO_RULES,gL as TOKEN_ABOUT_TO_EXPIRE,fo as TOOLTIP_NOTE,fE as UNKNOWN_SOURCE_LABEL,c9 as UNNAMED_RULE,el as getNoResultsSubTitle}from"./chunks/ui-components-BPdnIOmj.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-C150cdxb.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"virtua";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './pods-header';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type DesiredConditionStatus, type K8sWorkloadPod } from '@/types';
|
|
3
|
+
export interface PodsHeaderProps {
|
|
4
|
+
podsHealthStatus?: DesiredConditionStatus | null;
|
|
5
|
+
pods?: K8sWorkloadPod[] | null;
|
|
6
|
+
noPadding?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const PodsHeader: FC<PodsHeaderProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type DataCardProps } from '@/components/_v2';
|
|
2
|
+
import { type Source } from '@/types';
|
|
3
|
+
/**
|
|
4
|
+
* Build the items shown in the view-mode `Source Details` `DataCard`.
|
|
5
|
+
* In VM mode the namespace is hidden and the kubectl command is omitted (handled separately).
|
|
6
|
+
*/
|
|
7
|
+
export declare const buildDataCard: (source: Source, isVm: boolean) => DataCardProps["items"];
|
|
8
|
+
/**
|
|
9
|
+
* Build the kubectl command that targets this source. Returns `null` for VM sources
|
|
10
|
+
* (they don't have a workload to address with kubectl).
|
|
11
|
+
*/
|
|
12
|
+
export declare const buildKubectlCommand: (source: Source, isVm: boolean) => string | null;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type ProfilingProps } from './profiling';
|
|
3
|
+
import { type UpdateSourceFunc, type PersistSourcesFunc, type Source, type WorkloadId, type RestartPodFunc, type RestartWorkloadsFunc, type RecoverFromRollbackFunc, FetchPeerSourcesFunc } from '@/types';
|
|
4
|
+
export interface EditSourceDrawerProps {
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
sourceId: WorkloadId;
|
|
7
|
+
fetchSourceById: (id: WorkloadId, bypassPaginationLoader?: boolean) => Promise<Source | undefined>;
|
|
8
|
+
persistSources: PersistSourcesFunc;
|
|
9
|
+
updateSource: UpdateSourceFunc;
|
|
10
|
+
restartWorkloads: RestartWorkloadsFunc;
|
|
11
|
+
restartPod: RestartPodFunc;
|
|
12
|
+
recoverFromRollback: RecoverFromRollbackFunc;
|
|
13
|
+
fetchPeerSources: FetchPeerSourcesFunc;
|
|
14
|
+
profilingFeatureIsConfigured: boolean;
|
|
15
|
+
enableProfiling: ProfilingProps['enableProfiling'];
|
|
16
|
+
fetchProfilingSlots: ProfilingProps['fetchProfilingSlots'];
|
|
17
|
+
fetchSourceProfiling: ProfilingProps['fetchSourceProfiling'];
|
|
18
|
+
}
|
|
19
|
+
export declare const EditSourceDrawer: FC<EditSourceDrawerProps>;
|
package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/distro-override.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type SourceFormData, ProgrammingLanguages } from '@/types';
|
|
3
|
+
type FormValues = Pick<SourceFormData, 'otelDistroName'>;
|
|
4
|
+
export interface DistroOverrideProps {
|
|
5
|
+
language: ProgrammingLanguages | null;
|
|
6
|
+
overridden: boolean;
|
|
7
|
+
onOverride: (payload: FormValues) => Promise<void>;
|
|
8
|
+
defaultValues: FormValues;
|
|
9
|
+
}
|
|
10
|
+
export declare const DistroOverride: FC<DistroOverrideProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type Source, type SourceFormData } from '@/types';
|
|
3
|
+
export interface ContainersCardProps {
|
|
4
|
+
source: Source;
|
|
5
|
+
onOverride: (payload: Pick<SourceFormData, 'containerName' | 'language' | 'version' | 'otelDistroName'>) => Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
export declare const ContainersCard: FC<ContainersCardProps>;
|
package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/popup-form.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { type FC, type CSSProperties } from 'react';
|
|
2
|
+
interface PopupFormProps {
|
|
3
|
+
width: CSSProperties['width'];
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onSave: () => void;
|
|
6
|
+
onDelete: () => void;
|
|
7
|
+
title: string;
|
|
8
|
+
warning: string;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare const Relative: FC<{
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const PopupForm: FC<PopupFormProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type SourceFormData } from '@/types';
|
|
3
|
+
type FormValues = Pick<SourceFormData, 'language' | 'version'>;
|
|
4
|
+
export interface RuntimeOverrideProps {
|
|
5
|
+
overridden: boolean;
|
|
6
|
+
onOverride: (payload: FormValues) => Promise<void>;
|
|
7
|
+
defaultValues: FormValues;
|
|
8
|
+
}
|
|
9
|
+
export declare const RuntimeOverride: FC<RuntimeOverrideProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { Source } from '@/types';
|
|
3
|
+
import { type ContainersCardProps } from './containers-card';
|
|
4
|
+
export interface OverviewProps {
|
|
5
|
+
source: Source;
|
|
6
|
+
onClickRollout: () => void;
|
|
7
|
+
onClickRollback: () => void;
|
|
8
|
+
onOverride: ContainersCardProps['onOverride'];
|
|
9
|
+
}
|
|
10
|
+
export declare const Overview: FC<OverviewProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { OnJumpToProcess } from './types';
|
|
3
|
+
import { type K8sWorkloadPod, type K8sWorkloadPodContainer } from '@/types';
|
|
4
|
+
export interface ContainerRowProps {
|
|
5
|
+
pod: K8sWorkloadPod;
|
|
6
|
+
container: K8sWorkloadPodContainer;
|
|
7
|
+
onJumpToProcess?: OnJumpToProcess;
|
|
8
|
+
}
|
|
9
|
+
export declare const ContainerRow: FC<ContainerRowProps>;
|
package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/helpers.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { K8sWorkloadPodContainerProcess } from '@/types';
|
|
2
|
+
/** Inner horizontal padding of the silver/800 (pod) and silver/750 (container) background cards. */
|
|
3
|
+
export declare const SECTION_PADDING: {
|
|
4
|
+
pod: number;
|
|
5
|
+
container: number;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Left padding of each row header, relative to its parent section. These add to the
|
|
9
|
+
* `SECTION_PADDING` of any ancestors to produce the figma's stair-step indentation.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ROW_PADDING_LEFT: {
|
|
12
|
+
pod: number;
|
|
13
|
+
container: number;
|
|
14
|
+
process: number;
|
|
15
|
+
};
|
|
16
|
+
export declare const getProcessPid: (process: Pick<K8sWorkloadPodContainerProcess, "identifyingAttributes">) => string | null;
|
package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { K8sWorkloadPod } from '@/types';
|
|
3
|
+
import type { OnJumpToProcess } from './types';
|
|
4
|
+
export interface PodsListProps {
|
|
5
|
+
pods?: K8sWorkloadPod[] | null;
|
|
6
|
+
/**
|
|
7
|
+
* Optional handler invoked when the "jump to pod" action is triggered for a process.
|
|
8
|
+
* Should navigate the user to the relevant spot in the Pod tab.
|
|
9
|
+
*/
|
|
10
|
+
onJumpToProcess?: OnJumpToProcess;
|
|
11
|
+
}
|
|
12
|
+
export declare const PodsList: FC<PodsListProps>;
|
package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/pod-row.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { OnJumpToProcess } from './types';
|
|
3
|
+
import { type K8sWorkloadPod } from '@/types';
|
|
4
|
+
export interface PodRowProps {
|
|
5
|
+
pod: K8sWorkloadPod;
|
|
6
|
+
onJumpToProcess?: OnJumpToProcess;
|
|
7
|
+
}
|
|
8
|
+
export declare const PodRow: FC<PodRowProps>;
|
package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/process-row.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { OnJumpToProcess } from './types';
|
|
3
|
+
import { type K8sWorkloadPod, type K8sWorkloadPodContainer, type K8sWorkloadPodContainerProcess } from '@/types';
|
|
4
|
+
export interface ProcessRowProps {
|
|
5
|
+
pod: K8sWorkloadPod;
|
|
6
|
+
container: K8sWorkloadPodContainer;
|
|
7
|
+
process: K8sWorkloadPodContainerProcess;
|
|
8
|
+
onJumpToProcess?: OnJumpToProcess;
|
|
9
|
+
}
|
|
10
|
+
export declare const ProcessRow: FC<ProcessRowProps>;
|
package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/row-header.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type SVG } from '@/types';
|
|
3
|
+
import type { BadgeDescriptor, RowAction } from './types';
|
|
4
|
+
export interface RowHeaderProps {
|
|
5
|
+
chevron?: SVG;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
label: string;
|
|
8
|
+
name: string;
|
|
9
|
+
badges: BadgeDescriptor[];
|
|
10
|
+
action?: RowAction;
|
|
11
|
+
paddingLeft: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const RowHeader: FC<RowHeaderProps>;
|
package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/types.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { K8sWorkloadPod, K8sWorkloadPodContainer, K8sWorkloadPodContainerProcess, OtherStatus, StatusType, SVG } from '@/types';
|
|
2
|
+
/**
|
|
3
|
+
* Handler invoked when the "jump to pod" action is triggered for a process.
|
|
4
|
+
* Should navigate the user to the relevant spot in the Pod tab.
|
|
5
|
+
*/
|
|
6
|
+
export type OnJumpToProcess = (pod: K8sWorkloadPod, container: K8sWorkloadPodContainer, process: K8sWorkloadPodContainerProcess) => void;
|
|
7
|
+
export interface BadgeDescriptor {
|
|
8
|
+
key: string;
|
|
9
|
+
status: StatusType | OtherStatus;
|
|
10
|
+
icon?: SVG;
|
|
11
|
+
label: string;
|
|
12
|
+
tooltip?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface RowAction {
|
|
15
|
+
icon: SVG;
|
|
16
|
+
onClick: () => void;
|
|
17
|
+
tooltip?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { PeerSources, Source } from '@/types';
|
|
3
|
+
export interface PeersProps {
|
|
4
|
+
source: Source;
|
|
5
|
+
fetchPeerSources: (serviceName: string) => Promise<{
|
|
6
|
+
data?: {
|
|
7
|
+
peerSources: PeerSources;
|
|
8
|
+
};
|
|
9
|
+
}>;
|
|
10
|
+
}
|
|
11
|
+
export declare const Peers: FC<PeersProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type K8sWorkloadPodContainer, type SourceContainer } from '@/types';
|
|
3
|
+
export interface ContainersCardProps {
|
|
4
|
+
podContainers?: K8sWorkloadPodContainer[] | null;
|
|
5
|
+
sourceContainers?: SourceContainer[] | null;
|
|
6
|
+
}
|
|
7
|
+
export declare const ContainersCard: FC<ContainersCardProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode, type FC } from 'react';
|
|
2
|
+
import { type K8sWorkloadPod } from '@/types';
|
|
3
|
+
export interface PodCardProps extends K8sWorkloadPod {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
namespace: string;
|
|
6
|
+
onClickRestartPod?: (namespace: string, name: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const PodCard: FC<PodCardProps>;
|
|
@@ -6,5 +6,6 @@ export * from './edit-action-drawer';
|
|
|
6
6
|
export * from './edit-config-drawer';
|
|
7
7
|
export * from './edit-destination-drawer';
|
|
8
8
|
export * from './edit-rule-drawer';
|
|
9
|
+
export * from './edit-source-drawer';
|
|
9
10
|
export * from './sampling-rule-drawer';
|
|
10
11
|
export * from './system-drawer';
|