Skip to content

Commit 3eb21f3

Browse files
fix: rename Internal Viewer to Developer UI (#423)
1 parent 89357c4 commit 3eb21f3

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

src/containers/Cluster/ClusterInfo/ClusterInfo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import type {TClusterInfo} from '../../../types/api/cluster';
1818
import {backend, customBackend} from '../../../store';
1919
import {formatStorageValues} from '../../../utils';
2020
import {useSetting, useTypedSelector} from '../../../utils/hooks';
21-
import {CLUSTER_INFO_HIDDEN_KEY} from '../../../utils/constants';
21+
import {CLUSTER_INFO_HIDDEN_KEY, DEVELOPER_UI} from '../../../utils/constants';
2222

2323
import {VersionsBar} from '../VersionsBar/VersionsBar';
2424
import {ClusterInfoSkeleton} from '../ClusterInfoSkeleton/ClusterInfoSkeleton';
@@ -141,7 +141,7 @@ export const ClusterInfo = ({
141141
const {info = [], links = []} = additionalClusterProps;
142142

143143
const clusterInfo = getInfo(cluster, versionsValues, info, [
144-
{title: 'Internal Viewer', url: internalLink},
144+
{title: DEVELOPER_UI, url: internalLink},
145145
...links,
146146
]);
147147

src/containers/Header/Header.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {ExternalLinkWithIcon} from '../../components/ExternalLinkWithIcon/Extern
88
import {backend, customBackend} from '../../store';
99
import {HeaderItemType} from '../../store/reducers/header';
1010
import {useTypedSelector} from '../../utils/hooks';
11+
import {DEVELOPER_UI} from '../../utils/constants';
1112

1213
import './Header.scss';
1314

@@ -49,7 +50,7 @@ function Header() {
4950
</div>
5051

5152
<ExternalLinkWithIcon
52-
title={'Internal Viewer'}
53+
title={DEVELOPER_UI}
5354
url={getInternalLink(singleClusterMode)}
5455
/>
5556
</header>

src/containers/Tablet/Tablet.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {setHeader} from '../../store/reducers/header';
1010
import routes, {createHref} from '../../routes';
1111

1212
import {useAutofetcher, useTypedSelector} from '../../utils/hooks';
13+
import {DEVELOPER_UI} from '../../utils/constants';
1314
import '../../services/api';
1415

1516
import EntityStatus from '../../components/EntityStatus/EntityStatus';
@@ -114,7 +115,7 @@ export const Tablet = () => {
114115

115116
const externalLinks = [
116117
{
117-
name: 'Internal viewer - tablet',
118+
name: `${DEVELOPER_UI} - tablet`,
118119
path: `/tablets?TabletID=${TabletId}`,
119120
},
120121
];

src/store/reducers/topic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const topic: Reducer<ITopicState, ITopicAction> = (state = initialState, action)
3535
};
3636
}
3737
case FETCH_TOPIC.SUCCESS: {
38-
// On older version it can return HTML page of Internal Viewer with an error
38+
// On older version it can return HTML page of Developer UI with an error
3939
if (typeof action.data !== 'object') {
4040
return {...state, loading: false, error: {}};
4141
}

src/utils/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ export const COLORS_PRIORITY = {
7575
grey: 1,
7676
};
7777

78+
export const DEVELOPER_UI = 'Developer UI';
79+
7880
export const THEME_KEY = 'theme';
7981
export const INVERTED_DISKS_KEY = 'invertedDisks';
8082
export const USE_NODES_ENDPOINT_IN_DIAGNOSTICS_KEY = 'useNodesEndpointInDiagnostics';

tests/suites/internalViewer/internalViewer.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {test, expect} from '@playwright/test';
33
test.describe('Test InternalViewer', async () => {
44
test('Test internalViewer header link', async ({page}) => {
55
page.goto('');
6-
const link = page.locator('header').locator('a').getByText('Internal Viewer');
6+
const link = page.locator('header').locator('a').getByText('Developer UI');
77
const href = await link.getAttribute('href');
88

99
expect(href).not.toBeNull();

0 commit comments

Comments
 (0)