Skip to content
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

feat: course outline section list #12

Closed

Conversation

navinkarkera
Copy link
Member

@navinkarkera navinkarkera commented Nov 22, 2023

Continues work from openedx#599

This PR adds:

  • Section list
  • Empty section list
  • Publish modal
  • Highlights modal
  • Delete modal
  • Edit section title
  • Duplicate section option
  • Fully functional collapse/expand option
Screenshots

image

image

image

image

image

image

Dependents on:

Testing instructions:

Copy link

codecov bot commented Nov 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (navin/course-outline-mfe-page@bebbc15). Click here to learn what that means.

❗ Current head 8734daa differs from pull request most recent head 61ff8f4. Consider uploading reports for the commit 61ff8f4 to get more accurate results

Additional details and impacted files
@@                       Coverage Diff                        @@
##             navin/course-outline-mfe-page      #12   +/-   ##
================================================================
  Coverage                                 ?   88.48%           
================================================================
  Files                                    ?      481           
  Lines                                    ?     7470           
  Branches                                 ?     1591           
================================================================
  Hits                                     ?     6610           
  Misses                                   ?      832           
  Partials                                 ?       28           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@navinkarkera navinkarkera force-pushed the navin/course-outline-mfe-page branch from 543b171 to 1fe7488 Compare November 23, 2023 12:13
@navinkarkera navinkarkera force-pushed the navin/course-outline/section branch from b5cb1a7 to d074248 Compare November 23, 2023 12:13
@navinkarkera navinkarkera force-pushed the navin/course-outline-mfe-page branch from 1fe7488 to ded2c81 Compare November 24, 2023 05:35
@navinkarkera navinkarkera force-pushed the navin/course-outline/section branch from d074248 to 2b97b22 Compare November 24, 2023 05:35
@Cup0fCoffee
Copy link
Member

👍 LGTM

  • I tested this
  • I read through the code
  • [-] I checked for accessibility issues
  • [-] Includes documentation

