@odigos/ui-kit 0.0.284 → 0.0.285
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 +21 -0
- package/lib/chunks/{helpers-DqYXvhEu.js → helpers-C5bkjRbO.js} +1 -1
- package/lib/chunks/index-DBZ1mLhG.js +298 -0
- package/lib/chunks/source-instrument-form-context-CnRKQq6W.js +5 -0
- package/lib/chunks/ui-components-Ci-Vq1Dl.js +1620 -0
- package/lib/components.js +1 -1
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/recommendations/index.d.ts +31 -0
- package/lib/constants/strings/index.d.ts +3 -0
- package/lib/constants.js +1 -1
- package/lib/containers/_drawers/index.d.ts +1 -0
- package/lib/containers/_drawers/recommendations-drawer/helpers.d.ts +22 -0
- package/lib/containers/_drawers/recommendations-drawer/index.d.ts +9 -0
- package/lib/containers/_drawers/recommendations-drawer/manual-examples.d.ts +6 -0
- package/lib/containers/_drawers/recommendations-drawer/recommendation-card.d.ts +13 -0
- package/lib/containers/_drawers/recommendations-drawer/remediation-actions.d.ts +9 -0
- package/lib/containers/_drawers/recommendations-drawer/remediation-methods.d.ts +13 -0
- package/lib/containers/overview/search/builder.d.ts +3 -1
- package/lib/containers.js +295 -227
- package/lib/contexts/odigos-api/capabilities.d.ts +3 -0
- package/lib/contexts/odigos-api/hooks/use-actions-api.d.ts +3 -1
- package/lib/contexts/odigos-api/hooks/use-recommendations-api.d.ts +32 -0
- package/lib/contexts/odigos-api/index.d.ts +2 -1
- package/lib/contexts/odigos-api/types.d.ts +23 -1
- package/lib/contexts/odigos-api/use-odigos-api.d.ts +2 -0
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/icons/common/index.d.ts +1 -0
- package/lib/icons/common/recommendations-icon/index.d.ts +2 -0
- package/lib/icons.js +1 -1
- package/lib/snippets/animated-collapse/index.d.ts +10 -0
- package/lib/snippets/index.d.ts +1 -0
- package/lib/snippets/rich-title/index.d.ts +4 -1
- package/lib/snippets/yaml-section-card/index.d.ts +1 -0
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/common/index.d.ts +2 -1
- package/lib/types/destinations/index.d.ts +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/recommendations.d.ts +73 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +1 -1
- package/lib/chunks/index-DxXpZafj.js +0 -257
- package/lib/chunks/source-instrument-form-context-BPXm6ufr.js +0 -5
- package/lib/chunks/ui-components-M0c3qdR2.js +0 -1601
package/lib/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Z as Autocomplete,
|
|
1
|
+
export{Z as Autocomplete,bH as Badge,B as Button,i as ButtonSize,gZ as ButtonTab,g_ as ButtonTabList,j as ButtonVariants,b0 as CenterThis,C as Checkbox,g$ as CheckboxList,$ as CheckboxSize,cu as CliCommand,b7 as Code,cd as Condition,cf as Conditions,h0 as DEFAULT_TIME_UNITS,z as DataCard,a4 as Divider,D as Drawer,ay as DropData,dG as DropDataAlignX,dF as DropDataAlignY,s as DropDown,h1 as ErrorBoundary,k as FieldMessage,d as FieldTitle,F as FlexColumn,h as FlexRow,fg as GaugeChart,h2 as GaugeChartVariant,h3 as Header,h4 as HoverActions,c4 as IconButton,b6 as IconButtonSize,cz as IconGroup,x as Input,a5 as InputCardTable,w as InputList,I as InputTable,cR as Island,b2 as Loader,dH as Modal,h5 as ModalBody,h6 as Navbar,b1 as NoData,N as Note,h7 as Overlay,bE as Padding,eV as PageContent,as as Radio,cb as RadioCard,h8 as RadioGroup,bM as RadioSize,a$ as ScrollY,b3 as Search,Q as SectionCard,h9 as SectionCardSize,Y as Segment,a6 as SegmentSize,cO as SegmentVariant,bF as SkeletonLoader,ff as StatusCard,eW as Stepper,cP as Table,ha as TableContainer,hb as TableTitleWrap,cQ as TableVariant,hc as TableWrap,H as Tag,ct as TagVariants,u as TextArea,fh as TextCard,r as TimeInput,o as Toggle,hd as ToggleCodeComponent,p as ToggleLabelAlign,he as ToggleList,q as ToggleSize,hf as ToggleVariant,T as Tooltip,bN as TruncatableTypography,e as Typography,f as TypographyColor,g as TypographySize,c7 as TypographyVariants,fi as UpgradeRequiredWrapper,hg as VerticalScroll,W as WarningModal,hh as resolveTypographyColor}from"./chunks/ui-components-Ci-Vq1Dl.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"zustand/middleware";import"react-error-boundary";import"virtua";
|
package/lib/constants/index.d.ts
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { RecommendationState } from '../../types';
|
|
2
|
+
export declare const RECOMMENDATIONS_DRAWER_TITLE = "Recommendations";
|
|
3
|
+
export declare const RECOMMENDATIONS_DRAWER_SUBTITLE = "Optimize your observability setup with actionable recommendations.";
|
|
4
|
+
export declare const SECTION_RECOMMENDED = "Recommended";
|
|
5
|
+
export declare const SECTION_APPLIED = "Applied";
|
|
6
|
+
export declare const SECTION_DISMISSED = "Dismissed";
|
|
7
|
+
export declare const SECTION_NOT_APPLICABLE = "Not applicable";
|
|
8
|
+
export declare const SECTION_TITLES: Record<RecommendationState, string>;
|
|
9
|
+
export declare const BTN_ACCEPT = "Accept";
|
|
10
|
+
export declare const BTN_DISMISS = "Dismiss";
|
|
11
|
+
export declare const BTN_RESTORE = "Restore";
|
|
12
|
+
export declare const BTN_DOCS = "Docs";
|
|
13
|
+
export declare const LABEL_BENEFITS = "Benefits";
|
|
14
|
+
export declare const LABEL_CONSIDERATIONS = "Considerations";
|
|
15
|
+
export declare const LABEL_ENABLE_RECOMMENDATION = "Apply Recommendation";
|
|
16
|
+
export declare const LABEL_APPLY_VIA_UI = "Apply via UI";
|
|
17
|
+
export declare const LABEL_APPLY_VIA_GITOPS = "Apply via GitOps";
|
|
18
|
+
export declare const LABEL_VIA_UI = "Via UI";
|
|
19
|
+
export declare const LABEL_VIA_GITOPS = "Via GitOps";
|
|
20
|
+
export declare const ACCEPT_RECOMMENDATION_DESCRIPTION = "Accept to choose how to apply this recommendation, or dismiss it if it is not relevant.";
|
|
21
|
+
export declare const INSTALLATION_METHOD_DESCRIPTION = "There are 2 ways to apply this recommendation.";
|
|
22
|
+
export declare const APPLY_VIA_UI_DESCRIPTION = "Odigos applies the selected change immediately.";
|
|
23
|
+
export declare const APPLY_VIA_GITOPS_DESCRIPTION = "Commit the configuration to your repository and let your GitOps controller apply it.";
|
|
24
|
+
export declare const GITOPS_OVERRIDE_WARNING = "UI changes apply only to this cluster and will not carry over if you re-install odigos.";
|
|
25
|
+
export declare const EMPTY_TITLE = "No recommendations";
|
|
26
|
+
export declare const EMPTY_SUBTITLE = "There are no recommendations for this cluster right now.";
|
|
27
|
+
export declare const NOT_APPLICABLE_SUMMARY = "This recommendation does not currently apply to your cluster.";
|
|
28
|
+
export declare const SUCCESS_DISMISSED = "Recommendation dismissed";
|
|
29
|
+
export declare const SUCCESS_RESTORED = "Recommendation restored";
|
|
30
|
+
export declare const SUCCESS_APPLIED = "Recommendation applied successfully";
|
|
31
|
+
export declare const ERROR_APPLY_RECOMMENDATION = "Failed to apply recommendation";
|
|
@@ -48,6 +48,9 @@ export declare const DISPLAY_TITLES: {
|
|
|
48
48
|
CLOUD_CONNECTOR_CUSTOM_COL_TYPE: string;
|
|
49
49
|
CLOUD_CONNECTOR_CUSTOM_COL_DISCOVERY: string;
|
|
50
50
|
CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION: string;
|
|
51
|
+
CLOUD_CONNECTOR_CUSTOM_COL_INSTRUMENTATION_TOOLTIP: string;
|
|
52
|
+
CLOUD_CONNECTOR_INSTRUMENTATION_MANAGED_BY_ODIGOS: string;
|
|
53
|
+
CLOUD_CONNECTOR_INSTRUMENTATION_SELF_MANAGED: string;
|
|
51
54
|
CLOUD_CONNECTOR_SETUP_CREDENTIALS_TITLE: string;
|
|
52
55
|
CLOUD_CONNECTOR_SETUP_CREDENTIALS_SUBTITLE: string;
|
|
53
56
|
CLOUD_CONNECTOR_AUTH_TITLE: string;
|
package/lib/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{d3 as ACCEPT_RECOMMENDATION_DESCRIPTION,bG as ACTION_CATEGORIES,bs as ACTION_OPTIONS,gs as ACTION_TYPE_TO_CATEGORY,gt as ALL_LANGUAGES_WILDCARD,gu as ALL_SOURCES,c_ as APPLY_VIA_GITOPS_DESCRIPTION,d0 as APPLY_VIA_UI_DESCRIPTION,d4 as BTN_ACCEPT,dj as BTN_CANCEL,dr as BTN_CONTINUE_EDITING,fl as BTN_CREATE_FIRST_RULE,cT as BTN_CREATE_RULE,dm as BTN_DELETE_RULE,d5 as BTN_DISMISS,dd as BTN_DOCS,a7 as BTN_EDIT_AUTO_RULE,dl as BTN_EDIT_RULE,de as BTN_RESTORE,dB as BTN_SAVE,dk as BTN_SAVE_RULE,l as BUTTON_TEXTS,dn as CATEGORY_DESCRIPTIONS,aW as CATEGORY_LABELS,dq as CATEGORY_TITLES,gv as CREATE_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,gw as CREATE_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,gx as CREATE_NOISY_AUTO_RULE_DRAWER_TITLE,c9 as DEFAULT_CLUSTER_ID,c8 as DEFAULT_CLUSTER_NAME,fc as DEFAULT_DATA_STREAM_NAME,am as DESC_DURATION,gy as DESC_ERRORS,ap as DESC_OPERATION,gz as DESC_PERCENTAGE_HIGHLY_RELEVANT,bZ as DESC_PERCENTAGE_NOISY,aX as DESC_RULE_TYPE,X as DESC_SOURCE_SCOPE,c5 as DESTINATION_CATEGORIES,e_ as DISPLAY_LANGUAGES,m as DISPLAY_TITLES,bO as DOCS_BASE_URL,bx as DestinationCategoryTypes,dx as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_SUBTITLE,dy as EDIT_COST_REDUCTION_AUTO_RULE_DRAWER_TITLE,dv as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_SUBTITLE,dw as EDIT_HIGHLY_RELEVANT_AUTO_RULE_DRAWER_TITLE,dz as EDIT_NOISY_AUTO_RULE_DRAWER_SUBTITLE,dA as EDIT_NOISY_AUTO_RULE_DRAWER_TITLE,dp as EDIT_TITLES,dh as EMPTY_SUBTITLE,di as EMPTY_TITLE,aD as EMPTY_VALUE,bk as ERROR_APPLY_RECOMMENDATION,bL as EXTRACTION_FORMAT_COPY,bJ as EXTRACT_ATTRIBUTE_FORM,fj as FILTER_TYPE_ALL,b9 as FORM_ALERTS,d1 as GITOPS_OVERRIDE_WARNING,d6 as INSTALLATION_METHOD_DESCRIPTION,bB as INSTRUMENTATION_RULE_OPTIONS,cZ as LABEL_APPLY_VIA_GITOPS,c$ as LABEL_APPLY_VIA_UI,db as LABEL_BENEFITS,dc as LABEL_CONSIDERATIONS,an as LABEL_CUSTOM_DURATION,c1 as LABEL_CUSTOM_PERCENTAGE,c0 as LABEL_DISABLED,cS as LABEL_DISABLED_RULE,aN as LABEL_DROP_ALL,bW as LABEL_DROP_AT_MOST,b$ as LABEL_ENABLED,d2 as LABEL_ENABLE_RECOMMENDATION,av as LABEL_HTTP_ROUTE,ax as LABEL_HTTP_ROUTE_PREFIX,aA as LABEL_KAFKA_TOPIC,aO as LABEL_KEEP_ALL,aK as LABEL_KEEP_AT_LEAST,aL as LABEL_KEEP_AT_MOST,aJ as LABEL_KEEP_PERCENTAGE,al as LABEL_KEEP_TRACES_DURATION,aj as LABEL_KEEP_TRACES_ERRORS,az as LABEL_METHOD,aS as LABEL_NOTE,a8 as LABEL_NO_PREVIEW,aC as LABEL_OPERATION_TYPE,gA as LABEL_RULE_DISABLED,gB as LABEL_RULE_ENABLED,aQ as LABEL_RULE_NAME,aR as LABEL_RULE_TYPE,aM as LABEL_SAMPLE,ar as LABEL_SERVER_ADDRESS,au as LABEL_TEMPLATED_PATH,aw as LABEL_TEMPLATED_PATH_PREFIX,d8 as LABEL_VIA_GITOPS,d7 as LABEL_VIA_UI,cG as LANGUAGE_OPTIONS,a_ as MONITORS_OPTIONS,E as NOTE_ENTIRE_CLUSTER,L as NOTE_SOURCE_SCOPE_LOGIC,d9 as NOT_APPLICABLE_SUMMARY,gC as OPENTELEMETRY_EBPF_DISTRO_OPTION,aF as OPERATION_ALL,aE as OPERATION_HTTP_CLIENT,aB as OPERATION_HTTP_SERVER,aG as OPERATION_KAFKA_CONSUMER,aH as OPERATION_KAFKA_PRODUCER,cF as OTEL_DISTRO_NAME_OPTIONS,aI as PERCENTAGE_SECTION_DESCRIPTIONS,aU as PLACEHOLDER_NOTE,at as PLACEHOLDER_ROUTE,aT as PLACEHOLDER_RULE_NAME,_ as PLACEHOLDER_SEARCH_SOURCE,aq as PLACEHOLDER_SERVER_ADDRESS,cr as PROCESS_ATTRIBUTE_NAMES,df as RECOMMENDATIONS_DRAWER_SUBTITLE,dg as RECOMMENDATIONS_DRAWER_TITLE,c as REGEX_TESTER_DRAWER,b_ as SAMPLING_AUTO_RULE_TITLE,fr as SAMPLING_BTN_CREATE_RULE,fp as SAMPLING_BTN_DOCS,fq as SAMPLING_BTN_REFRESH,bY as SAMPLING_COST_REDUCTION_AUTO_RULE_TITLE,ds as SAMPLING_DEFAULT_CONFIRM_DESCRIPTION,du as SAMPLING_DEFAULT_CONFIRM_PREVIEW_LABEL,dt as SAMPLING_DEFAULT_CONFIRM_TITLE,fu as SAMPLING_DELETE_MODAL_APPROVE,fv as SAMPLING_DELETE_MODAL_CANCEL,fw as SAMPLING_DELETE_MODAL_DESCRIPTION,fx as SAMPLING_DELETE_MODAL_TITLE,dC as SAMPLING_DRAWER_WIDTH,fo as SAMPLING_DUPLICATE_RULE_WARNING,bV as SAMPLING_HIGHLY_RELEVANT_AUTO_RULE_TITLE,er as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_1,es as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_2,et as SAMPLING_ONBOARDING_ADVANCED_LEFT_BULLET_3,eu as SAMPLING_ONBOARDING_ADVANCED_LEFT_TITLE,ev as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_1,ew as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_2,ex as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_3,ey as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_4,ez as SAMPLING_ONBOARDING_ADVANCED_RIGHT_BULLET_5,eA as SAMPLING_ONBOARDING_ADVANCED_RIGHT_TITLE,eC as SAMPLING_ONBOARDING_ADVANCED_SUBTITLE,eB as SAMPLING_ONBOARDING_ADVANCED_TITLE,eT as SAMPLING_ONBOARDING_AMBIENT_LABEL,dZ as SAMPLING_ONBOARDING_BTN_GO_TO,dK as SAMPLING_ONBOARDING_BTN_NEXT,eq as SAMPLING_ONBOARDING_BTN_READ_MORE,e8 as SAMPLING_ONBOARDING_BTN_SKIP,e9 as SAMPLING_ONBOARDING_BTN_START,eD as SAMPLING_ONBOARDING_COMMON_BANNER,eS as SAMPLING_ONBOARDING_COMMON_RULES_SECTION,eG as SAMPLING_ONBOARDING_DROP_DESCRIPTION,eF as SAMPLING_ONBOARDING_DROP_SUBTITLE,eE as SAMPLING_ONBOARDING_DROP_TITLE,eJ as SAMPLING_ONBOARDING_ERROR_PRESET_NAME,eI as SAMPLING_ONBOARDING_ERROR_PRESET_TOGGLE_LABEL,eM as SAMPLING_ONBOARDING_KEEP_DESCRIPTION,eL as SAMPLING_ONBOARDING_KEEP_SUBTITLE,eK as SAMPLING_ONBOARDING_KEEP_TITLE,eN as SAMPLING_ONBOARDING_KEEP_USE_CASE_1,eO as SAMPLING_ONBOARDING_KEEP_USE_CASE_2,eP as SAMPLING_ONBOARDING_KEEP_USE_CASE_3,eQ as SAMPLING_ONBOARDING_KEEP_USE_CASE_4,eR as SAMPLING_ONBOARDING_KEEP_USE_CASE_5,dR as SAMPLING_ONBOARDING_NOISY_BANNER,dN as SAMPLING_ONBOARDING_NOISY_DESCRIPTION,dQ as SAMPLING_ONBOARDING_NOISY_PRESET_NAME,dO as SAMPLING_ONBOARDING_NOISY_PRESET_SECTION,dP as SAMPLING_ONBOARDING_NOISY_PRESET_TOGGLE_LABEL,dM as SAMPLING_ONBOARDING_NOISY_SUBTITLE,dL as SAMPLING_ONBOARDING_NOISY_TITLE,eH as SAMPLING_ONBOARDING_PRESET_RULES_SECTION,dJ as SAMPLING_ONBOARDING_RECOMMENDED_BADGE,en as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_BADGE,eo as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_DESC,ep as SAMPLING_ONBOARDING_STRATEGY_ADVANCED_NAME,ek as SAMPLING_ONBOARDING_STRATEGY_DROP_BADGE,ei as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_1,ej as SAMPLING_ONBOARDING_STRATEGY_DROP_BULLET_2,el as SAMPLING_ONBOARDING_STRATEGY_DROP_DESC,em as SAMPLING_ONBOARDING_STRATEGY_DROP_NAME,ef as SAMPLING_ONBOARDING_STRATEGY_KEEP_BADGE,ed as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_1,ee as SAMPLING_ONBOARDING_STRATEGY_KEEP_BULLET_2,eg as SAMPLING_ONBOARDING_STRATEGY_KEEP_DESC,eh as SAMPLING_ONBOARDING_STRATEGY_KEEP_NAME,ec as SAMPLING_ONBOARDING_STRATEGY_KEEP_WARNING,eb as SAMPLING_ONBOARDING_STRATEGY_SUBTITLE,ea as SAMPLING_ONBOARDING_STRATEGY_TITLE,dW as SAMPLING_ONBOARDING_SUCCESS_BULLET_1,dX as SAMPLING_ONBOARDING_SUCCESS_BULLET_2,dY as SAMPLING_ONBOARDING_SUCCESS_BULLET_3,dV as SAMPLING_ONBOARDING_SUCCESS_INTRO,dU as SAMPLING_ONBOARDING_SUCCESS_SUBTITLE,dT as SAMPLING_ONBOARDING_SUCCESS_TITLE,e7 as SAMPLING_ONBOARDING_WELCOME_BANNER,e0 as SAMPLING_ONBOARDING_WELCOME_INTRO,e1 as SAMPLING_ONBOARDING_WELCOME_STAGE_1_DESC,e2 as SAMPLING_ONBOARDING_WELCOME_STAGE_1_TITLE,e3 as SAMPLING_ONBOARDING_WELCOME_STAGE_2_DESC,e4 as SAMPLING_ONBOARDING_WELCOME_STAGE_2_TITLE,e5 as SAMPLING_ONBOARDING_WELCOME_STAGE_3_DESC,e6 as SAMPLING_ONBOARDING_WELCOME_STAGE_3_TITLE,d$ as SAMPLING_ONBOARDING_WELCOME_SUBTITLE,d_ as SAMPLING_ONBOARDING_WELCOME_TITLE,fs as SAMPLING_PAGE_DESCRIPTION,ft as SAMPLING_PAGE_TITLE,a1 as SCOPE_AND_LABEL,a0 as SCOPE_GROUP_ANY_OF_HINT,K as SCOPE_GROUP_LANGUAGES_TITLE,J as SCOPE_GROUP_NAMESPACES_TITLE,G as SCOPE_GROUP_SOURCES_TITLE,gD as SECTION_APPLIED,gE as SECTION_DISMISSED,ak as SECTION_DURATION,ai as SECTION_ERRORS,bX as SECTION_KEEP_PERCENTAGE,gF as SECTION_NOT_APPLICABLE,ao as SECTION_OPERATION,gG as SECTION_RECOMMENDED,aY as SECTION_SAMPLING_PREVIEW,a2 as SECTION_SOURCE_SCOPE,da as SECTION_TITLES,eZ as STORAGE_KEYS,bl as SUCCESS_APPLIED,bm as SUCCESS_DISMISSED,bn as SUCCESS_RESTORED,fk as TITLE_NO_RESULTS,fm as TITLE_NO_RULES,gH as TOKEN_ABOUT_TO_EXPIRE,aV as TOOLTIP_NOTE,U as UNKNOWN_SOURCE_LABEL,aP as UNNAMED_RULE,cm as canAgentReportPodStartTime,fn as getNoResultsSubTitle,cN as getSourceConditionsForPanel,c2 as getSupportedActionOptions,bT as getSupportedLanguageIcon,bU as getSupportedLanguageLabel,gI as isActionSupportedOnPlatform,gJ as isActionSupportedOnVersion,bQ as isRuleSourceScopeSupported,bi as mapActionTypesToOptions,bp as mapRuleTypesToOptions,bR as normalizeSupportedLanguagesForDisplay,cM as shouldShowSourceConditionsPanel,gK as supportsAllLanguages,bS as toScopeSupportedLanguages}from"./chunks/ui-components-Ci-Vq1Dl.js";import"react/jsx-runtime";import"styled-components";import"./icons.js";import"zustand";import"react";import"javascript-time-ago";import"javascript-time-ago/locale/en";import"react-dom";import"prism-react-renderer";import"zustand/middleware";import"react-error-boundary";import"virtua";
|
|
@@ -9,5 +9,6 @@ export * from './edit-destination-drawer';
|
|
|
9
9
|
export * from './edit-rule-drawer';
|
|
10
10
|
export * from './edit-source-drawer';
|
|
11
11
|
export * from './regex-tester-drawer';
|
|
12
|
+
export * from './recommendations-drawer';
|
|
12
13
|
export * from './sampling-rule-drawer';
|
|
13
14
|
export * from './system-drawer';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RecommendationState, StatusType, type ActionFormData, type Recommendation, type RecommendationCatalogRemediation, type SVG } from '../../../types';
|
|
2
|
+
export interface RecommendationCategoryPresentation {
|
|
3
|
+
icon: SVG;
|
|
4
|
+
status: StatusType;
|
|
5
|
+
}
|
|
6
|
+
export declare const getRecommendationCategoryPresentation: (category?: string | null) => RecommendationCategoryPresentation;
|
|
7
|
+
export declare const RECOMMENDATION_STATE_STATUS: Record<RecommendationState, StatusType>;
|
|
8
|
+
export declare const hasOdigosActionExample: (remediation: RecommendationCatalogRemediation) => boolean;
|
|
9
|
+
export declare const buildRemediationAction: (remediation: RecommendationCatalogRemediation) => ActionFormData | undefined;
|
|
10
|
+
/** Derive the UI state from the three wire booleans. Compute once — never inline. */
|
|
11
|
+
export declare const getRecommendationState: (recommendation: Pick<Recommendation, "applied" | "conditionsMet" | "dismissed">) => RecommendationState;
|
|
12
|
+
export interface GroupedRecommendations {
|
|
13
|
+
[RecommendationState.Recommended]: Recommendation[];
|
|
14
|
+
[RecommendationState.Applied]: Recommendation[];
|
|
15
|
+
[RecommendationState.Dismissed]: Recommendation[];
|
|
16
|
+
[RecommendationState.NotApplicable]: Recommendation[];
|
|
17
|
+
}
|
|
18
|
+
/** Group recommendations into the four display sections. */
|
|
19
|
+
export declare const groupRecommendations: (items: Recommendation[]) => GroupedRecommendations;
|
|
20
|
+
/** Count of items in the Recommended section — drives the header badge. */
|
|
21
|
+
export declare const countRecommended: (items: Recommendation[]) => number;
|
|
22
|
+
export declare const SECTION_ORDER: RecommendationState[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type DrawerProps } from '../../../components';
|
|
3
|
+
import { type HeaderProps } from '../../../components/drawer/header';
|
|
4
|
+
export interface RecommendationsDrawerProps {
|
|
5
|
+
isOpen: DrawerProps['isOpen'];
|
|
6
|
+
onClose: HeaderProps['onClose'];
|
|
7
|
+
}
|
|
8
|
+
export declare const RecommendationsDrawer: FC<RecommendationsDrawerProps>;
|
|
9
|
+
export { getRecommendationState, groupRecommendations, countRecommended, SECTION_ORDER } from './helpers';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { RecommendationState, type Recommendation, type RecommendationCatalogRemediation, type RecommendationRemediationType } from '../../../types';
|
|
3
|
+
export interface RecommendationCardProps {
|
|
4
|
+
recommendation: Recommendation;
|
|
5
|
+
state: RecommendationState;
|
|
6
|
+
onDismiss?: (name: string, dismissed: boolean) => Promise<{
|
|
7
|
+
error?: string;
|
|
8
|
+
} | undefined>;
|
|
9
|
+
onApplyServerRemediation?: (remediationType: RecommendationRemediationType) => Promise<boolean>;
|
|
10
|
+
onCreateAction?: (remediation: RecommendationCatalogRemediation) => Promise<boolean>;
|
|
11
|
+
onRemediationApplied?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const RecommendationCard: FC<RecommendationCardProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type Recommendation, type RecommendationCatalogRemediation, type RecommendationRemediationType } from '../../../types';
|
|
3
|
+
export interface RemediationActionsProps {
|
|
4
|
+
recommendation: Recommendation;
|
|
5
|
+
onApplyServerRemediation?: (remediationType: RecommendationRemediationType) => Promise<boolean>;
|
|
6
|
+
onCreateAction?: (remediation: RecommendationCatalogRemediation) => Promise<boolean>;
|
|
7
|
+
onApplied?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const RemediationActions: FC<RemediationActionsProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { Recommendation, RecommendationCatalogRemediation, RecommendationRemediationType } from '../../../types';
|
|
3
|
+
export interface RemediationMethodsProps {
|
|
4
|
+
recommendation: Recommendation;
|
|
5
|
+
onDismiss?: (name: string, dismissed: boolean) => Promise<{
|
|
6
|
+
error?: string;
|
|
7
|
+
} | undefined>;
|
|
8
|
+
onAcceptedChange?: (accepted: boolean) => void;
|
|
9
|
+
onApplyServerRemediation?: (remediationType: RecommendationRemediationType) => Promise<boolean>;
|
|
10
|
+
onCreateAction?: (remediation: RecommendationCatalogRemediation) => Promise<boolean>;
|
|
11
|
+
onApplied?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const RemediationMethods: FC<RemediationMethodsProps>;
|
|
@@ -7,8 +7,10 @@ interface Params {
|
|
|
7
7
|
destinations: Destination[];
|
|
8
8
|
actions: Action[];
|
|
9
9
|
instrumentationRules: InstrumentationRule[];
|
|
10
|
+
includeActions?: boolean;
|
|
11
|
+
includeInstrumentationRules?: boolean;
|
|
10
12
|
}
|
|
11
|
-
export declare const buildSearchResults: ({ instrumentationRules, sources, actions, destinations, searchText, selectedCategory }: Params) => {
|
|
13
|
+
export declare const buildSearchResults: ({ instrumentationRules, sources, actions, destinations, searchText, selectedCategory, includeActions, includeInstrumentationRules, }: Params) => {
|
|
12
14
|
categories: {
|
|
13
15
|
category: Category;
|
|
14
16
|
label: string;
|