Compare commits

..

3 Commits

Author SHA1 Message Date
jacobo-dominguez-wgu
db201af910 feat: updating help buttons links and texts (#535) 2025-06-03 13:15:58 -04:00
renovate[bot]
281b817084 chore(deps): update dependency @openedx/paragon to v23.10.0 (#537)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-02 11:18:45 +00:00
renovate[bot]
08b69b8096 chore(deps): update dependency @edx/frontend-platform to v8.3.8 (#536)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-02 06:14:10 +00:00
4 changed files with 20 additions and 44 deletions

12
package-lock.json generated
View File

@@ -2262,9 +2262,9 @@
}
},
"node_modules/@edx/frontend-platform": {
"version": "8.3.7",
"resolved": "https://registry.npmjs.org/@edx/frontend-platform/-/frontend-platform-8.3.7.tgz",
"integrity": "sha512-ya5ObMvtJlfQmoeL36OtzjFBh0hzJgXN/R2ppyIJ+IbCtY2BCfv5NqvmKD7CplwnSGJTBugpv5hQHeGmi+v97w==",
"version": "8.3.8",
"resolved": "https://registry.npmjs.org/@edx/frontend-platform/-/frontend-platform-8.3.8.tgz",
"integrity": "sha512-wr3HKzDcYGNuHcM7HuZ/mqBdqnY/A7eYa3JDVZEsceyjy0PJyVKHWFu3yneGpD1zufguQCvS0q53C8gJbVzIgw==",
"license": "AGPL-3.0",
"dependencies": {
"@cospired/i18n-iso-languages": "4.2.0",
@@ -4114,9 +4114,9 @@
}
},
"node_modules/@openedx/paragon": {
"version": "23.6.0",
"resolved": "https://registry.npmjs.org/@openedx/paragon/-/paragon-23.6.0.tgz",
"integrity": "sha512-0wl6vFFBYxBHYpHY9yRNVyC9VTArPcYPRPxKFcB+gDoSC7YZMMUqdU6d7omavfU3+yWa1LC0b3wx86+/XnKd5w==",
"version": "23.10.0",
"resolved": "https://registry.npmjs.org/@openedx/paragon/-/paragon-23.10.0.tgz",
"integrity": "sha512-Y+uEuutGkdEAtqrIdL29sWFz2BtxkFhjEPGfIpDOcKt8qsInkuDyXAC21BLYGjl2ZRdza8z1apv/vlbbwqHrLQ==",
"license": "Apache-2.0",
"workspaces": [
"example",

View File

@@ -16,32 +16,18 @@ ensureConfig([
const BUTTONS = [
{
as: 'a',
href: 'https://docs.openedx.org/',
href: 'https://docs.openedx.org/en/latest/educators/quickstarts/build_a_course.html',
size: 'sm',
message: messages.edxDocumentationButtonLabel,
message: messages.educatorsDocsButtonLabel,
dataTestid: null,
},
{
as: 'a',
href: 'https://openedx.org/',
href: 'https://sandbox.openedx.org/courses/course-v1:OpenedX+01-2024+2024-1/about',
size: 'sm',
message: messages.openEdxPortalButtonLabel,
dataTestid: 'openEdXPortalButton',
},
{
as: 'a',
href: 'https://www.edx.org/course/edx101-overview-of-creating-an-edx-course#.VO4eaLPF-n1',
size: 'sm',
message: messages.edx101ButtonLabel,
message: messages.openEdxDemoCourseButtonLabel,
dataTestid: 'openEdXDemoCourseButton',
},
{
as: 'a',
href: 'https://www.edx.org/course/studiox-creating-a-course-with-edx-studio',
size: 'sm',
message: messages.studioXButtonLabel,
dataTestid: null,
},
];
const HelpContent = () => {

View File

@@ -28,8 +28,8 @@ describe('HelpContent', () => {
it('renders all help buttons', () => {
const config = { SUPPORT_EMAIL: 'support@example.com' };
render(<ContentWithContext config={config} />);
expect(screen.getByText(messages.edxDocumentationButtonLabel.defaultMessage)).toBeInTheDocument();
expect(screen.getByText(messages.edx101ButtonLabel.defaultMessage)).toBeInTheDocument();
expect(screen.getByText(messages.educatorsDocsButtonLabel.defaultMessage)).toBeInTheDocument();
expect(screen.getByText(messages.openEdxDemoCourseButtonLabel.defaultMessage)).toBeInTheDocument();
});
it('does not render contact button if SUPPORT_EMAIL is empty', () => {

View File

@@ -11,25 +11,15 @@ const messages = defineMessages({
defaultMessage: 'Hide Studio help',
description: 'Label for button that closes the collapsed section with help buttons',
},
edxDocumentationButtonLabel: {
id: 'authoring.footer.help.edxDocumentation.button.label',
defaultMessage: 'edX documentation',
description: 'Label for button that links to the edX documentation site',
educatorsDocsButtonLabel: {
id: 'authoring.footer.help.educatorsDocs.button.label',
defaultMessage: 'Open edX Educators Docs',
description: 'Label for button that links to the build a course quickstart site',
},
openEdxPortalButtonLabel: {
id: 'authoring.footer.help.openEdxPortal.button.label',
defaultMessage: 'Open edX portal',
description: 'Label for button that links to the Open edX portal',
},
edx101ButtonLabel: {
id: 'authoring.footer.help.edx101.button.label',
defaultMessage: 'Enroll in edX 101',
description: 'Label for button that links to the edX 101 course',
},
studioXButtonLabel: {
id: 'authoring.footer.help.studioX.button.label',
defaultMessage: 'Enroll in StudioX',
description: 'Label for button that links to the edX StudioX course',
openEdxDemoCourseButtonLabel: {
id: 'authoring.footer.help.openEdxDemoCourse.button.label',
defaultMessage: 'Open edX Demo Course',
description: 'Label for button that links to the open edX demo course portal',
},
contactUsButtonLabel: {
id: 'authoring.footer.help.contactUs.button.label',