Skip to content

Commit ed308f3

Browse files
authored
Merge pull request #4657 from dlabrecq/mfe-to-ros
Replace MFE references with ROS and update routes
2 parents 52876b7 + 7ca6447 commit ed308f3

File tree

18 files changed

+55
-53
lines changed

18 files changed

+55
-53
lines changed

apps/koku-ui-ros/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Follow the prompts that follow.
6868

6969
2. Open the following URL
7070
```
71-
https://stage.foo.redhat.com:1337/staging/cost-management
71+
https://stage.foo.redhat.com:1337/staging/cost-management/ros
7272
```
7373

7474
Note: Must log in with a user that has Cost Management permissions

apps/koku-ui-ros/RELEASE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ After releasing to each staging environment, open an incognito window and view o
8787

8888
Please ensure expected changes have been updated before releasing to the next staging environment.
8989

90-
1. For stage-ros, view https://console.stage.redhat.com/staging/cost-management/
91-
2. For prod-ros, view https://console.redhat.com/staging/cost-management/ (preview mode only)
90+
1. For stage-ros, view https://console.stage.redhat.com/staging/cost-management/ros
91+
2. For prod-ros, view https://console.redhat.com/staging/cost-management/ros (preview mode only)
9292

9393
## Release notes
9494

apps/koku-ui-ros/deploy/frontend.yaml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,41 +12,43 @@ objects:
1212
spec:
1313
feoConfigEnabled: true
1414
bundleSegments:
15-
- segmentId: 'cost-management.staging'
15+
- segmentId: 'cost-management-plugin'
1616
bundleId: 'staging'
1717
position: 100
1818
navItems:
19-
- id: 'cost-management.staging.cost-management'
19+
- id: 'cost-management-plugin.nav'
2020
title: 'Cost Management'
2121
expandable: true
2222
routes:
23-
- id: 'cost-management.staging.ros'
23+
- id: 'cost-management-plugin.ros'
2424
title: 'ROS'
2525
expandable: true
26+
27+
# Must match apps/koku-ui-ros/src/utils/paths.ts base
2628
routes:
27-
- id: 'cost-management.staging.ros.badge'
29+
- id: 'cost-management-plugin.ros.badge'
2830
title: 'Optimizations badge'
29-
href: '/staging/cost-management-ros/ros/optimizations/badge'
30-
- id: 'cost-management.staging.ros.link'
31+
href: '/staging/cost-management/ros/optimizations/badge'
32+
- id: 'cost-management-plugin.ros.link'
3133
title: 'Optimizations link'
32-
href: '/staging/cost-management-ros/ros/optimizations/link'
33-
- id: 'cost-management.staging.ros.summary'
34+
href: '/staging/cost-management/ros/optimizations/link'
35+
- id: 'cost-management-plugin.ros.summary'
3436
title: 'Optimizations summary'
35-
href: "/staging/cost-management-ros/ros/optimizations/summary"
36-
- id: 'cost-management.staging.ros.table'
37+
href: "/staging/cost-management/ros/optimizations/summary"
38+
- id: 'cost-management-plugin.ros.table'
3739
title: 'Optimizations table'
38-
href: '/staging/cost-management-ros/ros/optimizations/table'
39-
- id: 'cost-management.staging.ros.details'
40+
href: '/staging/cost-management/ros/optimizations/table'
41+
- id: 'cost-management-plugin.ros.details'
4042
title: 'Optimizations details'
41-
href: '/staging/cost-management-ros/ros/optimizations/details'
42-
- id: 'cost-management.staging.ros.breakdown'
43+
href: '/staging/cost-management/ros/optimizations/details'
44+
- id: 'cost-management-plugin.ros.breakdown'
4345
title: 'Optimizations breakdown'
44-
href: '/staging/cost-management-ros/ros/optimizations/breakdown'
46+
href: '/staging/cost-management/ros/optimizations/breakdown'
4547
API:
4648
versions:
4749
- v1
4850
envName: ${ENV_NAME}
49-
title: 'Cost Management Resource Optimizations UI'
51+
title: 'Cost Management ROS UI'
5052
deploymentRepo: https://github.com/project-koku/koku-ui/apps/koku-ui-ros
5153
frontend:
5254
paths:
@@ -58,7 +60,7 @@ objects:
5860
- id: 'cost-management-ros'
5961
module: './RootApp'
6062
routes:
61-
- pathname: '/staging/cost-management-ros'
63+
- pathname: '/staging/cost-management/ros'
6264
parameters:
6365
- name: ENV_NAME
6466
required: true

apps/koku-ui-ros/docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Koku UI MFE Documentation Index #
1+
# Koku ROS UI Documentation Index #
22

3-
Welcome to the Koku UI MFE documentation!
3+
Welcome to the Koku ROS UI documentation!

apps/koku-ui-ros/fec.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class WatchRunPlugin {
3232
}
3333

