@odigos/ui-kit 0.0.239 → 0.0.240
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 +13 -0
- package/lib/chunks/helpers-D-6cJlOn.js +19 -0
- package/lib/chunks/index-RUJS9Blu.js +147 -0
- package/lib/chunks/source-instrument-form-context-CEgbaSRi.js +1 -0
- package/lib/chunks/ui-components-B0BVzW_z.js +1570 -0
- package/lib/chunks/{vendor-C150cdxb.js → vendor-Be0cOokr.js} +1 -1
- package/lib/components/_v2/button/index.d.ts +1 -1
- package/lib/components/_v2/condition/index.d.ts +1 -0
- package/lib/components/_v2/drop-data/index.d.ts +2 -2
- package/lib/components/_v2/input-table/types.d.ts +2 -0
- package/lib/components/index.d.ts +0 -22
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants/sources/index.d.ts +5 -5
- package/lib/constants/strings/index.d.ts +3 -0
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/_drawers/add-source-drawer/strings.d.ts +54 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/helpers.d.ts +3 -3
- package/lib/containers/_v2/_drawers/edit-source-drawer/index.d.ts +3 -3
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/containers-card/index.d.ts +2 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/health-card.d.ts +2 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/index.d.ts +3 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/main-card.d.ts +2 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/index.d.ts +2 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/helpers.d.ts +5 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/process-row.d.ts +1 -0
- package/lib/containers/_v2/_drawers/edit-source-drawer/overview/statuses-card.d.ts +3 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/peers/index.d.ts +2 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/pods/containers-card/index.d.ts +2 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/pods/containers-card/process-card.d.ts +3 -1
- package/lib/containers/_v2/_drawers/edit-source-drawer/pods/index.d.ts +2 -2
- package/lib/containers/_v2/_drawers/edit-source-drawer/profiling/index.d.ts +2 -2
- package/lib/containers/_v2/overview/columns/column/index.d.ts +2 -2
- package/lib/containers/_v2/overview/columns/column/list-item.d.ts +2 -2
- package/lib/containers/_v2/overview/columns/column/source-visual-state.d.ts +3 -3
- package/lib/containers/_v2/overview/drawers/index.d.ts +1 -1
- package/lib/containers/_v2/overview/search/builder.d.ts +4 -4
- package/lib/containers/index.d.ts +0 -3
- package/lib/containers/service-map/helpers/build-map-nodes.d.ts +2 -2
- package/lib/containers/v2.js +162 -122
- package/lib/containers.js +19 -49
- package/lib/contexts/source-edit-form-context.d.ts +2 -2
- package/lib/contexts.js +1 -1
- package/lib/functions/filter-sources/index.d.ts +2 -2
- package/lib/functions/filter-sources-by-stream/index.d.ts +2 -2
- package/lib/functions/get-conditions-booleans/index.d.ts +5 -3
- package/lib/functions/get-containers-counts/index.d.ts +2 -2
- package/lib/functions/get-containers-icons/index.d.ts +5 -5
- package/lib/functions/get-entity-id/index.d.ts +8 -4
- package/lib/functions/get-main-container-language/index.d.ts +2 -2
- package/lib/functions/get-workload-id/index.d.ts +2 -2
- package/lib/functions/is-pod-injected-with-agent/index.d.ts +1 -0
- package/lib/functions/map-desired-status-to-condition-status/index.d.ts +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks/index.d.ts +0 -1
- package/lib/hooks/useActionFormData.d.ts +1 -1
- package/lib/hooks/useSourceFormData.d.ts +2 -2
- package/lib/hooks/useTimeAgo.d.ts +11 -0
- package/lib/hooks.js +1 -1
- package/lib/mock-data/index.d.ts +0 -1
- package/lib/mock-data/sources/index.d.ts +4 -7
- package/lib/snippets/_v2/delete-modal/index.d.ts +3 -0
- package/lib/snippets/_v2/dynamic-field/index.d.ts +2 -3
- package/lib/snippets/index.d.ts +0 -4
- package/lib/snippets/v2.js +1 -1
- package/lib/snippets.js +49 -1
- package/lib/store/useEntityStore.d.ts +2 -2
- package/lib/store/useFilterStore.d.ts +8 -14
- package/lib/store/useSelectedStore.d.ts +2 -2
- package/lib/store/useSetupStore.d.ts +10 -15
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/destinations/index.d.ts +3 -3
- package/lib/types/namespaces/index.d.ts +3 -3
- package/lib/types/sources/index.d.ts +3 -44
- package/lib/types/workload/index.d.ts +16 -51
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/index-B5PgIL40.js +0 -3
- package/lib/chunks/index-Dy4pkeq6.js +0 -145
- package/lib/chunks/index-uXyrp4Xe.js +0 -41
- package/lib/chunks/ui-components-BPdnIOmj.js +0 -2248
- package/lib/components/badge/index.d.ts +0 -11
- package/lib/components/button/index.d.ts +0 -6
- package/lib/components/cancel-warning/index.d.ts +0 -10
- package/lib/components/checkbox/index.d.ts +0 -15
- package/lib/components/condition-details/index.d.ts +0 -10
- package/lib/components/data-card/data-card-fields/index.d.ts +0 -23
- package/lib/components/data-card/index.d.ts +0 -17
- package/lib/components/data-tab/index.d.ts +0 -43
- package/lib/components/delete-warning/index.d.ts +0 -13
- package/lib/components/describe-row/index.d.ts +0 -13
- package/lib/components/drawer/drawer-footer/index.d.ts +0 -16
- package/lib/components/drawer/drawer-header/index.d.ts +0 -24
- package/lib/components/drawer/index.d.ts +0 -15
- package/lib/components/dropdown/index.d.ts +0 -25
- package/lib/components/extend-arrow/index.d.ts +0 -8
- package/lib/components/field-error/index.d.ts +0 -4
- package/lib/components/field-label/index.d.ts +0 -11
- package/lib/components/input/index.d.ts +0 -15
- package/lib/components/modal/index.d.ts +0 -14
- package/lib/components/monitors-icons/index.d.ts +0 -11
- package/lib/components/no-data-found/index.d.ts +0 -6
- package/lib/components/popup-form/index.d.ts +0 -18
- package/lib/components/status/index.d.ts +0 -17
- package/lib/components/tab-list/index.d.ts +0 -18
- package/lib/components/warning-modal/index.d.ts +0 -24
- package/lib/containers/overview-drawer/index.d.ts +0 -27
- package/lib/containers/source-drawer/build-card.d.ts +0 -3
- package/lib/containers/source-drawer/describe/index.d.ts +0 -13
- package/lib/containers/source-drawer/index.d.ts +0 -23
- package/lib/containers/source-drawer/libraries/index.d.ts +0 -12
- package/lib/containers/source-drawer/odigos-health/index.d.ts +0 -5
- package/lib/containers/source-drawer/peers/index.d.ts +0 -12
- package/lib/containers/source-form/index.d.ts +0 -8
- package/lib/hooks/useSourceSelectionFormData.d.ts +0 -32
- package/lib/mock-data/workload/index.d.ts +0 -2
- package/lib/snippets/add-button/index.d.ts +0 -9
- package/lib/snippets/copy-text/index.d.ts +0 -7
- package/lib/snippets/pod-container/index.d.ts +0 -5
- package/lib/snippets/source-container/index.d.ts +0 -6
- package/lib/snippets/source-container/override-runtime.d.ts +0 -10
|
@@ -10,7 +10,7 @@ export declare enum ButtonSize {
|
|
|
10
10
|
M = "medium",
|
|
11
11
|
L = "large"
|
|
12
12
|
}
|
|
13
|
-
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
13
|
+
export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'onClick'> {
|
|
14
14
|
'data-id'?: string;
|
|
15
15
|
label?: string;
|
|
16
16
|
tooltip?: string;
|
|
@@ -9,6 +9,8 @@ export interface Column {
|
|
|
9
9
|
tooltip?: string;
|
|
10
10
|
placeholder?: string;
|
|
11
11
|
inputType?: InputTypes;
|
|
12
|
+
min?: number;
|
|
13
|
+
max?: number;
|
|
12
14
|
componentType?: 'input' | 'dropdown' | 'multi-dropdown';
|
|
13
15
|
options?: DropDataOption[];
|
|
14
16
|
renderCondition?: (row: Row) => boolean;
|
|
@@ -1,39 +1,17 @@
|
|
|
1
|
-
export * from './badge';
|
|
2
|
-
export * from './button';
|
|
3
|
-
export * from './cancel-warning';
|
|
4
|
-
export * from './checkbox';
|
|
5
1
|
export * from './code';
|
|
6
|
-
export * from './condition-details';
|
|
7
|
-
export * from './data-card';
|
|
8
|
-
export * from './data-tab';
|
|
9
|
-
export * from './delete-warning';
|
|
10
|
-
export * from './describe-row';
|
|
11
2
|
export * from './divider';
|
|
12
|
-
export * from './drawer';
|
|
13
|
-
export * from './dropdown';
|
|
14
3
|
export * from './error-boundary';
|
|
15
|
-
export * from './extend-arrow';
|
|
16
4
|
export * from './fade-loader';
|
|
17
|
-
export * from './field-error';
|
|
18
|
-
export * from './field-label';
|
|
19
5
|
export * from './icon-button';
|
|
20
6
|
export * from './icon-group';
|
|
21
7
|
export * from './icon-wrapped';
|
|
22
8
|
export * from './image-controlled';
|
|
23
|
-
export * from './input';
|
|
24
9
|
export * from './loading-text';
|
|
25
|
-
export * from './modal';
|
|
26
|
-
export * from './monitors-icons';
|
|
27
|
-
export * from './no-data-found';
|
|
28
10
|
export * from './notification-note';
|
|
29
11
|
export * from './popup';
|
|
30
|
-
export * from './popup-form';
|
|
31
12
|
export * from './scroll-x';
|
|
32
13
|
export * from './scroll-y';
|
|
33
14
|
export * from './skeleton-loader';
|
|
34
|
-
export * from './status';
|
|
35
|
-
export * from './tab-list';
|
|
36
15
|
export * from './text';
|
|
37
16
|
export * from './tooltip';
|
|
38
|
-
export * from './warning-modal';
|
|
39
17
|
export * from './styled';
|
package/lib/components/v2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{eB as Autocomplete,am as Badge,a9 as Button,aa as ButtonSize,ga as ButtonTab,gb as ButtonTabList,ab as ButtonVariants,a0 as Checkbox,gc as CheckboxList,dd as CheckboxSize,b2 as CliCommand,b1 as Condition,aS as Conditions,gd as DEFAULT_TIME_UNITS,aR as DataCard,o as Drawer,bL as DropData,bN as DropDataAlignX,bM as DropDataAlignY,aB as DropDown,a1 as FieldMessage,$ as FieldTitle,dv as GaugeChart,ge as GaugeChartVariant,gf as Header,gg as HoverActions,aC as IconButton,aD as IconButtonSize,bc as IconGroup,a2 as Input,a8 as InputList,a4 as InputTable,d3 as Island,aE as Loader,bQ as Modal,gh as Navbar,N as NoData,ag as Note,cy as Radio,gi as RadioGroup,cz as RadioSize,b8 as Search,ay as SectionCard,gj as SectionCardSize,ad as Segment,dy as SegmentSize,bn as SegmentVariant,du as StatusCard,d4 as Stepper,bp as Table,bq as TableVariant,aY as Tag,b6 as TagVariants,ae as TextArea,dw as TextCard,dQ as TimeInput,a6 as Toggle,a7 as ToggleLabelAlign,gk as ToggleList,aI as ToggleSize,gl as ToggleVariant,df as TruncatableTypography,b as Typography,ai as TypographyColor,c as TypographySize,aJ as TypographyVariants,ap as WarningModal,gm as resolveTypographyColor}from"../chunks/ui-components-B0BVzW_z.js";import"react/jsx-runtime";import"styled-components";import"../icons.js";import"zustand";import"react";import"javascript-time-ago";import"../chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
|
package/lib/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{aA as CenterThis,eE as Code,p as Divider,fW as ErrorBoundary,fX as FadeLoader,F as FlexColumn,h as FlexRow,I as IconButton,eF as IconGroup,fY as IconWrapped,fZ as ImageControlled,f_ as LoadingText,f$ as ModalBody,s as NotificationNote,g0 as Overlay,aQ as Padding,d2 as PageContent,a as Popup,g1 as ScrollX,b9 as ScrollY,dh as SkeletonLoader,g2 as TableContainer,g3 as TableTitleWrap,g4 as TableWrap,e as Text,g5 as ToggleCodeComponent,ak as Tooltip,dx as UpgradeRequiredWrapper,g6 as VerticalScroll,g7 as getLinksFromText,g8 as getStrongsFromText,g9 as renderText}from"./chunks/ui-components-B0BVzW_z.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type DropDataOption } from '@/components/_v2';
|
|
2
2
|
import { OtelDistroName, ProgrammingLanguages } from '@/types';
|
|
3
3
|
/** OpenTelemetry / K8s identifying-attribute names emitted by the agent. */
|
|
4
4
|
export declare const PROCESS_ATTRIBUTE_NAMES: {
|
|
@@ -6,9 +6,9 @@ export declare const PROCESS_ATTRIBUTE_NAMES: {
|
|
|
6
6
|
VPID: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const DISPLAY_LANGUAGES: Record<ProgrammingLanguages, string>;
|
|
9
|
-
export declare const LANGUAGE_OPTIONS:
|
|
10
|
-
export declare const OPENTELEMETRY_EBPF_DISTRO_OPTION:
|
|
9
|
+
export declare const LANGUAGE_OPTIONS: DropDataOption<ProgrammingLanguages>[];
|
|
10
|
+
export declare const OPENTELEMETRY_EBPF_DISTRO_OPTION: DropDataOption<OtelDistroName>;
|
|
11
11
|
export declare const OTEL_DISTRO_NAME_OPTIONS: Record<ProgrammingLanguages, {
|
|
12
|
-
community:
|
|
13
|
-
enterprise:
|
|
12
|
+
community: DropDataOption<OtelDistroName>[];
|
|
13
|
+
enterprise: DropDataOption<OtelDistroName>[];
|
|
14
14
|
}>;
|
|
@@ -127,6 +127,7 @@ export declare const DISPLAY_TITLES: {
|
|
|
127
127
|
NOT_HEALTHY: string;
|
|
128
128
|
NODE: string;
|
|
129
129
|
START_TIME: string;
|
|
130
|
+
NOT_RUNNING: string;
|
|
130
131
|
RESTARTS: string;
|
|
131
132
|
LATEST_REVISION: string;
|
|
132
133
|
OLD_REVISION: string;
|
|
@@ -234,6 +235,8 @@ export declare const DISPLAY_TITLES: {
|
|
|
234
235
|
CREATING_DESTINATION_SUBTITLE: string;
|
|
235
236
|
ADD_DESTINATION_DRAWER_DESCRIPTION: string;
|
|
236
237
|
THROUGHPUT_LAST_10_SECONDS: string;
|
|
238
|
+
DELETE_POD_TO_RESTART: string;
|
|
239
|
+
RESTART_POD_DESCRIPTION: string;
|
|
237
240
|
};
|
|
238
241
|
export declare const BUTTON_TEXTS: {
|
|
239
242
|
GET_STARTED: string;
|
package/lib/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{A as ACTION_ATTRIBUTE_OPTIONS,fA as ACTION_OPTIONS,x as ACTION_SAMPLER_OPTIONS,fB as ALL_SOURCES,bs as BTN_CANCEL,dC as BTN_CREATE_FIRST_RULE,bz as BTN_CREATE_RULE,bv as BTN_DELETE_RULE,et as BTN_EDIT_AUTO_RULE,bu as BTN_EDIT_RULE,bH as BTN_SAVE,bt as BTN_SAVE_RULE,aP as BUTTON_TEXTS,bw as CATEGORY_DESCRIPTIONS,er as CATEGORY_LABELS,bA as CATEGORY_TITLES,fC as CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,fD as CREATE_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,fE as CREATE_NOISY_AUTO_RULE_DRAWER_TITLE,aN as DEFAULT_CLUSTER_ID,aM as DEFAULT_CLUSTER_NAME,dp as DEFAULT_DATA_STREAM_NAME,dW as DESC_DURATION,dV as DESC_ERRORS,dZ as DESC_OPERATION,fF as DESC_PERCENTAGE_HIGHLY_RELEVANT,au as DESC_PERCENTAGE_NOISY,es as DESC_RULE_TYPE,ez as DESC_SOURCE_SCOPE,aF as DESTINATION_CATEGORIES,an as DISPLAY_LANGUAGES,D as DISPLAY_TITLES,ac as DOCS_BASE_URL,K as DestinationCategoryTypes,bD as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,bE as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,bB as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,bC as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,bF as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,bG as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,bx as EDIT_TITLES,e9 as EMPTY_VALUE,dA as FILTER_TYPE_ALL,B as FORM_ALERTS,U as INSTRUMENTATION_RULE_OPTIONS,dX as LABEL_CUSTOM_DURATION,az as LABEL_CUSTOM_PERCENTAGE,ax as LABEL_DISABLED,dz as LABEL_DISABLED_RULE,ej as LABEL_DROP_ALL,ar as LABEL_DROP_AT_MOST,aw as LABEL_ENABLED,e2 as LABEL_HTTP_ROUTE,e4 as LABEL_HTTP_ROUTE_PREFIX,e6 as LABEL_KAFKA_TOPIC,ek as LABEL_KEEP_ALL,eg as LABEL_KEEP_AT_LEAST,eh as LABEL_KEEP_AT_MOST,ef as LABEL_KEEP_PERCENTAGE,dU as LABEL_KEEP_TRACES_DURATION,dS as LABEL_KEEP_TRACES_ERRORS,e5 as LABEL_METHOD,en as LABEL_NOTE,ev as LABEL_NO_PREVIEW,e8 as LABEL_OPERATION_TYPE,fG as LABEL_RULE_DISABLED,fH as LABEL_RULE_ENABLED,el as LABEL_RULE_NAME,em as LABEL_RULE_TYPE,ei as LABEL_SAMPLE,d$ as LABEL_SERVER_ADDRESS,e1 as LABEL_TEMPLATED_PATH,e3 as LABEL_TEMPLATED_PATH_PREFIX,bk as LANGUAGE_OPTIONS,d8 as MONITORS_OPTIONS,ex as NOTE_ENTIRE_CLUSTER,eA as NOTE_SOURCE_SCOPE_LOGIC,fI as OPENTELEMETRY_EBPF_DISTRO_OPTION,eb as OPERATION_ALL,ea as OPERATION_HTTP_CLIENT,e7 as OPERATION_HTTP_SERVER,ec as OPERATION_KAFKA_CONSUMER,ed as OPERATION_KAFKA_PRODUCER,bj as OTEL_DISTRO_NAME_OPTIONS,ee as PERCENTAGE_SECTION_DESCRIPTIONS,ep as PLACEHOLDER_NOTE,e0 as PLACEHOLDER_ROUTE,eo as PLACEHOLDER_RULE_NAME,eC as PLACEHOLDER_SEARCH_SOURCE,d_ as PLACEHOLDER_SERVER_ADDRESS,b3 as PROCESS_ATTRIBUTE_NAMES,av as SAMPLING_AUTO_RULE_TITLE,dI as SAMPLING_BTN_CREATE_RULE,dG as SAMPLING_BTN_DOCS,dH as SAMPLING_BTN_REFRESH,at as SAMPLING_COST_REDUCTION_AUTO_RULE_TITLE,dL as SAMPLING_DELETE_MODAL_APPROVE,dM as SAMPLING_DELETE_MODAL_CANCEL,dN as SAMPLING_DELETE_MODAL_DESCRIPTION,dO as SAMPLING_DELETE_MODAL_TITLE,bI as SAMPLING_DRAWER_WIDTH,dF as SAMPLING_DUPLICATE_RULE_WARNING,aq as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,cB as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_1,cC as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_2,cD as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_3,cE as SAMPLING_ONBOARDING_ADVANCED_LEFT_TITLE,cF as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_1,cG as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_2,cH as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_3,cI as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_4,cJ as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_5,cK as SAMPLING_ONBOARDING_ADVANCED_RIGHT_TITLE,cM as SAMPLING_ONBOARDING_ADVANCED_SUBTITLE,cL as SAMPLING_ONBOARDING_ADVANCED_TITLE,d1 as SAMPLING_ONBOARDING_AMBIENT_LABEL,c5 as SAMPLING_ONBOARDING_BTN_GO_TO,bS as SAMPLING_ONBOARDING_BTN_NEXT,cA as SAMPLING_ONBOARDING_BTN_READ_MORE,cg as SAMPLING_ONBOARDING_BTN_SKIP,ch as SAMPLING_ONBOARDING_BTN_START,cN as SAMPLING_ONBOARDING_COMMON_BANNER,d0 as SAMPLING_ONBOARDING_COMMON_RULES_SECTION,cQ as SAMPLING_ONBOARDING_DROP_DESCRIPTION,cP as SAMPLING_ONBOARDING_DROP_SUBTITLE,cO as SAMPLING_ONBOARDING_DROP_TITLE,cT as SAMPLING_ONBOARDING_ERROR_PRESET_NAME,cS as SAMPLING_ONBOARDING_ERROR_PRESET_TOGGLE_LABEL,cW as SAMPLING_ONBOARDING_KEEP_DESCRIPTION,cV as SAMPLING_ONBOARDING_KEEP_SUBTITLE,cU as SAMPLING_ONBOARDING_KEEP_TITLE,cX as SAMPLING_ONBOARDING_KEEP_USE_CASE_1,cY as SAMPLING_ONBOARDING_KEEP_USE_CASE_2,cZ as SAMPLING_ONBOARDING_KEEP_USE_CASE_3,c_ as SAMPLING_ONBOARDING_KEEP_USE_CASE_4,c$ as SAMPLING_ONBOARDING_KEEP_USE_CASE_5,bZ as SAMPLING_ONBOARDING_NOISY_BANNER,bV as SAMPLING_ONBOARDING_NOISY_DESCRIPTION,bY as SAMPLING_ONBOARDING_NOISY_PRESET_NAME,bW as SAMPLING_ONBOARDING_NOISY_PRESET_SECTION,bX as SAMPLING_ONBOARDING_NOISY_PRESET_TOGGLE_LABEL,bU as SAMPLING_ONBOARDING_NOISY_SUBTITLE,bT as SAMPLING_ONBOARDING_NOISY_TITLE,cR as SAMPLING_ONBOARDING_PRESET_RULES_SECTION,bR as SAMPLING_ONBOARDING_RECOMMENDED_BADGE,cv as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_BADGE,cw as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_DESC,cx as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_NAME,cs as SAMPLING_ONBOARDING_STRATEGY_DROP_BADGE,cq as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_1,cr as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_2,ct as SAMPLING_ONBOARDING_STRATEGY_DROP_DESC,cu as SAMPLING_ONBOARDING_STRATEGY_DROP_NAME,cn as SAMPLING_ONBOARDING_STRATEGY_KEEP_BADGE,cl as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_1,cm as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_2,co as SAMPLING_ONBOARDING_STRATEGY_KEEP_DESC,cp as SAMPLING_ONBOARDING_STRATEGY_KEEP_NAME,ck as SAMPLING_ONBOARDING_STRATEGY_KEEP_WARNING,cj as SAMPLING_ONBOARDING_STRATEGY_SUBTITLE,ci as SAMPLING_ONBOARDING_STRATEGY_TITLE,c2 as SAMPLING_ONBOARDING_SUCCESS_BULLET_1,c3 as SAMPLING_ONBOARDING_SUCCESS_BULLET_2,c4 as SAMPLING_ONBOARDING_SUCCESS_BULLET_3,c1 as SAMPLING_ONBOARDING_SUCCESS_INTRO,c0 as SAMPLING_ONBOARDING_SUCCESS_SUBTITLE,b$ as SAMPLING_ONBOARDING_SUCCESS_TITLE,cf as SAMPLING_ONBOARDING_WELCOME_BANNER,c8 as SAMPLING_ONBOARDING_WELCOME_INTRO,c9 as SAMPLING_ONBOARDING_WELCOME_STAGE_1_DESC,ca as SAMPLING_ONBOARDING_WELCOME_STAGE_1_TITLE,cb as SAMPLING_ONBOARDING_WELCOME_STAGE_2_DESC,cc as SAMPLING_ONBOARDING_WELCOME_STAGE_2_TITLE,cd as SAMPLING_ONBOARDING_WELCOME_STAGE_3_DESC,ce as SAMPLING_ONBOARDING_WELCOME_STAGE_3_TITLE,c7 as SAMPLING_ONBOARDING_WELCOME_SUBTITLE,c6 as SAMPLING_ONBOARDING_WELCOME_TITLE,dJ as SAMPLING_PAGE_DESCRIPTION,dK as SAMPLING_PAGE_TITLE,dT as SECTION_DURATION,dR as SECTION_ERRORS,as as SECTION_KEEP_PERCENTAGE,dY as SECTION_OPERATION,eu as SECTION_SAMPLING_PREVIEW,ew as SECTION_SOURCE_SCOPE,d7 as STORAGE_KEYS,dB as TITLE_NO_RESULTS,dD as TITLE_NO_RULES,fJ as TOKEN_ABOUT_TO_EXPIRE,eq as TOOLTIP_NOTE,ey as UNKNOWN_SOURCE_LABEL,by as UNNAMED_RULE,dE as getNoResultsSubTitle}from"./chunks/ui-components-B0BVzW_z.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-Be0cOokr.js";import"prism-react-renderer";import"react-error-boundary";import"react-dom";import"virtua";
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { EntityTypes } from '@/types';
|
|
2
|
+
/**
|
|
3
|
+
* Copy used by the Add Source drawer, with K8s/VM variants.
|
|
4
|
+
*
|
|
5
|
+
* The drawer is a generic two-column "group → item" picker:
|
|
6
|
+
* - K8s: namespaces (groups) → workloads (items)
|
|
7
|
+
* - VM: kinds (groups) → sources (items)
|
|
8
|
+
*
|
|
9
|
+
* Components call `getAddSourceDrawerLabels(isVm)` once and read fields off
|
|
10
|
+
* the returned object instead of branching on `isVm` inline. Keeps copy
|
|
11
|
+
* centralized and makes adding a third platform (or wiring i18n) a one-file
|
|
12
|
+
* change.
|
|
13
|
+
*/
|
|
14
|
+
export interface AddSourceDrawerLabels {
|
|
15
|
+
groupSegmentLabel: string;
|
|
16
|
+
itemSegmentLabel: string;
|
|
17
|
+
searchPlaceholder: (by: EntityTypes) => string | undefined;
|
|
18
|
+
groupColumnHeader: string;
|
|
19
|
+
fetchingGroups: {
|
|
20
|
+
title: string;
|
|
21
|
+
subTitle: string;
|
|
22
|
+
};
|
|
23
|
+
noGroups: {
|
|
24
|
+
title: string;
|
|
25
|
+
subTitle: string;
|
|
26
|
+
};
|
|
27
|
+
noGroupMatchedFilter: (text: string) => string;
|
|
28
|
+
itemColumnHeader: string;
|
|
29
|
+
selectGroupPrompt: {
|
|
30
|
+
title: string;
|
|
31
|
+
subTitle: string;
|
|
32
|
+
};
|
|
33
|
+
noItemsInGroupSubTitle: string;
|
|
34
|
+
}
|
|
35
|
+
export declare const getAddSourceDrawerLabels: (isVm: boolean) => AddSourceDrawerLabels;
|
|
36
|
+
/**
|
|
37
|
+
* Copy that is shared between K8s and VM (and between both columns of the drawer).
|
|
38
|
+
* Centralized here so identical strings don't drift apart across files.
|
|
39
|
+
*
|
|
40
|
+
* Fields tagged "K8s-only" are referenced from code paths that only render on K8s
|
|
41
|
+
* (`!isVm` guards or enterprise-tier locks). They're kept here for centralization,
|
|
42
|
+
* not because VM has its own variant.
|
|
43
|
+
*/
|
|
44
|
+
export declare const ADD_SOURCE_DRAWER_COPY: {
|
|
45
|
+
noMatchesTitle: string;
|
|
46
|
+
noSourcesTitle: string;
|
|
47
|
+
noSourcesMatchedFilter: (text: string) => string;
|
|
48
|
+
selectAll: (isAll: boolean) => string;
|
|
49
|
+
showOnly: string;
|
|
50
|
+
selectedLabel: string;
|
|
51
|
+
autoToggleLabel: string;
|
|
52
|
+
autoToggleTooltip: string;
|
|
53
|
+
enterpriseOnlyBadge: string;
|
|
54
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type DataCardProps } from '@/components/_v2';
|
|
2
|
-
import { type
|
|
2
|
+
import { type Workload } from '@/types';
|
|
3
3
|
/**
|
|
4
4
|
* Build the items shown in the view-mode `Source Details` `DataCard`.
|
|
5
5
|
* In VM mode the namespace is hidden and the kubectl command is omitted (handled separately).
|
|
6
6
|
*/
|
|
7
|
-
export declare const buildDataCard: (source:
|
|
7
|
+
export declare const buildDataCard: (source: Workload, isVm: boolean) => DataCardProps["items"];
|
|
8
8
|
/**
|
|
9
9
|
* Build the kubectl command that targets this source. Returns `null` for VM sources
|
|
10
10
|
* (they don't have a workload to address with kubectl).
|
|
11
11
|
*/
|
|
12
|
-
export declare const buildKubectlCommand: (source:
|
|
12
|
+
export declare const buildKubectlCommand: (source: Workload, isVm: boolean) => string | null;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
2
|
import { type ProfilingProps } from './profiling';
|
|
3
|
-
import { type UpdateSourceFunc, type PersistSourcesFunc, type
|
|
3
|
+
import { type UpdateSourceFunc, type PersistSourcesFunc, type WorkloadId, type RestartPodFunc, type RestartWorkloadsFunc, type RecoverFromRollbackFunc, type FetchPeerSourcesFunc, type FetchSourceByIdFunc, type EffectiveConfig } from '@/types';
|
|
4
4
|
export interface EditSourceDrawerProps {
|
|
5
5
|
onClose: () => void;
|
|
6
|
+
effectiveConfig?: EffectiveConfig;
|
|
6
7
|
sourceId: WorkloadId;
|
|
7
|
-
fetchSourceById:
|
|
8
|
+
fetchSourceById: FetchSourceByIdFunc;
|
|
8
9
|
persistSources: PersistSourcesFunc;
|
|
9
10
|
updateSource: UpdateSourceFunc;
|
|
10
11
|
restartWorkloads: RestartWorkloadsFunc;
|
|
11
12
|
restartPod: RestartPodFunc;
|
|
12
13
|
recoverFromRollback: RecoverFromRollbackFunc;
|
|
13
14
|
fetchPeerSources: FetchPeerSourcesFunc;
|
|
14
|
-
profilingFeatureIsConfigured: boolean;
|
|
15
15
|
enableProfiling: ProfilingProps['enableProfiling'];
|
|
16
16
|
fetchProfilingSlots: ProfilingProps['fetchProfilingSlots'];
|
|
17
17
|
fetchSourceProfiling: ProfilingProps['fetchSourceProfiling'];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type SourceFormData, type Workload } from '@/types';
|
|
3
3
|
export interface ContainersCardProps {
|
|
4
|
-
source:
|
|
4
|
+
source: Workload;
|
|
5
5
|
onOverride: (payload: Pick<SourceFormData, 'containerName' | 'language' | 'version' | 'otelDistroName'>) => Promise<void>;
|
|
6
6
|
}
|
|
7
7
|
export declare const ContainersCard: FC<ContainersCardProps>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { EffectiveConfig, Workload } from '@/types';
|
|
3
3
|
import { type ContainersCardProps } from './containers-card';
|
|
4
4
|
export interface OverviewProps {
|
|
5
|
-
|
|
5
|
+
effectiveConfig?: EffectiveConfig;
|
|
6
|
+
source: Workload;
|
|
6
7
|
onClickRollout: () => void;
|
|
7
8
|
onClickRollback: () => void;
|
|
8
9
|
onOverride: ContainersCardProps['onOverride'];
|
package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/helpers.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { StatusType, type K8sWorkloadPodContainerProcess, OtherStatus, OtherStatusType } from '@/types';
|
|
2
2
|
/** Inner horizontal padding of the silver/800 (pod) and silver/750 (container) background cards. */
|
|
3
3
|
export declare const SECTION_PADDING: {
|
|
4
4
|
pod: number;
|
|
@@ -13,4 +13,7 @@ export declare const ROW_PADDING_LEFT: {
|
|
|
13
13
|
container: number;
|
|
14
14
|
process: number;
|
|
15
15
|
};
|
|
16
|
-
export declare const getProcessPid: (process: Pick<K8sWorkloadPodContainerProcess, "identifyingAttributes">
|
|
16
|
+
export declare const getProcessPid: (process: Pick<K8sWorkloadPodContainerProcess, "identifyingAttributes"> & {
|
|
17
|
+
overrideProcessNum?: number;
|
|
18
|
+
}) => string | null;
|
|
19
|
+
export declare const getHealthBadgeLabel: (status: StatusType | OtherStatus | OtherStatusType, reasonEnum?: string | null) => string;
|
package/lib/containers/_v2/_drawers/edit-source-drawer/overview/pods-card/pods-list/process-row.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { type FC } from 'react';
|
|
|
2
2
|
import type { OnJumpToProcess } from './types';
|
|
3
3
|
import { type K8sWorkloadPod, type K8sWorkloadPodContainer, type K8sWorkloadPodContainerProcess } from '@/types';
|
|
4
4
|
export interface ProcessRowProps {
|
|
5
|
+
overrideProcessNum?: number;
|
|
5
6
|
pod: K8sWorkloadPod;
|
|
6
7
|
container: K8sWorkloadPodContainer;
|
|
7
8
|
process: K8sWorkloadPodContainerProcess;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type Workload } from '@/types';
|
|
3
3
|
export interface StatusesCardProps {
|
|
4
|
-
|
|
4
|
+
rollbackEnabled: boolean;
|
|
5
|
+
source: Workload;
|
|
5
6
|
onClickRollout: () => void;
|
|
6
7
|
onClickRollback: () => void;
|
|
7
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import type { PeerSources,
|
|
2
|
+
import type { PeerSources, Workload } from '@/types';
|
|
3
3
|
export interface PeersProps {
|
|
4
|
-
source:
|
|
4
|
+
source: Workload;
|
|
5
5
|
fetchPeerSources: (serviceName: string) => Promise<{
|
|
6
6
|
data?: {
|
|
7
7
|
peerSources: PeerSources;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import { type K8sWorkloadPodContainer, type
|
|
2
|
+
import { type K8sWorkloadPodContainer, type K8sWorkloadContainer } from '@/types';
|
|
3
3
|
export interface ContainersCardProps {
|
|
4
4
|
podContainers?: K8sWorkloadPodContainer[] | null;
|
|
5
|
-
sourceContainers?:
|
|
5
|
+
sourceContainers?: K8sWorkloadContainer[] | null;
|
|
6
6
|
}
|
|
7
7
|
export declare const ContainersCard: FC<ContainersCardProps>;
|
package/lib/containers/_v2/_drawers/edit-source-drawer/pods/containers-card/process-card.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
2
|
import { type K8sWorkloadPodContainerProcess } from '@/types';
|
|
3
|
-
export declare const ProcessCard: FC<K8sWorkloadPodContainerProcess
|
|
3
|
+
export declare const ProcessCard: FC<K8sWorkloadPodContainerProcess & {
|
|
4
|
+
overrideProcessNum?: number;
|
|
5
|
+
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type Workload } from '@/types';
|
|
3
3
|
export interface PodsProps {
|
|
4
|
-
source:
|
|
4
|
+
source: Workload;
|
|
5
5
|
onClickRestartPod?: (namespace: string, name: string) => void;
|
|
6
6
|
}
|
|
7
7
|
export declare const Pods: FC<PodsProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
2
|
import { type ProfilingSlots } from './flame-graph-canvas';
|
|
3
|
-
import { type WorkloadId, type
|
|
3
|
+
import { type WorkloadId, type Workload } from '@/types';
|
|
4
4
|
interface SourceProfilingResult {
|
|
5
5
|
profileJson: string;
|
|
6
6
|
}
|
|
@@ -11,7 +11,7 @@ interface EnableOrReleaseProfilingResult {
|
|
|
11
11
|
activeSlots?: number;
|
|
12
12
|
}
|
|
13
13
|
export interface ProfilingProps {
|
|
14
|
-
source:
|
|
14
|
+
source: Workload;
|
|
15
15
|
enableProfiling: (source: WorkloadId) => Promise<EnableOrReleaseProfilingResult | undefined>;
|
|
16
16
|
fetchProfilingSlots: () => Promise<ProfilingSlots | undefined>;
|
|
17
17
|
fetchSourceProfiling: (source: WorkloadId) => Promise<SourceProfilingResult | undefined>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import { type Action, type Destination, EntityTypes, type InstrumentationRule, type
|
|
2
|
+
import { type Action, type Destination, EntityTypes, type InstrumentationRule, type Metrics, type Workload } from '@/types';
|
|
3
3
|
export interface ColumnProps {
|
|
4
4
|
entityType: EntityTypes;
|
|
5
|
-
entities:
|
|
5
|
+
entities: Workload[] | Destination[] | Action[] | InstrumentationRule[];
|
|
6
6
|
unfilteredCount: number;
|
|
7
7
|
metrics?: Metrics;
|
|
8
8
|
loading: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
-
import { type Action, type Destination, EntityTypes, type InstrumentationRule,
|
|
2
|
+
import { type Action, type Destination, EntityTypes, type InstrumentationRule, StatusType, type SVG, type WorkloadId, type Workload } from '@/types';
|
|
3
3
|
export interface ListItemProps {
|
|
4
4
|
entityId: string | WorkloadId;
|
|
5
5
|
entityType: EntityTypes;
|
|
@@ -12,6 +12,6 @@ export interface ListItemProps {
|
|
|
12
12
|
icons?: SVG[];
|
|
13
13
|
iconSrc?: string;
|
|
14
14
|
isActive?: boolean;
|
|
15
|
-
raw:
|
|
15
|
+
raw: Workload | Destination | Action | InstrumentationRule;
|
|
16
16
|
}
|
|
17
17
|
export declare const ListItem: FC<ListItemProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type Workload, StatusType } from '@/types';
|
|
2
2
|
interface SourceVisualState {
|
|
3
3
|
status?: StatusType;
|
|
4
4
|
faded: boolean;
|
|
5
5
|
tooltip?: string;
|
|
6
|
-
displaySource:
|
|
6
|
+
displaySource: Workload;
|
|
7
7
|
}
|
|
8
|
-
export declare function getSourceVisualState(source:
|
|
8
|
+
export declare function getSourceVisualState(source: Workload): SourceVisualState;
|
|
9
9
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
2
|
import { type CreateActionFunc, type CreateDestinationFunc, type CreateInstrumentationRuleFunc, type DeleteActionFunc, type DeleteDestinationFunc, type DeleteInstrumentationRuleFunc, type EffectiveConfig, type EnableProfilingFunc, type FetchNamespacesWithWorkloads, type FetchPeerSourcesFunc, type FetchProfilingSlotsFunc, type FetchSourceByIdFunc, type FetchSourceProfilingFunc, type GetDestinationCategoriesFunc, type GetPotentialDestinationsFunc, type PersistSourcesFunc, type RecoverFromRollbackFunc, type RestartPodFunc, type RestartWorkloadsFunc, type TestConnectionFunc, type UpdateActionFunc, type UpdateDestinationFunc, type UpdateInstrumentationRuleFunc, type UpdateSourceFunc } from '@/types';
|
|
3
3
|
export interface DrawersProps {
|
|
4
|
-
effectiveConfig
|
|
4
|
+
effectiveConfig?: EffectiveConfig;
|
|
5
5
|
fetchNamespacesWithWorkloads: FetchNamespacesWithWorkloads;
|
|
6
6
|
persistSources: PersistSourcesFunc;
|
|
7
7
|
restartWorkloads: RestartWorkloadsFunc;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type Action, type Destination, EntityTypes, type InstrumentationRule, type
|
|
1
|
+
import { type Action, type Destination, EntityTypes, type InstrumentationRule, type Workload } from '@/types';
|
|
2
2
|
export type Category = 'all' | EntityTypes;
|
|
3
3
|
interface Params {
|
|
4
4
|
searchText: string;
|
|
5
5
|
selectedCategory: Category;
|
|
6
|
-
sources:
|
|
6
|
+
sources: Workload[];
|
|
7
7
|
destinations: Destination[];
|
|
8
8
|
actions: Action[];
|
|
9
9
|
instrumentationRules: InstrumentationRule[];
|
|
@@ -13,10 +13,10 @@ export declare const buildSearchResults: ({ instrumentationRules, sources, actio
|
|
|
13
13
|
category: Category;
|
|
14
14
|
label: string;
|
|
15
15
|
count: number;
|
|
16
|
-
entities: InstrumentationRule[] |
|
|
16
|
+
entities: InstrumentationRule[] | Workload[] | Action[] | Destination[];
|
|
17
17
|
}[];
|
|
18
18
|
searchResults: {
|
|
19
|
-
entities:
|
|
19
|
+
entities: Workload[] | Destination[] | Action[] | InstrumentationRule[];
|
|
20
20
|
category: Category;
|
|
21
21
|
label: string;
|
|
22
22
|
count: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Node } from '@xyflow/react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type Workload, type AggregatedServiceMap } from '@/types';
|
|
3
3
|
export declare const NODE_WIDTH = 80;
|
|
4
4
|
export declare const NODE_HEIGHT = 80;
|
|
5
5
|
export declare const toFlowNodeId: (graphKey: string) => string;
|
|
6
6
|
interface Params {
|
|
7
|
-
sources:
|
|
7
|
+
sources: Workload[];
|
|
8
8
|
aggregatedServiceMap: AggregatedServiceMap;
|
|
9
9
|
}
|
|
10
10
|
export declare const buildMapNodes: ({ sources, aggregatedServiceMap }: Params) => Node[];
|