diff --git a/backend/src/types.ts b/backend/src/types.ts index 09135b62379..a0ca93134e8 100644 --- a/backend/src/types.ts +++ b/backend/src/types.ts @@ -61,6 +61,7 @@ export type DashboardConfig = K8sResourceCommon & { projectRBAC: boolean; deploymentWizardYAMLViewer: boolean; vLLMDeploymentOnMaaS: boolean; + promptManagement: boolean; }; // Intentionally disjointed from the CRD, we should move away from this code-wise now; CRD later // groupsConfig?: { diff --git a/backend/src/utils/constants.ts b/backend/src/utils/constants.ts index 70db475f548..c3d220e947f 100644 --- a/backend/src/utils/constants.ts +++ b/backend/src/utils/constants.ts @@ -95,6 +95,7 @@ export const blankDashboardCR: DashboardConfig = { projectRBAC: true, deploymentWizardYAMLViewer: false, vLLMDeploymentOnMaaS: false, + promptManagement: false, }, notebookController: { enabled: true, diff --git a/frontend/src/__mocks__/mockDashboardConfig.ts b/frontend/src/__mocks__/mockDashboardConfig.ts index e7342d567e1..68ea8a7c947 100644 --- a/frontend/src/__mocks__/mockDashboardConfig.ts +++ b/frontend/src/__mocks__/mockDashboardConfig.ts @@ -54,6 +54,7 @@ export type MockDashboardConfigType = { disableLLMd?: boolean; deploymentWizardYAMLViewer?: boolean; vLLMDeploymentOnMaaS?: boolean; + promptManagement?: boolean; genAiStudioConfig?: { aiAssetCustomEndpoints?: { externalProviders?: boolean; @@ -107,6 +108,7 @@ export const mockDashboardConfig = ({ disableLLMd = false, deploymentWizardYAMLViewer = false, vLLMDeploymentOnMaaS = false, + promptManagement = false, hardwareProfileOrder = ['test-hardware-profile'], genAiStudioConfig = { aiAssetCustomEndpoints: { @@ -283,6 +285,7 @@ export const mockDashboardConfig = ({ disableLLMd, deploymentWizardYAMLViewer, vLLMDeploymentOnMaaS, + promptManagement, }, notebookController: { enabled: !disableNotebookController, diff --git a/frontend/src/concepts/areas/const.ts b/frontend/src/concepts/areas/const.ts index b0c1df12126..83d1759af0c 100644 --- a/frontend/src/concepts/areas/const.ts +++ b/frontend/src/concepts/areas/const.ts @@ -14,6 +14,7 @@ export const techPreviewFlags = { observabilityDashboard: false, deploymentWizardYAMLViewer: false, vLLMDeploymentOnMaaS: false, + promptManagement: false, } satisfies Partial; export const devTemporaryFeatureFlags = { diff --git a/frontend/src/k8sTypes.ts b/frontend/src/k8sTypes.ts index 6ce4face33b..9699f6a13e8 100644 --- a/frontend/src/k8sTypes.ts +++ b/frontend/src/k8sTypes.ts @@ -1312,6 +1312,7 @@ export type DashboardCommonConfig = { disableLLMd?: boolean; deploymentWizardYAMLViewer?: boolean; vLLMDeploymentOnMaaS?: boolean; + promptManagement?: boolean; }; // [1] Intentionally disjointed fields from the CRD in this type definition diff --git a/manifests/common/crd/odhdashboardconfigs.opendatahub.io.crd.yaml b/manifests/common/crd/odhdashboardconfigs.opendatahub.io.crd.yaml index 732ab27f5a1..840eff556e5 100644 --- a/manifests/common/crd/odhdashboardconfigs.opendatahub.io.crd.yaml +++ b/manifests/common/crd/odhdashboardconfigs.opendatahub.io.crd.yaml @@ -125,6 +125,8 @@ spec: type: boolean deploymentWizardYAMLViewer: type: boolean + promptManagement: + type: boolean x-kubernetes-validations: - rule: '!has(self.disableAcceleratorProfiles) || self.disableAcceleratorProfiles == oldSelf.disableAcceleratorProfiles' message: 'DEPRECATED: spec.dashboardConfig.disableAcceleratorProfiles must be removed or left unchanged.' diff --git a/packages/gen-ai/frontend/src/odh/extensions.ts b/packages/gen-ai/frontend/src/odh/extensions.ts index e9385b4557b..4afac3928a6 100644 --- a/packages/gen-ai/frontend/src/odh/extensions.ts +++ b/packages/gen-ai/frontend/src/odh/extensions.ts @@ -49,7 +49,7 @@ const extensions: (NavExtension | RouteExtension | AreaExtension | AIAssetsTabEx properties: { id: PROMPT_MANAGEMENT, reliantAreas: [PLUGIN_GEN_AI], - devFlags: [PROMPT_MANAGEMENT], + featureFlags: [PROMPT_MANAGEMENT], }, }, {