3434
module.exports = {
35-
appUrl: '/staging/cost-management',
35+
appUrl: '/staging/cost-management/ros',
3636
debug: true,
3737
interceptChromeConfig: false, // Change to false after your app is registered in configuration files
3838
proxyVerbose: true,

apps/koku-ui-ros/locales/data.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
"costManagement": [
214214
{
215215
"type": 0,
216-
"value": "Cost Management MFE"
216+
"value": "Cost Management ROS"
217217
}
218218
],
219219
"cpu": [
@@ -1406,7 +1406,7 @@
14061406
"pageTitleDefault": [
14071407
{
14081408
"type": 0,
1409-
"value": "Cost Management MFE | OpenShift"
1409+
"value": "Cost Management ROS | OpenShift"
14101410
}
14111411
],
14121412
"pageTitleOptimizations": [
@@ -2084,7 +2084,7 @@
20842084
"welcomeTitle": [
20852085
{
20862086
"type": 0,
2087-
"value": "Cost Management microfrontend (MFE) with Module Federation"
2087+
"value": "Cost Management ROS UI"
20882088
}
20892089
]
20902090
}

apps/koku-ui-ros/locales/translations.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"chooseValuePlaceholder": "Choose value",
1111
"copyToClipboard": "Copy to clipboard",
1212
"copyToClipboardSuccessfull": "Successfully copied to clipboard!",
13-
"costManagement": "Cost Management MFE",
13+
"costManagement": "Cost Management ROS",
1414
"cpu": "CPU",
1515
"cpuUtilization": "CPU utilization",
1616
"currencyAbbreviations": "{symbol, select, billion {{value} B} million {{value} M} quadrillion {{value} q} thousand {{value} K} trillion {{value} t} other {}}",
@@ -71,7 +71,7 @@
7171
"optimizationsViewAllDisabled": "This project has not reported data this month.",
7272
"optimizedStateDesc": "Good job optimizing the current configuration.",
7373
"optimizedStateTitle": "You have reached recommended state!",
74-
"pageTitleDefault": "Cost Management MFE | OpenShift",
74+
"pageTitleDefault": "Cost Management ROS | OpenShift",
7575
"pageTitleOptimizations": "Optimizations - Cost Management | OpenShift",
7676
"paginationTitle": "{placement, select, top {{title} top pagination} bottom {{title} bottom pagination} other {{title} pagination}}",
7777
"percentPlus": "{count, plural, one {+{value}%} other {{value}%}}",
@@ -97,5 +97,5 @@
9797
"usage": "Usage",
9898
"valueUnits": "{value} {units}",
9999
"welcomeInfo": "For more information visit {url}",
100-
"welcomeTitle": "Cost Management microfrontend (MFE) with Module Federation"
100+
"welcomeTitle": "Cost Management ROS UI"
101101
}

apps/koku-ui-ros/src/appEntry.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ import { Provider } from 'react-redux';
1313
// eslint-disable-next-line no-restricted-imports
1414
import messages from '../locales/data.json';
1515
import App from './app';
16-
import { mfeStore } from './store';
16+
import { rosStore } from './store';
1717

1818
const AppEntry = () => {
1919
const locale = getLocale();
2020

2121
return (
2222
<IntlProvider defaultLocale="en" locale={locale} messages={messages[locale]} onError={console.log}>
23-
<Provider store={mfeStore as any}>
23+
<Provider store={rosStore as any}>
2424
<NotificationsPortal />
2525
<App />
2626
</Provider>

apps/koku-ui-ros/src/components/featureToggle/featureToggle.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { useDispatch } from 'react-redux';
55
import { featureToggleActions } from 'store/featureToggle';
66

77
export const enum FeatureToggle {
8-
boxPlot = 'cost-management.mfe.box-plot', // https://issues.redhat.com/browse/COST-4619
9-
debug = 'cost-management.mfe.debug',
10-
projectLink = 'cost-management.mfe.project-link', // https://issues.redhat.com/browse/COST-4527 '
8+
boxPlot = 'cost-management.ros.box-plot', // https://issues.redhat.com/browse/COST-4619
9+
debug = 'cost-management.ros.debug',
10+
projectLink = 'cost-management.ros.project-link', // https://issues.redhat.com/browse/COST-4527 '
1111
}
1212

1313
const useIsToggleEnabled = (toggle: FeatureToggle) => {

apps/koku-ui-ros/src/fed-modules/optimizationsWrapper.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import IntlProvider from '@redhat-cloud-services/frontend-components-translation
33
import { getLocale } from 'components/i18n';
44
import React from 'react';
55
import { Provider } from 'react-redux';
6-
import { mfeStore } from 'store';
6+
import { rosStore } from 'store';
77

88
// eslint-disable-next-line no-restricted-imports
99
import messages from '../../locales/data.json';
@@ -20,7 +20,7 @@ const OptimizationsWrapper: React.FC<OptimizationsWrapperProps> = ({ children }:
2020
// Note: className is a workaround for ConsoleDot outputting the app name instead of module name
2121
return (
2222
<IntlProvider defaultLocale="en" locale={locale} messages={messages[locale]} onError={console.log}>
23-
<Provider store={mfeStore as any}>
23+
<Provider store={rosStore as any}>
2424
<div className="costManagementRos">{children}</div>
2525
</Provider>
2626
</IntlProvider>

0 commit comments

Comments
 (0)