@edx/frontend-app-subscription-learner-dashboard 1.38.2 → 1.38.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/containers/ProgramDashboard/ProgramsList/index.js +2 -2
- package/dist/containers/ProgramDashboard/ProgramsList/index.js.map +1 -1
- package/dist/containers/ProgramDashboard/ProgramsList/messages.d.ts +0 -5
- package/dist/containers/ProgramDashboard/ProgramsList/messages.js +0 -5
- package/dist/containers/ProgramDashboard/ProgramsList/messages.js.map +1 -1
- package/dist/containers/ProgramsPanel/NoProgramsView/messages.js +1 -1
- package/dist/containers/ProgramsPanel/NoProgramsView/messages.js.map +1 -1
- package/dist/containers/ProgramsPanel/messages.js +1 -1
- package/dist/containers/ProgramsPanel/messages.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { Alert, CardGrid, Col, Row, Spinner, } from '@openedx/paragon';
|
|
3
3
|
import { useIntl, getSiteConfig } from '@openedx/frontend-base';
|
|
4
4
|
import appMessages from '../../../messages';
|
|
@@ -22,7 +22,7 @@ const ProgramsList = ({ programsData, isLoading, errorState }) => {
|
|
|
22
22
|
contactSupportUrl: (_jsx(Alert.Link, { href: contactUrl, children: contactUrl })),
|
|
23
23
|
}) }));
|
|
24
24
|
};
|
|
25
|
-
return (
|
|
25
|
+
return (_jsx("div", { children: _jsx(Row, { className: "py-3", children: errorState ? renderFailureAlert() : renderPrograms() }) }));
|
|
26
26
|
};
|
|
27
27
|
export default ProgramsList;
|
|
28
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/containers/ProgramDashboard/ProgramsList/index.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,KAAK,EAAE,Q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AAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,YACjB,KAAC,QAAQ,IAAC,WAAW,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,YACrC,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAC3B,KAAC,eAAe,IAEd,OAAO,EAAE,OAAO,IADX,OAAO,CAAC,IAAI,CAEjB,CACH,CAAC,GACO,GACP,GACL,CACJ,CAAC;QACJ,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;IAEF,MAAM,kBAAkB,GAAG,GAAG,EAAE;QAC9B,MAAM,UAAU,GAAG,GAAG,aAAa,EAAE,CAAC,UAAU,UAAU,CAAC;QAC3D,OAAO,CACL,KAAC,KAAK,IAAC,SAAS,EAAC,yBAAyB,EAAC,OAAO,EAAC,QAAQ,YACxD,aAAa,CAAC,QAAQ,CAAC,8BAA8B,EAAE;gBACtD,iBAAiB,EAAE,CACjB,KAAC,KAAK,CAAC,IAAI,IAAC,IAAI,EAAE,UAAU,YACzB,UAAU,GACA,CACd;aACF,CAAC,GACI,CACT,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,CACL,wBACE,KAAC,GAAG,IAAC,SAAS,EAAC,MAAM,YAClB,UAAU,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,GACjD,GACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["import React from 'react';\nimport {\n Alert, CardGrid, Col, Row, Spinner,\n} from '@openedx/paragon';\nimport { useIntl, getSiteConfig } from '@openedx/frontend-base';\nimport appMessages from '../../../messages';\nimport ProgramListCard from './ProgramListCard';\nimport messages from './messages';\nimport { ProgramList } from '../data/types';\n\nimport './index.scss';\n\nconst ProgramsList: React.FC<ProgramList> = ({ programsData, isLoading, errorState }) => {\n const { formatMessage } = useIntl();\n\n const renderPrograms = () => {\n if (isLoading) {\n return (\n <Col sm={12} className=\"d-flex justify-content-center py-4\">\n <Spinner animation=\"border\" screenReaderText={formatMessage(appMessages['subs-dash.loadingSR'])} />\n </Col>\n );\n }\n if (programsData.length > 0) {\n return (\n <>\n <Col sm={12} md={12}>\n <CardGrid columnSizes={{ xs: 12, lg: 6 }}>\n {programsData.map(program => (\n <ProgramListCard\n key={program.uuid}\n program={program}\n />\n ))}\n </CardGrid>\n </Col>\n </>\n );\n }\n return null;\n };\n\n const renderFailureAlert = () => {\n const contactUrl = `${getSiteConfig().lmsBaseUrl}/contact`;\n return (\n <Alert className=\"mx-auto container-mw-md\" variant=\"danger\">\n {formatMessage(messages.errorLoadingProgramEnrollments, {\n contactSupportUrl: (\n <Alert.Link href={contactUrl}>\n {contactUrl}\n </Alert.Link>\n ),\n })}\n </Alert>\n );\n };\n\n return (\n <div>\n <Row className=\"py-3\">\n {errorState ? renderFailureAlert() : renderPrograms()}\n </Row>\n </div>\n );\n};\n\nexport default ProgramsList;\n"]}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { defineMessages } from '@openedx/frontend-base';
|
|
2
2
|
const messages = defineMessages({
|
|
3
|
-
programsListDescriptionText: {
|
|
4
|
-
defaultMessage: 'Professional certificate or XSeries programs provide a curated series of courses on a specific subject to deepen your learning. Find a program and enroll in the first course of the series.',
|
|
5
|
-
id: 'programs.list.description.text',
|
|
6
|
-
description: 'Description text for the programs list',
|
|
7
|
-
},
|
|
8
3
|
progressCategoryBubblesRemaining: {
|
|
9
4
|
id: 'dashboard.programs.program.listing.card.remaining.courses.count',
|
|
10
5
|
defaultMessage: 'Remaining',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../../src/containers/ProgramDashboard/ProgramsList/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC9B,
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../../src/containers/ProgramDashboard/ProgramsList/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC9B,gCAAgC,EAAE;QAChC,EAAE,EAAE,iEAAiE;QACrE,cAAc,EAAE,WAAW;QAC3B,WAAW,EAAE,mDAAmD;KACjE;IACD,iCAAiC,EAAE;QACjC,EAAE,EAAE,kEAAkE;QACtE,cAAc,EAAE,aAAa;QAC7B,WAAW,EAAE,qDAAqD;KACnE;IACD,8BAA8B,EAAE;QAC9B,EAAE,EAAE,iEAAiE;QACrE,cAAc,EAAE,WAAW;QAC3B,WAAW,EAAE,mDAAmD;KACjE;IACD,8BAA8B,EAAE;QAC9B,EAAE,EAAE,yCAAyC;QAC7C,cAAc,EAAE,wKAAwK;QACxL,WAAW,EAAE,uDAAuD;KACrE;CACF,CAAC,CAAC;AAEH,eAAe,QAAQ,CAAC","sourcesContent":["import { defineMessages } from '@openedx/frontend-base';\n\nconst messages = defineMessages({\n progressCategoryBubblesRemaining: {\n id: 'dashboard.programs.program.listing.card.remaining.courses.count',\n defaultMessage: 'Remaining',\n description: 'Label for remaining courses count on program card',\n },\n progressCategoryBubblesInProgress: {\n id: 'dashboard.programs.program.listing.card.inProgress.courses.count',\n defaultMessage: 'In Progress',\n description: 'Label for in progress courses count on program card',\n },\n progressCategoryBubblesSuccess: {\n id: 'dashboard.programs.program.listing.card.completed.courses.count',\n defaultMessage: 'Completed',\n description: 'Label for completed courses count on program card',\n },\n errorLoadingProgramEnrollments: {\n id: 'alert.error.loading.program.enrollments',\n defaultMessage: 'An error occurred while attempting to retrieve program enrollments. Try refreshing the page. If that doesn\\'t solve the issue, contact support at {contactSupportUrl}.',\n description: 'Alert message for failure to load program enrollments',\n },\n});\n\nexport default messages;\n"]}
|
|
@@ -2,7 +2,7 @@ import { defineMessages } from '@openedx/frontend-base';
|
|
|
2
2
|
const messages = defineMessages({
|
|
3
3
|
inProgressProgramsPrompt: {
|
|
4
4
|
id: 'Dashboard.NoProgramsView.inProgressProgramsPrompt',
|
|
5
|
-
defaultMessage: '
|
|
5
|
+
defaultMessage: 'Professional certificate or XSeries programs provide a curated series of courses on a specific subject to deepen your learning. Find a program and enroll in the first course of the series.',
|
|
6
6
|
description: 'Placeholder text for in-progress programs section',
|
|
7
7
|
},
|
|
8
8
|
findProgramsButton: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../../src/containers/ProgramsPanel/NoProgramsView/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC9B,wBAAwB,EAAE;QACxB,EAAE,EAAE,mDAAmD;QACvD,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../../src/containers/ProgramsPanel/NoProgramsView/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC9B,wBAAwB,EAAE;QACxB,EAAE,EAAE,mDAAmD;QACvD,cAAc,EAAE,8LAA8L;QAC9M,WAAW,EAAE,mDAAmD;KACjE;IACD,kBAAkB,EAAE;QAClB,EAAE,EAAE,6CAA6C;QACjD,cAAc,EAAE,gBAAgB;QAChC,WAAW,EAAE,8BAA8B;KAC5C;CACF,CAAC,CAAC;AAEH,eAAe,QAAQ,CAAC","sourcesContent":["import { defineMessages } from '@openedx/frontend-base';\n\nconst messages = defineMessages({\n inProgressProgramsPrompt: {\n id: 'Dashboard.NoProgramsView.inProgressProgramsPrompt',\n defaultMessage: 'Professional certificate or XSeries programs provide a curated series of courses on a specific subject to deepen your learning. Find a program and enroll in the first course of the series.',\n description: 'Placeholder text for in-progress programs section',\n },\n findProgramsButton: {\n id: 'Dashboard.NoProgramsView.findProgramsButton',\n defaultMessage: 'Find a program',\n description: 'Button to find more programs',\n }\n});\n\nexport default messages;\n"]}
|
|
@@ -7,7 +7,7 @@ const messages = defineMessages({
|
|
|
7
7
|
},
|
|
8
8
|
emptyProgramsMessage: {
|
|
9
9
|
id: 'subs.emptyProgramsMessage',
|
|
10
|
-
defaultMessage: '
|
|
10
|
+
defaultMessage: 'Professional certificate or XSeries programs provide a curated series of courses on a specific subject to deepen your learning. Find a program and enroll in the first course of the series.',
|
|
11
11
|
description: 'Message shown in the Programs tab of the learner dashboard',
|
|
12
12
|
},
|
|
13
13
|
explorePrograms: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../src/containers/ProgramsPanel/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC9B,UAAU,EAAE;QACV,EAAE,EAAE,sBAAsB;QAC1B,cAAc,EAAE,aAAa;QAC7B,WAAW,EAAE,+DAA+D;KAC7E;IACD,oBAAoB,EAAE;QACpB,EAAE,EAAE,2BAA2B;QAC/B,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../src/containers/ProgramsPanel/messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,QAAQ,GAAG,cAAc,CAAC;IAC9B,UAAU,EAAE;QACV,EAAE,EAAE,sBAAsB;QAC1B,cAAc,EAAE,aAAa;QAC7B,WAAW,EAAE,+DAA+D;KAC7E;IACD,oBAAoB,EAAE;QACpB,EAAE,EAAE,2BAA2B;QAC/B,cAAc,EAAE,8LAA8L;QAC9M,WAAW,EAAE,4DAA4D;KAC1E;IACD,eAAe,EAAE;QACf,EAAE,EAAE,sBAAsB;QAC1B,cAAc,EAAE,kBAAkB;QAClC,WAAW,EAAE,2FAA2F;KACzG;IACD,yBAAyB,EAAE;QACzB,EAAE,EAAE,gCAAgC;QACpC,cAAc,EAAE,0DAA0D;QAC1E,WAAW,EAAE,2FAA2F;KACzG;CACF,CAAC,CAAC;AAEH,eAAe,QAAQ,CAAC","sourcesContent":["import { defineMessages } from '@openedx/frontend-base';\n\nconst messages = defineMessages({\n myPrograms: {\n id: 'dashboard.myPrograms',\n defaultMessage: 'My programs',\n description: 'Label for Programs belonging to a user\\'s active subscription',\n },\n emptyProgramsMessage: {\n id: 'subs.emptyProgramsMessage',\n defaultMessage: 'Professional certificate or XSeries programs provide a curated series of courses on a specific subject to deepen your learning. Find a program and enroll in the first course of the series.',\n description: 'Message shown in the Programs tab of the learner dashboard',\n },\n explorePrograms: {\n id: 'subs.explorePrograms',\n defaultMessage: 'Explore programs',\n description: 'Message shown in the explore programs button in the Programs tab of the learner dashboard',\n },\n exploreProgramsCTAMessage: {\n id: 'subs.exploreProgramsCTAMessage',\n defaultMessage: 'Advance your learning by exploring a program curriculum.',\n description: 'Message shown in the explore programs button in the Programs tab of the learner dashboard',\n }\n});\n\nexport default messages;\n"]}
|