src/course-outline/empty-placeholder/EmptyContent.test.jsx Outdated Show resolved Hide resolved
src/course-outline/card-header/CardHeader.jsx Outdated Show resolved Hide resolved
src/course-outline/card-header/CardHeader.scss Outdated Show resolved Hide resolved
src/course-outline/card-header/CardHeader.scss Outdated Show resolved Hide resolved
src/course-outline/card-header/CardHeader.scss Outdated Show resolved Hide resolved
src/course-outline/publish-modal/PublishModal.jsx Outdated Show resolved Hide resolved
@navinkarkera navinkarkera force-pushed the navin/course-outline/section branch 2 times, most recently from a5b34f8 to 7d988b4 Compare November 27, 2023 12:52
@navinkarkera navinkarkera force-pushed the navin/course-outline/section branch from 7d988b4 to 22c28bf Compare December 5, 2023 10:40
@navinkarkera navinkarkera force-pushed the navin/course-outline-mfe-page branch from 7ce8fa8 to 5ddb9bf Compare December 5, 2023 10:41
@navinkarkera navinkarkera force-pushed the navin/course-outline/section branch from 22c28bf to 98fdf30 Compare December 5, 2023 10:42
@navinkarkera navinkarkera force-pushed the navin/course-outline/section branch from 98fdf30 to 8734daa Compare December 5, 2023 11:12
@navinkarkera navinkarkera force-pushed the navin/course-outline-mfe-page branch from 2875840 to 80cc5e3 Compare December 6, 2023 14:39
navinkarkera and others added 3 commits December 6, 2023 10:06
* feat: Course outline Top level page (#36)

* feat: [2u-259] add components

* feat: [2u-259] fix sidebar

* feat: [2u-259] add tests, fix links

* feat: [2u-259] fix messages

* feat: [2u-159] fix reducer and sidebar

* feat: [2u-259] fix reducer

* feat: [2u-259] remove warning from selectors

* feat: [2u-259] remove indents

---------

Co-authored-by: Vladislav Keblysh <[email protected]>

feat: Course outline Status Bar (#50)

* feat: [2u-259] add components

* feat: [2u-259] fix sidebar

* feat: [2u-259] add tests, fix links

* feat: [2u-259] fix messages

* feat: [2u-159] fix reducer and sidebar

* feat: add checklist

* feat: [2u-259] fix reducer

* feat: [2u-259] remove warning from selectors

* feat: [2u-259] remove indents

* feat: [2u-259] add api, enable modal

* feat: [2u-259] add tests

* feat: [2u-259] add translates

* feat: [2u-271] fix transalates

* feat: [2u-281] fix isQuery pending, utils, hooks

* feat: [2u-281] fix useScrollToHashElement

* feat: [2u-271] fix imports

---------

Co-authored-by: Vladislav Keblysh <[email protected]>

feat: Course Outline Reindex (#55)

* feat: [2u-277] add alerts

* feat: [2u-277] add translates

* feat: [2u-277] fix tests

* fix: [2u-277] fix slice and hook

---------

Co-authored-by: Vladislav Keblysh <[email protected]>

fix: Course outline tests (#56)

* fix: fixed course outline status bar tests

* fix: fixed course outline status bar tests

* fix: fixed course outline enable highlights modal tests

* fix: enable modal tests

fix: increase code coverage on the page

* refactor: improve course outline page

feat: lms live link

chore: update outline link

fix: course outline link

refactor: remove unnecessary css and rename test file

refactor: remove unnecessary css from outlineSidebar

test: make use of message variable instead of hardcoded text

refactor: remove unnecessary h5 class

test: use test id for detecting component

refactor: update course outline url and some default messages

---------

Co-authored-by: vladislavkeblysh <[email protected]>
* feat: [2u-259] add components

* feat: [2u-259] fix sidebar

* feat: [2u-259] add tests, fix links

* feat: [2u-259] fix messages

* feat: [2u-159] fix reducer and sidebar

* feat: [2u-259] fix reducer

* feat: [2u-259] remove warning from selectors

* feat: [2u-259] remove indents

---------

Co-authored-by: Vladislav Keblysh <[email protected]>

feat: Course Outline  - Sections list (#59)

* feat: [2u-336] add tests

* feat: [2u-271] fix button

* feat: [2u-336] add component, refactor header

* fix: [2u-342] fix translates and indents

* fix: [2u-342] fix constants and expand block

* feat: [2u-336] remove new section from menu

---------

Co-authored-by: Vladislav Keblysh <[email protected]>

feat: Course outline - Content empty (#72)

* feat: [2u-324] add component

* feat: [2u-324] add translates

* feat: [2u-324] update tests

* feat: [2u-324] update branch

* fix: [2u-324] fixed empty handler

feat: Course outline - Section Publish (#61)

* feat: [2u-354] add publish modal, api and update tests

* feat: [2u-354] refactor modal

* fix: [2u-354] removed comments

* fix: [2u-354] fix indents

* fix: [2u-354] removed translates duplicates

* fix: [2u-354] rename handlers

feat: Course outline - Update section card (#71)

* feat: [2u-615] update section card

* fix: [2u-615] fix handler names

* fix: [2u-615] fix indents

* fix: [2u-615] add empty handler

* fix: [2u-615] fix data test id name

* fix: [2u-615] fix styles

fix: [2u-696] add saving processing for higlights and enable highlights (openedx#78)

feat: Course outline - Section Edit (#70)

* feat: [2u-336] add tests

* feat: [2u-271] fix button

* feat: [2u-336] add component, refactor header

* feat: [2u-342] add modal

* fix: [2u-342] fix translates and indents

* feat: [2u-342] add modal

* feat: [2u-342] add api

* feat: [2u-342] add tests and translates

* feat: [2u-342] fix indents

* fix: [2u-342] fix indents, variant and utils

* feat: [2u-342] fixed slice, thunks, hooks

* feat: [2u-354] add publish modal, api and update tests

* feat: [2u-615] update section card

* feat: [2u-348] add api, handlers, tests

* feat: [2u-348] add description for api

* fix: [2u-348] fix useEscapeClick

* fix: [2u-348] remove useEffect from CardHeader

* fix: [2u-348] fixed handlers and tests

* fix: [2u-348] fixed handlers and tests

---------

Co-authored-by: Vladislav Keblysh <[email protected]>

feat: Course outline - Section Delete (#74)

* feat: [2u-336] add tests

* feat: [2u-271] fix button

* feat: [2u-336] add component, refactor header

* feat: [2u-342] add modal

* fix: [2u-342] fix translates and indents

* feat: [2u-342] add modal

* feat: [2u-342] add api

* feat: [2u-342] add tests and translates

* feat: [2u-342] fix indents

* fix: [2u-342] fix indents, variant and utils

* feat: [2u-342] fixed slice, thunks, hooks

* feat: [2u-354] add publish modal, api and update tests

* feat: [2u-615] update section card

* feat: [2u-348] add api, handlers, tests

* feat: [2u-510] add delete api, add delete modal

* fix: [2u-510] fixed tests

---------

Co-authored-by: Vladislav Keblysh <[email protected]>

feat: Course outline - Section duplicate (openedx#88)

* feat: [2u-336] add tests

* feat: [2u-271] fix button

* feat: [2u-336] add component, refactor header

* feat: [2u-342] add modal

* fix: [2u-342] fix translates and indents

* feat: [2u-342] add modal

* feat: [2u-342] add api

* feat: [2u-342] add tests and translates

* feat: [2u-342] fix indents

* fix: [2u-342] fix indents, variant and utils

* feat: [2u-342] fixed slice, thunks, hooks

* feat: [2u-354] add publish modal, api and update tests

* feat: [2u-615] update section card

* feat: [2u-348] add api, handlers, tests

* feat: [2u-510] add delete api, add delete modal

* feat: [2u-360] add api

* feat: [2u-360] add slice

* feat: [2u-360] add tests

* fix: [2u-360] fixed tests

---------

Co-authored-by: Vladislav Keblysh <[email protected]>

fix: Course outline - Highlights links (openedx#89)

* fix: fixed doc urls

* fix: fixed components

feat: Course outline - Collapse all sections (#75)

* feat: added collapse all section logic

* fix: fixed tests

fix: final revision commits

fix: increase code coverage on the page
Also refactor api and hooks

fix: publish button behaviour and card header tests

fix: warning in highlights and publish modal test

fix: courseoutline tests

test: add test for new section functionality

fix(lint): lint issues

refactor: remove unnecessary css in CardHeader

refactor: rename emptyPlaceholder test file

refactor: replace ternary operator with 'and' condition

refactor: add black color to expand/collapse button

refactor: display only changed subsection and units in publish modal
@navinkarkera
Copy link
Member Author

Continued in openedx#733

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants