Skip to content

fix: LmsHtmlFragment.css not found #1659

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
c47142c
fix: LmsHtmlFragment.css not found
jciasenza Mar 26, 2025
f00e5e6
fix: LmsHtmlFragment.css not found
jciasenza Mar 26, 2025
8e563c6
fix: change absolute route
jciasenza Mar 27, 2025
7a4a0b8
chore(deps): update `@openedx` dependencies to versions that support …
brian-smith-tcril Apr 2, 2025
bcc95b0
fix(deps): update dependency @openedx/frontend-slot-footer to v1.1.1 …
renovate[bot] Apr 2, 2025
7936f97
fix(deps): update dependency @edx/react-unit-test-utils to v3.1.0 (#1…
renovate[bot] Apr 2, 2025
334bd9e
fix(deps): update dependency @edx/frontend-component-footer to v14.4.…
renovate[bot] Apr 2, 2025
f02bd6a
fix(deps): update dependency @edx/frontend-lib-learning-assistant to …
renovate[bot] Apr 2, 2025
ff943c3
fix(deps): update dependency @openedx/frontend-build to v14.4.2 (#1665)
renovate[bot] Apr 3, 2025
a3e6266
fix(deps): update dependency @openedx/paragon to v22.17.0 (#1666)
renovate[bot] Apr 3, 2025
b83bf68
fix(deps): update dependency @edx/frontend-platform to v8.3.4 (#1623)
renovate[bot] Apr 3, 2025
81cc1ee
chore: update browserslist DB (#1670)
edx-requirements-bot Apr 7, 2025
7205a85
feat: upgrade to react 18 (#1663)
brian-smith-tcril Apr 7, 2025
87ef148
feat: Drop canShowUpgradeSock course data.
feanil Mar 24, 2025
0252c3b
fix: unit link in preview mode
KristinAoki Mar 26, 2025
e2b54f2
fix: breadcrumb preview link
KristinAoki Mar 26, 2025
36ed708
fix: lint errors
KristinAoki Mar 26, 2025
20c91d5
chore: update browserslist DB (#1673)
edx-requirements-bot Apr 14, 2025
1b2e785
chore: remove extraneous config file
arbrandes Apr 14, 2025
e9ba2bb
feat: removes Upgrade Notification as default content
arbrandes Apr 14, 2025
8ccd71a
refactor: change to useIntl
KristinAoki Mar 11, 2025
3312106
chore: remove 'patch-package' and its unused frontend-build patch
bradenmacdonald Mar 5, 2025
e1eab89
chore(deps): update dependency @openedx/frontend-build (#1677)
igobranco Apr 16, 2025
53f4ac3
chore: update browserslist DB (#1681)
edx-requirements-bot Apr 21, 2025
94f0118
fix(deps): update dependency @edx/frontend-component-header to v6.4.0…
renovate[bot] Apr 23, 2025
ea13e9c
feat: standardize slot ids (#1685)
brian-smith-tcril Apr 24, 2025
90f1fc1
feat: import `FooterSlot` from component package instead of slot pack…
brian-smith-tcril Apr 24, 2025
7ba6238
fix(docs): correct CourseRecommendationsSlot README title (#1688)
brian-smith-tcril Apr 25, 2025
1765b39
fix(docs): correct ProgressCertificateStatusSlot README title (#1689)
brian-smith-tcril Apr 25, 2025
8f3c761
feat: update certificate icons
Cup0fCoffee Apr 25, 2025
4000c83
chore: update browserslist DB (#1696)
edx-requirements-bot May 5, 2025
fdc1b76
refactor: replace query-string pkg, remove unused <ShareButton> (#1676)
bradenmacdonald May 5, 2025
d2ed142
fix(deps): update dependency @edx/frontend-platform to v8.3.5 (#1697)
renovate[bot] May 5, 2025
2a647f5
fix(deps): update dependency @edx/frontend-component-footer to v14.7.…
renovate[bot] May 5, 2025
3284ad7
fix(deps): update dependency @edx/openedx-atlas to ^0.7.0 (#1699)
renovate[bot] May 6, 2025
e65dedd
feat: add course end dashboard plugin slots (#1658)
jansenk May 8, 2025
877a4d2
chore: update browserslist DB (#1704)
edx-requirements-bot May 12, 2025
41ee7fe
chore: re-add query-string dependency (#1703)
nsprenkle May 12, 2025
6423a36
fix(deps): update dependency @edx/frontend-platform to v8.3.6 (#1707)
renovate[bot] May 15, 2025
bd1503f
chore: update browserslist DB (#1709)
edx-requirements-bot May 19, 2025
a66032f
fix(deps): update dependency @edx/frontend-platform to v8.3.7 (#1710)
renovate[bot] May 19, 2025
05cd0e4
temp: reverse stack order of discussions and upsell in sidebar (#1705)
ayesha-waris May 19, 2025
cb10994
fix: Add protocol logic
jciasenza May 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ ECOMMERCE_BASE_URL=''
ENABLE_JUMPNAV='true'
ENABLE_NOTICES=''
ENTERPRISE_LEARNER_PORTAL_HOSTNAME=''
ENTERPRISE_LEARNER_PORTAL_URL=''
EXAMS_BASE_URL=''
FAVICON_URL=''
IGNORED_ERROR_REGEX=''
Expand Down
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ ECOMMERCE_BASE_URL='http://localhost:18130'
ENABLE_JUMPNAV='true'
ENABLE_NOTICES=''
ENTERPRISE_LEARNER_PORTAL_HOSTNAME='localhost:8734'
ENTERPRISE_LEARNER_PORTAL_URL='http://localhost:8734'
EXAMS_BASE_URL=''
FAVICON_URL=https://edx-cdn.org/v3/default/favicon.ico
IGNORED_ERROR_REGEX=''
Expand Down
2 changes: 2 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ ECOMMERCE_BASE_URL='http://localhost:18130'
ENABLE_JUMPNAV='true'
ENABLE_NOTICES=''
ENTERPRISE_LEARNER_PORTAL_HOSTNAME='localhost:8734'
ENTERPRISE_LEARNER_PORTAL_URL='http://localhost:8734'
EXAMS_BASE_URL='http://localhost:18740'
FAVICON_URL=https://edx-cdn.org/v3/default/favicon.ico
IGNORED_ERROR_REGEX=''
Expand Down Expand Up @@ -48,3 +49,4 @@ TWITTER_URL='https://twitter.com/edXOnline'
USER_INFO_COOKIE_NAME='edx-user-info'
PRIVACY_POLICY_URL='http://localhost:18000/privacy'
SHOW_UNGRADED_ASSIGNMENT_PROGRESS=''
ENTERPRISE_LEARNER_PORTAL_URL='http://localhost:Enterprise'
8,078 changes: 4,660 additions & 3,418 deletions package-lock.json

Large diffs are not rendered by default.

33 changes: 15 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"i18n_extract": "fedx-scripts formatjs extract",
"lint": "fedx-scripts eslint --ext .js --ext .jsx --ext .ts --ext .tsx .",
"lint:fix": "fedx-scripts eslint --fix --ext .js --ext .jsx --ext .ts --ext .tsx .",
"postinstall": "patch-package",
"snapshot": "fedx-scripts jest --updateSnapshot",
"start": "fedx-scripts webpack-dev-server --progress",
"dev": "PUBLIC_PATH=/learning/ MFE_CONFIG_API_URL='http://localhost:8000/api/mfe_config/v1' fedx-scripts webpack-dev-server --progress --host apps.local.openedx.io",
Expand All @@ -35,20 +34,20 @@
"dependencies": {
"@edx/brand": "npm:@openedx/brand-openedx@^1.2.2",
"@edx/browserslist-config": "1.5.0",
"@edx/frontend-component-header": "^5.8.0",
"@edx/frontend-lib-learning-assistant": "^2.19.2",
"@edx/frontend-lib-special-exams": "^3.1.3",
"@edx/frontend-platform": "^8.0.0",
"@edx/openedx-atlas": "^0.6.0",
"@edx/react-unit-test-utils": "3.0.0",
"@edx/frontend-component-footer": "^14.6.0",
"@edx/frontend-component-header": "^6.2.0",
"@edx/frontend-lib-learning-assistant": "^2.20.0",
"@edx/frontend-lib-special-exams": "^3.5.0",
"@edx/frontend-platform": "^8.3.1",
"@edx/openedx-atlas": "^0.7.0",
"@edx/react-unit-test-utils": "^4.0.0",
"@fortawesome/free-brands-svg-icons": "5.15.4",
"@fortawesome/free-regular-svg-icons": "5.15.4",
"@fortawesome/free-solid-svg-icons": "5.15.4",
"@fortawesome/react-fontawesome": "^0.1.4",
"@openedx/frontend-build": "^14.2.0",
"@openedx/frontend-plugin-framework": "^1.2.1",
"@openedx/frontend-slot-footer": "^1.0.2",
"@openedx/paragon": "^22.3.0",
"@openedx/frontend-build": "^14.5.0",
"@openedx/frontend-plugin-framework": "^1.7.0",
"@openedx/paragon": "^22.16.0",
"@popperjs/core": "2.11.8",
"@reduxjs/toolkit": "1.9.7",
"buffer": "^6.0.3",
Expand All @@ -58,12 +57,11 @@
"js-cookie": "3.0.5",
"lodash": "^4.17.21",
"lodash.camelcase": "4.3.0",
"patch-package": "^8.0.0",
"postcss-loader": "^8.1.1",
"prop-types": "15.8.1",
"query-string": "^7.1.3",
"react": "17.0.2",
"react-dom": "17.0.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-helmet": "6.1.0",
"react-redux": "7.2.9",
"react-router": "6.15.0",
Expand All @@ -79,9 +77,8 @@
"devDependencies": {
"@edx/reactifex": "2.2.0",
"@pact-foundation/pact": "^13.0.0",
"@testing-library/jest-dom": "5.17.0",
"@testing-library/react": "12.1.5",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.2.0",
"@testing-library/user-event": "14.6.1",
"axios-mock-adapter": "2.1.0",
"bundlewatch": "^0.4.0",
Expand All @@ -95,7 +92,7 @@
"files": [
{
"path": "dist/*.js",
"maxSize": "1400kB"
"maxSize": "1450kB"
}
],
"normalizeFilenames": "^.+?(\\..+?)\\.\\w+$"
Expand Down
36 changes: 0 additions & 36 deletions patches/@openedx+frontend-build+13.0.30.patch

This file was deleted.

224 changes: 224 additions & 0 deletions src/__snapshots__/index.test.jsx.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,224 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`app registry subscribe: APP_INIT_ERROR. snapshot: displays an ErrorPage to root element 1`] = `
<React Strict Mode>
<ErrorPage
message="test-error-message"
/>
</React Strict Mode>
`;

exports[`app registry subscribe: APP_READY. links App to root element 1`] = `
<React Strict Mode>
<AppProvider
store={
{
"dispatch": [Function],
"getState": [Function],
"replaceReducer": [Function],
"subscribe": [Function],
Symbol(Symbol.observable): [Function],
}
}
>
<HelmetWrapper
defer={true}
encodeSpecialCharacters={true}
>
<link
href="favicon-url"
rel="shortcut icon"
type="image/x-icon"
/>
</HelmetWrapper>
<PathFixesProvider>
<NoticesProvider>
<UserMessagesProvider>
<Routes>
<Route
element={
<PageWrap>
<Page Not Found />
</PageWrap>
}
path="*"
/>
<Route
element={
<PageWrap>
<Goal Unsubscribe />
</PageWrap>
}
path="/goal-unsubscribe/:token"
/>
<Route
element={
<PageWrap>
<Courseware Redirect Landing Page />
</PageWrap>
}
path="/redirect/*"
/>
<Route
element={
<PageWrap>
<Preferences Unsubscribe />
</PageWrap>
}
path="/preferences-unsubscribe/:userToken/:updatePatch"
/>
<Route
element={
<DecodePageRoute>
<Course Access Error Page />
</DecodePageRoute>
}
path="/course/:courseId/access-denied"
/>
<Route
element={
<DecodePageRoute>
<Tab Container
fetch={[Function]}
slice="courseHome"
tab="outline"
>
<Outline Tab />
</Tab Container>
</DecodePageRoute>
}
path="/course/:courseId/home"
/>
<Route
element={
<DecodePageRoute>
<Tab Container
fetch={[Function]}
slice="courseHome"
tab="lti_live"
>
<Live Tab />
</Tab Container>
</DecodePageRoute>
}
path="/course/:courseId/live"
/>
<Route
element={
<DecodePageRoute>
<Tab Container
fetch={[Function]}
slice="courseHome"
tab="dates"
>
<Dates Tab />
</Tab Container>
</DecodePageRoute>
}
path="/course/:courseId/dates"
/>
<Route
element={
<DecodePageRoute>
<Tab Container
fetch={[Function]}
slice="courseHome"
tab="discussion"
>
<Discussion Tab />
</Tab Container>
</DecodePageRoute>
}
path="/course/:courseId/discussion/:path/*"
/>
<Route
element={
<DecodePageRoute>
<Tab Container
fetch={[Function]}
isProgressTab={true}
slice="courseHome"
tab="progress"
>
<Progress Tab />
</Tab Container>
</DecodePageRoute>
}
path="/course/:courseId/progress/:targetUserId/"
/>
<Route
element={
<DecodePageRoute>
<Tab Container
fetch={[Function]}
isProgressTab={true}
slice="courseHome"
tab="progress"
>
<Progress Tab />
</Tab Container>
</DecodePageRoute>
}
path="/course/:courseId/progress"
/>
<Route
element={
<DecodePageRoute>
<Tab Container
fetch={[Function]}
slice="courseware"
tab="courseware"
>
<Course Exit />
</Tab Container>
</DecodePageRoute>
}
path="/course/:courseId/course-end"
/>
<Route
element={
<DecodePageRoute>
<Courseware Container />
</DecodePageRoute>
}
path="/course/:courseId/:sequenceId/:unitId"
/>
<Route
element={
<DecodePageRoute>
<Courseware Container />
</DecodePageRoute>
}
path="/course/:courseId/:sequenceId"
/>
<Route
element={
<DecodePageRoute>
<Courseware Container />
</DecodePageRoute>
}
path="/course/:courseId"
/>
<Route
element={
<DecodePageRoute>
<Courseware Container />
</DecodePageRoute>
}
path="/preview/course/:courseId/:sequenceId/:unitId"
/>
<Route
element={
<DecodePageRoute>
<Courseware Container />
</DecodePageRoute>
}
path="/preview/course/:courseId/:sequenceId"
/>
</Routes>
</UserMessagesProvider>
</NoticesProvider>
</PathFixesProvider>
</AppProvider>
</React Strict Mode>
`;
10 changes: 4 additions & 6 deletions src/alerts/access-expiration-alert/AccessExpirationAlert.jsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import PropTypes from 'prop-types';
import { sendTrackEvent } from '@edx/frontend-platform/analytics';
import {
FormattedMessage, FormattedDate, injectIntl, intlShape,
} from '@edx/frontend-platform/i18n';
import { FormattedMessage, FormattedDate, useIntl } from '@edx/frontend-platform/i18n';
import { Alert, Hyperlink } from '@openedx/paragon';
import { Info } from '@openedx/paragon/icons';

import messages from './messages';

const AccessExpirationAlert = ({ intl, payload }) => {
const AccessExpirationAlert = ({ payload }) => {
const intl = useIntl();

Check warning on line 10 in src/alerts/access-expiration-alert/AccessExpirationAlert.jsx

View check run for this annotation

Codecov / codecov/patch

src/alerts/access-expiration-alert/AccessExpirationAlert.jsx#L9-L10

Added lines #L9 - L10 were not covered by tests
const {
accessExpiration,
courseId,
Expand Down Expand Up @@ -119,7 +118,6 @@
};

AccessExpirationAlert.propTypes = {
intl: intlShape.isRequired,
payload: PropTypes.shape({
accessExpiration: PropTypes.shape({
expirationDate: PropTypes.string.isRequired,
Expand All @@ -134,4 +132,4 @@
}).isRequired,
};

export default injectIntl(AccessExpirationAlert);
export default AccessExpirationAlert;
Loading