-
Notifications
You must be signed in to change notification settings - Fork 183
feat: library section and subsection page #2032
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
Merged
ChrisChV
merged 58 commits into
openedx:master
from
open-craft:navin/fal-4164/section-subsection-page
Jun 4, 2025
Merged
Changes from 55 commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
5cb979d
feat: library section page
navinkarkera 6033db1
fixup! feat: library section page
navinkarkera b1f318e
fixup! feat: library section page
navinkarkera 035c7fa
fixup! feat: library section page
navinkarkera 0db3eb5
fix: update children on child name update
navinkarkera cea088c
fix: navigation to newly created container
navinkarkera c2114a9
fix: getBlockType for containers
navinkarkera 1a17ad1
style: section page
navinkarkera 871eff4
fix: remove unused variable
navinkarkera 14c8657
chore: fix message
navinkarkera 67d2c2d
refactor: extract header action component
navinkarkera 5bebab4
refactor: extract footer actions and simplify content picker
navinkarkera 27dba10
refactor: imports
navinkarkera b96bca3
feat: add subsection page and refactor id handling
navinkarkera dc101ba
fix: variable names
navinkarkera e3fad17
fix: collection page loading and remove collection option in menu
navinkarkera 2ee04df
feat: subsection page breadcrumbs
navinkarkera 563ae45
refactor: component selection in container pages and add draft tag
navinkarkera 5cc77a6
style: subsection breadcrumbs
navinkarkera 22db945
fix: lint issues
navinkarkera 198381b
fix: context state
navinkarkera 3cd2a42
fix: lint issues
navinkarkera a5e576a
fix: sidebar opening from new pages
navinkarkera e520b21
fix: lint issues
navinkarkera cfea873
refactor: convert SortableItem to typescript and fix types
navinkarkera 629e269
fix: children wiggle in section and subection page
navinkarkera d36b7d7
fix: lint issues
navinkarkera e4357f3
refactor: context handling
navinkarkera d8ef2ca
test: fix failing tests
navinkarkera c05f95f
test: PickLibraryContentModal
navinkarkera f7925a7
test: ContainerCard
navinkarkera d071771
chore: add ignore statement
navinkarkera 9fa088f
Merge branch 'master' into navin/fal-4164/section-subsection-page
navinkarkera d2e4f5c
refactor: remove injected intl code
navinkarkera 134c4dc
refactor: check container type before navigation
navinkarkera b91abd6
fix: include navigateTo in dependency array
navinkarkera 4c5f304
fix: component picker filter in course and container children editing…
navinkarkera a51dc22
fix: add missing key
navinkarkera 50a73e4
refactor: context
navinkarkera 1d18983
fix: pick lib content component id check
navinkarkera 81cfb18
fix: case statement in PickLibraryContentModal test case
navinkarkera fdee2fb
test: library section page
navinkarkera eb6a49d
test: subsection page
navinkarkera 3a05e2d
fix: lint issues
navinkarkera 976006f
test: fix failing tests
navinkarkera fb8ab56
Merge branch 'master' into navin/fal-4164/section-subsection-page
navinkarkera 1bcce12
fix: lint issues
navinkarkera e5a508e
fix: show subsections tab only in add modal in section page
navinkarkera aea42e8
refactor: replace getContainerTypeFromId with getBlockType
navinkarkera 4e8bc27
fix: lint issues
navinkarkera e36b5ae
Merge branch 'master' into navin/fal-4164/section-subsection-page
navinkarkera 5205375
refactor: rename fn
navinkarkera 041db18
test: empty section and subsection page
navinkarkera dc5f4f4
feat: invalidate all parent containers on name update
navinkarkera a905019
refactor: invalidate all container data on name update
navinkarkera 6498ff3
fix: lint issues
navinkarkera 0658029
refactor: Delete catch on handleOnChangeText in InplaceTextEditor
ChrisChV 1c8518e
fix: Broken tests
ChrisChV File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,148 @@ | ||
| { | ||
| "comment": "This mock is captured from a real search result and roughly edited to match the mocks in src/library-authoring/data/api.mocks.ts", | ||
| "note": "The _formatted fields have been removed from this result and should be re-added programatically when mocking.", | ||
| "results": [ | ||
| { | ||
| "indexUid": "studio_content", | ||
| "hits": [ | ||
| { | ||
| "display_name": "Test Subsection", | ||
| "block_id": "subsection-1", | ||
| "content": { | ||
| "child_usage_keys": [ | ||
| "lb:org1:Demo_course:unit:unit-0", | ||
| "lb:org1:Demo_course:unit:unit-1", | ||
| "lb:org1:Demo_course:unit:unit-2" | ||
| ], | ||
| "child_display_names": [ | ||
| "unit block 0", | ||
| "unit block 1", | ||
| "unit block 2" | ||
| ] | ||
| }, | ||
| "tags": {}, | ||
| "collections": { | ||
| "display_name": [ | ||
| "Collection 1" | ||
| ], | ||
| "key": [ | ||
| "collection-1" | ||
| ] | ||
| }, | ||
| "id": "lctunixcs1subsectiontest-subsection-4-861b09-bc0507a2", | ||
| "type": "library_container", | ||
| "breadcrumbs": [ | ||
| { | ||
| "display_name": "CS 1" | ||
| } | ||
| ], | ||
| "created": 1748341802.87277, | ||
| "modified": 1748790449.393821, | ||
| "last_published": 1748536425.317183, | ||
| "publish_status": "modified", | ||
| "usage_key": "lct:UNIX:CS1:subsection:test-subsection-4-861b09", | ||
| "block_type": "subsection", | ||
| "context_key": "lib:UNIX:CS1", | ||
| "org": "UNIX", | ||
| "access_id": 1, | ||
| "published": { | ||
| "display_name": "Test subsection 42", | ||
| "num_children": 2, | ||
| "content": { | ||
| "child_usage_keys": [ | ||
| "lb:org1:Demo_course:unit:unit-0", | ||
| "lb:org1:Demo_course:unit:unit-1" | ||
| ], | ||
| "child_display_names": [ | ||
| "unit block 0", | ||
| "unit block 1" | ||
| ] | ||
| } | ||
| }, | ||
| "num_children": 4, | ||
| "sections": { | ||
| "display_name": [ | ||
| "Test section", | ||
| "Test section 51" | ||
| ], | ||
| "key": [ | ||
| "lct:org:lib:section:test-section-1", | ||
| "lct:org:lib:section:test-section-2" | ||
| ] | ||
| }, | ||
| "_formatted": { | ||
| "display_name": "Test Subsection", | ||
| "block_id": "subsection-1", | ||
| "content": { | ||
| "child_usage_keys": [ | ||
| "lb:org1:Demo_course:unit:unit-0", | ||
| "lb:org1:Demo_course:unit:unit-1", | ||
| "lb:org1:Demo_course:unit:unit-2" | ||
| ], | ||
| "child_display_names": [ | ||
| "unit block 0", | ||
| "unit block 1", | ||
| "unit block 2" | ||
| ] | ||
| }, | ||
| "tags": {}, | ||
| "collections": { | ||
| "display_name": [ | ||
| "Collection 1" | ||
| ], | ||
| "key": [ | ||
| "collection-1" | ||
| ] | ||
| }, | ||
| "id": "lctunixcs1subsectiontest-subsection-4-861b09-bc0507a2", | ||
| "type": "library_container", | ||
| "breadcrumbs": [ | ||
| { | ||
| "display_name": "CS 1" | ||
| } | ||
| ], | ||
| "created": "1748341802.87277", | ||
| "modified": "1748790449.393821", | ||
| "last_published": "1748536425.317183", | ||
| "publish_status": "modified", | ||
| "usage_key": "lct:UNIX:CS1:subsection:test-subsection-4-861b09", | ||
| "block_type": "subsection", | ||
| "context_key": "lib:UNIX:CS1", | ||
| "org": "UNIX", | ||
| "access_id": "1", | ||
| "published": { | ||
| "display_name": "Test subsection 42", | ||
| "num_children": "2", | ||
| "content": { | ||
| "child_usage_keys": [ | ||
| "lb:org1:Demo_course:unit:unit-0", | ||
| "lb:org1:Demo_course:unit:unit-1" | ||
| ], | ||
| "child_display_names": [ | ||
| "unit block 0", | ||
| "unit block 1" | ||
| ] | ||
| } | ||
| }, | ||
| "num_children": "4", | ||
| "sections": { | ||
| "display_name": [ | ||
| "Test section 11", | ||
| "Test section 51" | ||
| ], | ||
| "key": [ | ||
| "lct:UNIX:CS1:section:test-section-1-415565", | ||
| "lct:UNIX:CS1:section:test-section-5-0c65f3" | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| ], | ||
| "query": "", | ||
| "processingTimeMs": 1, | ||
| "limit": 20, | ||
| "offset": 0, | ||
| "estimatedTotalHits": 10 | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change means we don't really need
getContainerTypeFromId-- since it's only really used in one place, could we move its tests over to this method and remove it entirely?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. aea42e8