Skip to content

Commit 4a95807

Browse files
Revert "SANDBOX-1755: OpenShift AI temporarily disabled (#52)" (#58)
This reverts commit 4e50a5c.
1 parent 2fd41de commit 4a95807

4 files changed

Lines changed: 46 additions & 53 deletions

File tree

plugins/sandbox/src/components/SandboxCatalog/__tests__/SandboxCatalogCardButton.test.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,12 @@ describe('SandboxCatalogCardButton', () => {
229229
expectedIntcmp: '701Pe00000dnCEYIA2',
230230
expectedLabel: 'Try it',
231231
},
232-
// SANDBOX-1755: OpenShift AI temporarily disabled
233-
// {
234-
// id: Product.OPENSHIFT_AI,
235-
// title: 'OpenShift AI',
236-
// expectedIntcmp: '701Pe00000do2uiIAA',
237-
// expectedLabel: 'Try it',
238-
// },
232+
{
233+
id: Product.OPENSHIFT_AI,
234+
title: 'OpenShift AI',
235+
expectedIntcmp: '701Pe00000do2uiIAA',
236+
expectedLabel: 'Try it',
237+
},
239238
{
240239
id: Product.DEVSPACES,
241240
title: 'Dev Spaces',

plugins/sandbox/src/components/SandboxCatalog/__tests__/productData.test.tsx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ describe('productData', () => {
3535
const productIds = productData.map(product => product.id);
3636
expect(productIds).toEqual([
3737
Product.OPENSHIFT_CONSOLE,
38-
// SANDBOX-1755: OpenShift AI temporarily disabled
39-
// Product.OPENSHIFT_AI,
38+
Product.OPENSHIFT_AI,
4039
Product.DEVSPACES,
4140
Product.AAP,
4241
Product.OPENSHIFT_VIRT,
@@ -69,8 +68,7 @@ describe('productData', () => {
6968
// Access the private getSandboxCatalogCardIcon function
7069
// We need to get it from a description item since it's not exported
7170
const successIcon = productData[0].description[0].icon;
72-
// SANDBOX-1755: OpenShift AI temporarily disabled
73-
const warningIcon = productData[2].description[4].icon; // AAP's warning icon
71+
const warningIcon = productData[3].description[4].icon; // AAP's warning icon
7472

7573
it('should use TaskAltRoundedIcon for success status', () => {
7674
expect(successIcon.type).toBe(TaskAltRoundedIcon);
@@ -99,13 +97,12 @@ describe('productData', () => {
9997
expect(openshift?.description).toHaveLength(4);
10098
});
10199

102-
// SANDBOX-1755: OpenShift AI temporarily disabled
103-
// it('should have correct OpenShift AI data', () => {
104-
// const openshiftAI = productData.find(p => p.id === Product.OPENSHIFT_AI);
105-
// expect(openshiftAI).toBeDefined();
106-
// expect(openshiftAI?.title).toBe('OpenShift AI');
107-
// expect(openshiftAI?.description).toHaveLength(5);
108-
// });
100+
it('should have correct OpenShift AI data', () => {
101+
const openshiftAI = productData.find(p => p.id === Product.OPENSHIFT_AI);
102+
expect(openshiftAI).toBeDefined();
103+
expect(openshiftAI?.title).toBe('OpenShift AI');
104+
expect(openshiftAI?.description).toHaveLength(5);
105+
});
109106

110107
it('should have correct AAP warning message', () => {
111108
const aap = productData.find(p => p.id === Product.AAP);

plugins/sandbox/src/components/SandboxCatalog/productData.tsx

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ import TaskAltRoundedIcon from '@mui/icons-material/TaskAltRounded';
1818
import ErrorOutlineRoundedIcon from '@mui/icons-material/ErrorOutlineRounded';
1919
import OpenShiftIcon from '../../assets/logos/openshift.svg';
2020
import AnsibleIcon from '../../assets/logos/ansible.svg';
21-
// SANDBOX-1755: OpenShift AI temporarily disabled
22-
// import OpenShiftAIIcon from '../../assets/logos/openshift-ai.svg';
21+
import OpenShiftAIIcon from '../../assets/logos/openshift-ai.svg';
2322
import DevSpacesIcon from '../../assets/logos/devspaces.svg';
2423
import OpenshiftVirtualizationIcon from '../../assets/logos/openshift-virtualization.svg';
2524

@@ -78,34 +77,33 @@ export const productData: ProductData[] = [
7877
},
7978
],
8079
},
81-
// SANDBOX-1755: OpenShift AI temporarily disabled
82-
// {
83-
// id: Product.OPENSHIFT_AI,
84-
// title: 'OpenShift AI',
85-
// image: OpenShiftAIIcon,
86-
// description: [
87-
// {
88-
// icon: getSandboxCatalogCardIcon('success'),
89-
// value: 'Scalable AI and ML platform',
90-
// },
91-
// {
92-
// icon: getSandboxCatalogCardIcon('success'),
93-
// value: 'Optimized for AI workloads',
94-
// },
95-
// {
96-
// icon: getSandboxCatalogCardIcon('success'),
97-
// value: 'Train, serve and monitor models',
98-
// },
99-
// {
100-
// icon: getSandboxCatalogCardIcon('success'),
101-
// value: 'Supports predictive and generative AI',
102-
// },
103-
// {
104-
// icon: getSandboxCatalogCardIcon('success'),
105-
// value: 'Scales across the hybrid cloud',
106-
// },
107-
// ],
108-
// },
80+
{
81+
id: Product.OPENSHIFT_AI,
82+
title: 'OpenShift AI',
83+
image: OpenShiftAIIcon,
84+
description: [
85+
{
86+
icon: getSandboxCatalogCardIcon('success'),
87+
value: 'Scalable AI and ML platform',
88+
},
89+
{
90+
icon: getSandboxCatalogCardIcon('success'),
91+
value: 'Optimized for AI workloads',
92+
},
93+
{
94+
icon: getSandboxCatalogCardIcon('success'),
95+
value: 'Train, serve and monitor models',
96+
},
97+
{
98+
icon: getSandboxCatalogCardIcon('success'),
99+
value: 'Supports predictive and generative AI',
100+
},
101+
{
102+
icon: getSandboxCatalogCardIcon('success'),
103+
value: 'Scales across the hybrid cloud',
104+
},
105+
],
106+
},
109107
{
110108
id: Product.DEVSPACES,
111109
title: 'Dev Spaces',

plugins/sandbox/src/hooks/useProductURLs.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,10 @@ export const productsURLMapping = (userData: SignupData | undefined) => {
6262
? `${userData?.consoleURL}/k8s/cluster/projects/${userData?.defaultUserNamespace}`
6363
: '',
6464
},
65-
// SANDBOX-1755: OpenShift AI temporarily disabled
66-
// {
67-
// id: Product.OPENSHIFT_AI,
68-
// url: isProvisioned ? `${userData?.rhodsMemberURL}` : '',
69-
// },
65+
{
66+
id: Product.OPENSHIFT_AI,
67+
url: isProvisioned ? `${userData?.rhodsMemberURL}` : '',
68+
},
7069
{
7170
id: Product.DEVSPACES,
7271
url: isProvisioned

0 commit comments

Comments
 (0)