Skip to content

Commit db201af

Browse files
feat: updating help buttons links and texts (#535)
1 parent 281b817 commit db201af

File tree

3 files changed

+15
-39
lines changed

3 files changed

+15
-39
lines changed

src/components/studio-footer/help-components/HelpContent.jsx

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,32 +16,18 @@ ensureConfig([
1616
const BUTTONS = [
1717
{
1818
as: 'a',
19-
href: 'https://docs.openedx.org/',
19+
href: 'https://docs.openedx.org/en/latest/educators/quickstarts/build_a_course.html',
2020
size: 'sm',
21-
message: messages.edxDocumentationButtonLabel,
21+
message: messages.educatorsDocsButtonLabel,
2222
dataTestid: null,
2323
},
2424
{
2525
as: 'a',
26-
href: 'https://openedx.org/',
26+
href: 'https://sandbox.openedx.org/courses/course-v1:OpenedX+01-2024+2024-1/about',
2727
size: 'sm',
28-
message: messages.openEdxPortalButtonLabel,
29-
dataTestid: 'openEdXPortalButton',
30-
},
31-
{
32-
as: 'a',
33-
href: 'https://www.edx.org/course/edx101-overview-of-creating-an-edx-course#.VO4eaLPF-n1',
34-
size: 'sm',
35-
message: messages.edx101ButtonLabel,
28+
message: messages.openEdxDemoCourseButtonLabel,
3629
dataTestid: 'openEdXDemoCourseButton',
3730
},
38-
{
39-
as: 'a',
40-
href: 'https://www.edx.org/course/studiox-creating-a-course-with-edx-studio',
41-
size: 'sm',
42-
message: messages.studioXButtonLabel,
43-
dataTestid: null,
44-
},
4531
];
4632

4733
const HelpContent = () => {

src/components/studio-footer/help-components/HelpContent.test.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ describe('HelpContent', () => {
2828
it('renders all help buttons', () => {
2929
const config = { SUPPORT_EMAIL: '[email protected]' };
3030
render(<ContentWithContext config={config} />);
31-
expect(screen.getByText(messages.edxDocumentationButtonLabel.defaultMessage)).toBeInTheDocument();
32-
expect(screen.getByText(messages.edx101ButtonLabel.defaultMessage)).toBeInTheDocument();
31+
expect(screen.getByText(messages.educatorsDocsButtonLabel.defaultMessage)).toBeInTheDocument();
32+
expect(screen.getByText(messages.openEdxDemoCourseButtonLabel.defaultMessage)).toBeInTheDocument();
3333
});
3434

3535
it('does not render contact button if SUPPORT_EMAIL is empty', () => {

src/components/studio-footer/messages.js

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,15 @@ const messages = defineMessages({
1111
defaultMessage: 'Hide Studio help',
1212
description: 'Label for button that closes the collapsed section with help buttons',
1313
},
14-
edxDocumentationButtonLabel: {
15-
id: 'authoring.footer.help.edxDocumentation.button.label',
16-
defaultMessage: 'edX documentation',
17-
description: 'Label for button that links to the edX documentation site',
18-
},
19-
openEdxPortalButtonLabel: {
20-
id: 'authoring.footer.help.openEdxPortal.button.label',
21-
defaultMessage: 'Open edX portal',
22-
description: 'Label for button that links to the Open edX portal',
23-
},
24-
edx101ButtonLabel: {
25-
id: 'authoring.footer.help.edx101.button.label',
26-
defaultMessage: 'Enroll in edX 101',
27-
description: 'Label for button that links to the edX 101 course',
28-
},
29-
studioXButtonLabel: {
30-
id: 'authoring.footer.help.studioX.button.label',
31-
defaultMessage: 'Enroll in StudioX',
32-
description: 'Label for button that links to the edX StudioX course',
14+
educatorsDocsButtonLabel: {
15+
id: 'authoring.footer.help.educatorsDocs.button.label',
16+
defaultMessage: 'Open edX Educators Docs',
17+
description: 'Label for button that links to the build a course quickstart site',
18+
},
19+
openEdxDemoCourseButtonLabel: {
20+
id: 'authoring.footer.help.openEdxDemoCourse.button.label',
21+
defaultMessage: 'Open edX Demo Course',
22+
description: 'Label for button that links to the open edX demo course portal',
3323
},
3424
contactUsButtonLabel: {
3525
id: 'authoring.footer.help.contactUs.button.label',

0 commit comments

Comments
 (0)