Skip to content

feat: Add Course schedule section to the MFE page - #10

Merged
sendr merged 3 commits into
2u-masterfrom
ruzniaievdm/feat/course-schedule-mfe
Jun 21, 2023
Merged

sendr merged 3 commits into
2u-masterfrom
ruzniaievdm/feat/course-schedule-mfe

Conversation

@ruzniaievdm

@ruzniaievdm ruzniaievdm commented Jun 18, 2023 •

Copy link
Copy Markdown

Description:

Course Schedule section is added to the Page and is editable

YT:

https://youtrack.raccoongang.com/issue/2U-99

@ruzniaievdm
ruzniaievdm requested review from peterkulko and sendr June 18, 2023 11:27
@ruzniaievdm ruzniaievdm self-assigned this Jun 18, 2023
Comment thread src/schedule-and-details/hooks.jsx
Comment thread src/schedule-and-details/messages.js Outdated
Comment thread src/schedule-and-details/messages.js Outdated
Comment thread src/schedule-and-details/messages.js Outdated
Comment thread src/schedule-and-details/pacing-section/index.jsx
Comment thread src/schedule-and-details/schedule-section/index.jsx
Comment thread src/schedule-and-details/utils.js
@peterkulko

peterkulko commented Jun 18, 2023 •

Copy link
Copy Markdown

@GlugovGrGlib asked to add a link to the ticket, please 👍

@ruzniaievdm
ruzniaievdm requested a review from peterkulko June 19, 2023 12:12
@ruzniaievdm
ruzniaievdm force-pushed the ruzniaievdm/feat/course-schedule-mfe branch from 904acbf to dd58c90 Compare June 19, 2023 12:15
Comment thread src/schedule-and-details/index.jsx Outdated
<Button onClick={handleUpdateValues}>
<Button
onClick={handleUpdateValues}
disabled={Object.keys(errorFields).length}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
disabled={Object.keys(errorFields).length}
disabled={hasErrors}

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, sure!

Comment thread src/schedule-and-details/index.jsx Outdated
}

const showCreditSection = creditEligibilityEnabled && isCreditCourse;
const hasErrors = Object.keys(errorFields).length;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it, probably, should be a boolean value, not a number

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

/>
);
}
const { rowType, key, ...restProps } = fieldProps;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we do unpacking once?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we should no need to pass extra props to component

@sendr
sendr merged commit 7d3126f into 2u-master Jun 21, 2023
ruzniaievdm added a commit that referenced this pull request Aug 1, 2023
* feat: Add Course schedule section to the MFE page

* fix: after demo and resolve discussions

* resolve discussions round 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants