Compare commits
19 Commits
revert-nod
...
jawayria/n
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
32a100ea41 | ||
|
|
876211388a | ||
|
|
c409514766 | ||
|
|
c0f675f41a | ||
|
|
7f49543c37 | ||
|
|
1d1b7eb94b | ||
|
|
a059c50780 | ||
|
|
cf83775052 | ||
|
|
6b98ef6506 | ||
|
|
45b3dd79f3 | ||
|
|
86f7a07ded | ||
|
|
4be926d788 | ||
|
|
e426892bb2 | ||
|
|
80c3fee3da | ||
|
|
43c03ca2c0 | ||
|
|
6bd1561bcb | ||
|
|
1f119c1bbb | ||
|
|
8fc067e64f | ||
|
|
428f2d2311 |
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -33,7 +33,5 @@ jobs:
|
|||||||
run: npm run build
|
run: npm run build
|
||||||
- name: i18n_extract
|
- name: i18n_extract
|
||||||
run: npm run i18n_extract
|
run: npm run i18n_extract
|
||||||
- name: is-es5
|
|
||||||
run: npm run is-es5
|
|
||||||
- name: Coverage
|
- name: Coverage
|
||||||
uses: codecov/codecov-action@v2
|
uses: codecov/codecov-action@v2
|
||||||
|
|||||||
26420
package-lock.json
generated
26420
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -59,7 +59,7 @@
|
|||||||
"yup": "0.31.1"
|
"yup": "0.31.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@edx/frontend-build": "9.1.2",
|
"@edx/frontend-build": "9.1.4",
|
||||||
"@testing-library/jest-dom": "5.16.2",
|
"@testing-library/jest-dom": "5.16.2",
|
||||||
"@testing-library/react": "12.1.4",
|
"@testing-library/react": "12.1.4",
|
||||||
"@testing-library/user-event": "13.5.0",
|
"@testing-library/user-event": "13.5.0",
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export default function DiscussionContent() {
|
|||||||
useContainerSizeForParent(refContainer);
|
useContainerSizeForParent(refContainer);
|
||||||
|
|
||||||
return (
|
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}>
|
<div className="d-flex flex-column w-100 mw-xl" ref={refContainer}>
|
||||||
{postEditorVisible ? (
|
{postEditorVisible ? (
|
||||||
<Route path={Routes.POSTS.NEW_POST}>
|
<Route path={Routes.POSTS.NEW_POST}>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ function EmptyPage({
|
|||||||
}) {
|
}) {
|
||||||
const containerClasses = classNames(
|
const containerClasses = classNames(
|
||||||
'justify-content-center align-items-center d-flex w-100 flex-column pt-5',
|
'justify-content-center align-items-center d-flex w-100 flex-column pt-5',
|
||||||
{ 'bg-light-300': !fullWidth },
|
{ 'bg-light-400': !fullWidth },
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -374,19 +374,6 @@ function PostEditor({
|
|||||||
{intl.formatMessage(messages.followPost)}
|
{intl.formatMessage(messages.followPost)}
|
||||||
</Form.Checkbox>
|
</Form.Checkbox>
|
||||||
</Form.Group>
|
</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
|
{allowAnonymousToPeers
|
||||||
&& (
|
&& (
|
||||||
<Form.Group>
|
<Form.Group>
|
||||||
|
|||||||
@@ -117,15 +117,13 @@ describe('PostEditor', () => {
|
|||||||
.toHaveLength(3);
|
.toHaveLength(3);
|
||||||
|
|
||||||
expect(screen.queryByText('cohort', { exact: false }))
|
expect(screen.queryByText('cohort', { exact: false }))
|
||||||
.not
|
.not.toBeInTheDocument();
|
||||||
.toBeInTheDocument();
|
|
||||||
if (allowAnonymous) {
|
if (allowAnonymous) {
|
||||||
expect(screen.queryByText('Post anonymously'))
|
expect(screen.queryByText('Post anonymously'))
|
||||||
.toBeInTheDocument();
|
.not.toBeInTheDocument();
|
||||||
} else {
|
} else {
|
||||||
expect(screen.queryByText('Post anonymously'))
|
expect(screen.queryByText('Post anonymously'))
|
||||||
.not
|
.not.toBeInTheDocument();
|
||||||
.toBeInTheDocument();
|
|
||||||
}
|
}
|
||||||
if (allowAnonymousToPeers) {
|
if (allowAnonymousToPeers) {
|
||||||
expect(screen.queryByText('Post anonymously to peers'))
|
expect(screen.queryByText('Post anonymously to peers'))
|
||||||
|
|||||||
Reference in New Issue
Block a user