Skip to content

Commit a229c34

Browse files
authored
fix: Remove Studio Maintenance link (#553)
This Studio Maintenance app has been broken for a long time, so it is being removed from edx-platform: openedx/edx-platform#35852
1 parent 5d7b4fe commit a229c34

File tree

4 files changed

+0
-34
lines changed

4 files changed

+0
-34
lines changed

src/Header.messages.jsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ const messages = defineMessages({
6161
defaultMessage: 'Studio Home',
6262
description: 'Link to the Studio Home',
6363
},
64-
'header.user.menu.studio.maintenance': {
65-
id: 'header.user.menu.studio.maintenance',
66-
defaultMessage: 'Maintenance',
67-
description: 'Link to the Studio Maintenance',
68-
},
6964
'header.label.account.nav': {
7065
id: 'header.label.account.nav',
7166
defaultMessage: 'Account',

src/studio-header/StudioHeader.test.jsx

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { Context as ResponsiveContext } from 'react-responsive';
1212
import { MemoryRouter } from 'react-router-dom';
1313

1414
import StudioHeader from './StudioHeader';
15-
import messages from './messages';
1615

1716
const authenticatedUser = {
1817
userId: 3,
@@ -115,16 +114,6 @@ describe('Header', () => {
115114
expect(dropdownOption).toBeVisible();
116115
});
117116

118-
it('maintenance should not be in user menu', async () => {
119-
currentUser = { ...authenticatedUser, administrator: false };
120-
const { getAllByRole, queryByText } = render(<RootWrapper {...props} />);
121-
const userMenu = getAllByRole('button')[1];
122-
await waitFor(() => fireEvent.click(userMenu));
123-
const maintenanceButton = queryByText(messages['header.user.menu.maintenance'].defaultMessage);
124-
125-
expect(maintenanceButton).toBeNull();
126-
});
127-
128117
it('user menu should use avatar icon', async () => {
129118
currentUser = { ...authenticatedUser, avatar: null };
130119
const { getByTestId } = render(<RootWrapper {...props} />);
@@ -186,15 +175,6 @@ describe('Header', () => {
186175
expect(desktopMenu).toBeNull();
187176
});
188177

189-
it('maintenance should be in user menu', async () => {
190-
const { getAllByRole, getByText } = render(<RootWrapper {...props} />);
191-
const userMenu = getAllByRole('button')[1];
192-
await waitFor(() => fireEvent.click(userMenu));
193-
const maintenanceButton = getByText(messages['header.user.menu.maintenance'].defaultMessage);
194-
195-
expect(maintenanceButton).toBeVisible();
196-
});
197-
198178
it('user menu should use avatar image', async () => {
199179
const { getByTestId } = render(<RootWrapper {...props} />);
200180
const avatarImage = getByTestId('avatar-image');

src/studio-header/messages.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ const messages = defineMessages({
66
defaultMessage: 'Studio Home',
77
description: 'Link to Studio Home',
88
},
9-
'header.user.menu.maintenance': {
10-
id: 'header.user.menu.maintenance',
11-
defaultMessage: 'Maintenance',
12-
description: 'Link to the Studio maintenance page',
13-
},
149
'header.user.menu.logout': {
1510
id: 'header.user.menu.logout',
1611
defaultMessage: 'Logout',

src/studio-header/utils.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { getConfig } from '@edx/frontend-platform';
21
import messages from './messages';
32

43
const getUserMenuItems = ({
@@ -21,9 +20,6 @@ const getUserMenuItems = ({
2120
{
2221
href: `${studioBaseUrl}`,
2322
title: intl.formatMessage(messages['header.user.menu.studio']),
24-
}, {
25-
href: `${getConfig().STUDIO_BASE_URL}/maintenance`,
26-
title: intl.formatMessage(messages['header.user.menu.maintenance']),
2723
}, {
2824
href: `${logoutUrl}`,
2925
title: intl.formatMessage(messages['header.user.menu.logout']),

0 commit comments

Comments
 (0)