Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
424422c
feat: added a generic creditPurchase Url logic (#675)
NoyanAziz Jun 30, 2025
439bcbd
feat: improve unenrollment process (#704)
mubbsharanwar Sep 3, 2025
67eb0b2
feat: added the ability for instances to use local translations fro…
jajjibhai008 Dec 3, 2025
2473745
fix(deps): remove filesize dependency (#767)
MaxFrank13 Mar 4, 2026
f8fee45
fix: update react-share to v5 (#795)
MaxFrank13 Mar 4, 2026
c1806e0
fix(docs): use correct image for custom course banner (#796)
brian-smith-tcril Mar 4, 2026
df35504
fix: break circular dependency in site.config.test.tsx
arbrandes Mar 4, 2026
3d1ec2b
refactor: migrate from Redux to React Query
arbrandes Mar 4, 2026
2234bd4
fix: add staleTime to prevent excessive refetching
arbrandes Mar 4, 2026
675ba93
fix: remove redundant manual refetch on unenroll
arbrandes Mar 4, 2026
79fd39f
fix: compute Date.now() per call instead of at module load
arbrandes Mar 4, 2026
d0ce95d
fix: close modals only after mutation succeeds
arbrandes Mar 4, 2026
22754db
style: fix lint errors across migrated files
arbrandes Mar 4, 2026
b1955cf
fix: type GlobalDataContext to fix build
arbrandes Mar 5, 2026
e3b2a47
fix: add @types/jest so ForkTsCheckerWebpackPlugin sees jest globals
arbrandes Mar 5, 2026
ce3baa9
perf: transform course data once in queryFn instead of per card
arbrandes Mar 4, 2026
3f47d3d
refactor: replace BackedDataProvider with React Query cache lookup
arbrandes Mar 4, 2026
b0ac3b6
fix: use explicit initializeBase key for query invalidation
arbrandes Mar 4, 2026
62b98f9
fix: use smart retry that skips 4xx errors but retries server/network…
arbrandes Mar 4, 2026
8c4bcd4
refactor: separate mutation keys from query keys
arbrandes Mar 4, 2026
5ded393
refactor: replace useReducer with useState in context providers
arbrandes Mar 4, 2026
d854f8c
test: add normal user happy path test for useInitializeLearnerHome
arbrandes Mar 4, 2026
e64fc19
style: fix lint errors in queryHooks test
arbrandes Mar 4, 2026
a71bd5a
feat: Unenroll survey is configurable through environment variable
marslanabdulrauf Mar 9, 2026
9734e01
fix: run tsc-alias after copying assets and limit asset copy to asset…
arbrandes Mar 9, 2026
e175088
fix: address PR #801 review feedback
arbrandes Mar 18, 2026
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
14 changes: 10 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ transifex_temp = ./temp/babel-plugin-formatjs

NPM_TESTS=build i18n_extract lint test

# Variables for additional translation sources and imports (define in edx-internal if needed)
ATLAS_EXTRA_SOURCES ?=
ATLAS_EXTRA_INTL_IMPORTS ?=
ATLAS_OPTIONS ?=

.PHONY: test
test: $(addprefix test.npm.,$(NPM_TESTS)) ## validate ci suite

Expand All @@ -29,13 +34,13 @@ clean:

build: clean
tsc --project tsconfig.build.json
tsc-alias -p tsconfig.build.json
find src -type f \( -name '*.scss' -o -name '*.png' -o -name '*.svg' \) -exec sh -c '\
find src -type f \( -name '*.scss' -o \( \( -name '*.png' -o -name '*.svg' \) -path '*/assets/*' \) \) -exec sh -c '\
for f in "$$@"; do \
d="dist/$${f#src/}"; \
mkdir -p "$$(dirname "$$d")"; \
cp "$$f" "$$d"; \
done' sh {} +
tsc-alias -p tsconfig.build.json

i18n.extract:
# Pulling display strings from .jsx files into .json files...
Expand All @@ -60,9 +65,10 @@ pull_translations:
&& atlas pull $(ATLAS_OPTIONS) \
translations/frontend-base/src/i18n/messages:frontend-base \
translations/paragon/src/i18n/messages:paragon \
translations/frontend-app-learner-dashboard/src/i18n/messages:frontend-app-learner-dashboard
translations/frontend-app-learner-dashboard/src/i18n/messages:frontend-app-learner-dashboard \
$(ATLAS_EXTRA_SOURCES)

$(intl_imports) frontend-base paragon frontend-app-learner-dashboard
$(intl_imports) frontend-base paragon frontend-app-learner-dashboard $(ATLAS_EXTRA_INTL_IMPORTS)

# This target is used by CI.
validate-no-uncommitted-package-lock-changes:
Expand Down
11 changes: 5 additions & 6 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
const { createConfig } = require('@openedx/frontend-base/tools');

module.exports = createConfig('test', {
const config = createConfig('test', {
setupFilesAfterEnv: [
'jest-expect-message',
'<rootDir>/src/setupTest.jsx',
],
coveragePathIgnorePatterns: [
'src/segment.js',
'src/postcss.config.js',
'testUtils', // don't unit test jest mocking tools
'src/data/services/lms/fakeData', // don't unit test mock data
'src/test', // don't unit test integration test utils
'src/__mocks__',
],
moduleNameMapper: {
// Asset mocks
'\\.svg$': '<rootDir>/src/__mocks__/svg.js',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/src/__mocks__/file.js',
'\\.png$': '<rootDir>/src/__mocks__/file.js',
'^@src/(.*)$': '<rootDir>/src/$1',
},
testTimeout: 120000,
});

module.exports = config;
Loading
Loading