Compare commits

...

19 Commits

Author SHA1 Message Date
Jawayria
32a100ea41 fix: try old package-lock 2022-04-18 17:43:14 +05:00
Jawayria
876211388a fix: regenerate package-lock 2022-04-18 14:57:51 +05:00
Jawayria
c409514766 fix: Updated dependencies for Node 16 compatibility 2022-04-18 14:24:19 +05:00
Mehak Nasir
c0f675f41a revert: node 16 upgrade is reverted (#132)
* revert: node 16 upgrade is reverted

* revert: reverted frontend build version to 9.1.2

* revert: browsers list

Co-authored-by: Awais Ansari <awais.ansari63@gmail.com>
2022-04-15 23:33:29 +05:00
Mehak Nasir
7f49543c37 Revert "fix: frontend build test fix for stage" (#138)
This reverts commit e426892bb2.
2022-04-15 22:52:20 +05:00
Awais Ansari
1d1b7eb94b Revert "revert: revert to node 12 to test build issue" (#136) 2022-04-15 21:48:45 +05:00
Awais Ansari
a059c50780 Revert "revert: downgraded node to 12 again to resolve build issue (#133)" (#137)
This reverts commit 45b3dd79f3.
2022-04-15 21:43:55 +05:00
Awais Ansari
cf83775052 Merge pull request #135 from openedx/revert-3
revert: revert to node 12 to test build issue
2022-04-15 21:22:43 +05:00
Mehak Nasir
6b98ef6506 revert: revert to node 12 to test build issue 2022-04-15 21:20:22 +05:00
Mehak Nasir
45b3dd79f3 revert: downgraded node to 12 again to resolve build issue (#133) 2022-04-15 21:15:07 +05:00
Mehak Nasir
86f7a07ded feat: allow anonymous post support is removed from add post section 2022-04-14 13:06:17 +05:00
Mehak Nasir
4be926d788 style: content sections background color changed 2022-04-14 12:49:25 +05:00
Mehak Nasir
e426892bb2 fix: frontend build test fix for stage 2022-04-13 15:25:07 +05:00
Mehak Nasir
80c3fee3da fix: version change test fix 2022-04-13 14:16:33 +05:00
Adam Stankiewicz
43c03ca2c0 build: use shared browserslist config 2022-04-13 14:16:33 +05:00
Awais Ansari
6bd1561bcb chore: upgrade frontend-build version to 9.1.4 (#124) 2022-04-12 19:03:34 +05:00
Awais Ansari
1f119c1bbb chore: create new package-lock file after node 16 upgrade 2022-04-12 12:14:15 +05:00
Awais Ansari
8fc067e64f chore: add @edx/frontend-build in project dependency (#122) 2022-04-12 02:54:09 +05:00
Mehak Nasir
428f2d2311 feat: upgrade node from 12 to 16 (#121) 2022-04-11 16:13:07 +05:00
8 changed files with 525 additions and 25927 deletions

View File

@@ -33,7 +33,5 @@ jobs:
run: npm run build
- name: i18n_extract
run: npm run i18n_extract
- name: is-es5
run: npm run is-es5
- name: Coverage
uses: codecov/codecov-action@v2

3
.nvmrc
View File

@@ -1,2 +1 @@
12.22.5
12

26420
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -59,7 +59,7 @@
"yup": "0.31.1"
},
"devDependencies": {
"@edx/frontend-build": "9.1.2",
"@edx/frontend-build": "9.1.4",
"@testing-library/jest-dom": "5.16.2",
"@testing-library/react": "12.1.4",
"@testing-library/user-event": "13.5.0",

View File

@@ -15,7 +15,7 @@ export default function DiscussionContent() {
useContainerSizeForParent(refContainer);
return (
<div className="d-flex bg-light-300 flex-column w-75 w-xs-100 w-xl-75 align-items-center h-100 overflow-auto">
<div className="d-flex bg-light-400 flex-column w-75 w-xs-100 w-xl-75 align-items-center h-100 overflow-auto">
<div className="d-flex flex-column w-100 mw-xl" ref={refContainer}>
{postEditorVisible ? (
<Route path={Routes.POSTS.NEW_POST}>

View File

@@ -16,7 +16,7 @@ function EmptyPage({
}) {
const containerClasses = classNames(
'justify-content-center align-items-center d-flex w-100 flex-column pt-5',
{ 'bg-light-300': !fullWidth },
{ 'bg-light-400': !fullWidth },
);
return (

View File

@@ -374,19 +374,6 @@ function PostEditor({
{intl.formatMessage(messages.followPost)}
</Form.Checkbox>
</Form.Group>
{allowAnonymous && (
<Form.Group>
<Form.Checkbox
name="anonymous"
checked={values.anonymous}
onChange={handleChange}
onBlur={handleBlur}
className="mr-4"
>
{intl.formatMessage(messages.anonymousPost)}
</Form.Checkbox>
</Form.Group>
)}
{allowAnonymousToPeers
&& (
<Form.Group>

View File

@@ -117,15 +117,13 @@ describe('PostEditor', () => {
.toHaveLength(3);
expect(screen.queryByText('cohort', { exact: false }))
.not
.toBeInTheDocument();
.not.toBeInTheDocument();
if (allowAnonymous) {
expect(screen.queryByText('Post anonymously'))
.toBeInTheDocument();
.not.toBeInTheDocument();
} else {
expect(screen.queryByText('Post anonymously'))
.not
.toBeInTheDocument();
.not.toBeInTheDocument();
}
if (allowAnonymousToPeers) {
expect(screen.queryByText('Post anonymously to peers'))