@odigos/ui-kit 0.0.238 → 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 +27 -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/cards/data-card/index.d.ts +6 -1
- package/lib/components/_v2/condition/index.d.ts +1 -0
- 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 +3 -4
- package/lib/components/_v2/icon-group/index.d.ts +10 -0
- package/lib/components/_v2/index.d.ts +1 -0
- package/lib/components/_v2/input-table/types.d.ts +2 -0
- package/lib/components/_v2/tag/index.d.ts +10 -0
- package/lib/components/_v2/typography/index.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 +10 -5
- package/lib/constants/strings/index.d.ts +92 -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/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 +11 -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 +19 -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 +11 -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 +9 -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 +5 -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/{source-drawer → _v2/_drawers/edit-source-drawer}/profiling/index.d.ts +2 -2
- 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/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 +2 -4
- 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 +269 -124
- package/lib/containers.js +19 -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/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 -3
- 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-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 +4 -0
- package/lib/functions/map-desired-status-to-condition-status/index.d.ts +2 -0
- 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/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/index.d.ts +0 -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 +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/_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/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/common/index.d.ts +28 -0
- package/lib/types/destinations/index.d.ts +3 -3
- package/lib/types/namespaces/index.d.ts +3 -3
- package/lib/types/service-map/index.d.ts +2 -2
- package/lib/types/sources/index.d.ts +4 -41
- package/lib/types/workload/index.d.ts +145 -3
- 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/index-D6SlbWIi.js +0 -3
- package/lib/chunks/ui-components-rpRyPe3l.js +0 -2235
- 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 -7
- package/lib/snippets/source-container/override-runtime.d.ts +0 -10
- /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/symbol-table.d.ts +0 -0
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,11 @@
|
|
|
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
|
+
overrideProcessNum?: number;
|
|
6
|
+
pod: K8sWorkloadPod;
|
|
7
|
+
container: K8sWorkloadPodContainer;
|
|
8
|
+
process: K8sWorkloadPodContainerProcess;
|
|
9
|
+
onJumpToProcess?: OnJumpToProcess;
|
|
10
|
+
}
|
|
11
|
+
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,9 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type Workload } from '@/types';
|
|
3
|
+
export interface StatusesCardProps {
|
|
4
|
+
rollbackEnabled: boolean;
|
|
5
|
+
source: Workload;
|
|
6
|
+
onClickRollout: () => void;
|
|
7
|
+
onClickRollback: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const StatusesCard: FC<StatusesCardProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { PeerSources, Workload } from '@/types';
|
|
3
|
+
export interface PeersProps {
|
|
4
|
+
source: Workload;
|
|
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 K8sWorkloadContainer } from '@/types';
|
|
3
|
+
export interface ContainersCardProps {
|
|
4
|
+
podContainers?: K8sWorkloadPodContainer[] | null;
|
|
5
|
+
sourceContainers?: K8sWorkloadContainer[] | 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>;
|
package/lib/containers/{source-drawer → _v2/_drawers/edit-source-drawer}/profiling/index.d.ts
RENAMED
|
@@ -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>;
|
|
@@ -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';
|
|
@@ -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
|
-
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
|
|
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;
|
|
@@ -9,8 +9,6 @@ export interface DrawersProps {
|
|
|
9
9
|
recoverFromRollback: RecoverFromRollbackFunc;
|
|
10
10
|
updateSource: UpdateSourceFunc;
|
|
11
11
|
fetchSourceById: FetchSourceByIdFunc;
|
|
12
|
-
fetchSourceDescribe: FetchSourceDescribeFunc;
|
|
13
|
-
fetchSourceLibraries: FetchSourceLibrariesFunc;
|
|
14
12
|
fetchPeerSources: FetchPeerSourcesFunc;
|
|
15
13
|
enableProfiling: EnableProfilingFunc;
|
|
16
14
|
fetchProfilingSlots: FetchProfilingSlotsFunc;
|
|
@@ -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[];
|