-
Notifications
You must be signed in to change notification settings - Fork 75
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: [FC-0044] Course unit page - Unit creation button logic and refactoring #831
Merged
arbrandes
merged 4 commits into
openedx:master
from
raccoongang:Peter_Kulko/new-unit-btn-and-refactoring
Feb 27, 2024
Merged
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
1f0f431
feat: Unit creation button logic and refactoring
PKulkoRaccoonGang 556001c
fix: [AXIMST-371] fix correct internal route on create new unit (#114)
ihor-romaniuk 54e580a
feat: [AXIMST-19, 20, 22] Course unit - Modal windows for course unit…
PKulkoRaccoonGang 27adcc9
refactor: refactoring after review
PKulkoRaccoonGang 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 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 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 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 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 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,84 @@ | ||
module.exports = { | ||
id: 'block-v1:edX+DemoX+Demo_Course+type@vertical+block@d91b9e5d8bc64d57a1332d06bf2f2144', | ||
display_name: 'Getting Started new', | ||
category: 'vertical', | ||
has_children: true, | ||
edited_on: 'Dec 28, 2023 at 10:00 UTC', | ||
published: true, | ||
published_on: 'Dec 28, 2023 at 10:00 UTC', | ||
studio_url: '/container/block-v1:edX+DemoX+Demo_Course+type@vertical+block@d91b9e5d8bc64d57a1332d06bf2f2193', | ||
released_to_students: true, | ||
release_date: 'Feb 05, 2013 at 05:00 UTC', | ||
visibility_state: 'live', | ||
has_explicit_staff_lock: false, | ||
start: '2013-02-05T05:00:00Z', | ||
graded: false, | ||
due_date: '', | ||
due: null, | ||
relative_weeks_due: null, | ||
format: null, | ||
course_graders: [ | ||
'Homework', | ||
'Exam', | ||
], | ||
has_changes: false, | ||
actions: { | ||
deletable: true, | ||
draggable: true, | ||
childAddable: true, | ||
duplicable: true, | ||
}, | ||
explanatory_message: null, | ||
group_access: {}, | ||
user_partitions: [ | ||
{ | ||
id: 50, | ||
name: 'Enrollment Track Groups', | ||
scheme: 'enrollment_track', | ||
groups: [ | ||
{ | ||
id: 2, | ||
name: 'Verified Certificate', | ||
selected: false, | ||
deleted: false, | ||
}, | ||
{ | ||
id: 1, | ||
name: 'Audit', | ||
selected: false, | ||
deleted: false, | ||
}, | ||
], | ||
}, | ||
], | ||
show_correctness: 'always', | ||
discussion_enabled: true, | ||
ancestor_has_staff_lock: false, | ||
user_partition_info: { | ||
selectable_partitions: [ | ||
{ | ||
id: 50, | ||
name: 'Enrollment Track Groups', | ||
scheme: 'enrollment_track', | ||
groups: [ | ||
{ | ||
id: 2, | ||
name: 'Verified Certificate', | ||
selected: false, | ||
deleted: false, | ||
}, | ||
{ | ||
id: 1, | ||
name: 'Audit', | ||
selected: false, | ||
deleted: false, | ||
}, | ||
], | ||
}, | ||
], | ||
selected_partition_index: -1, | ||
selected_groups_label: '', | ||
}, | ||
enable_copy_paste_units: false, | ||
xblock_type: 'other', | ||
}; |
This file contains 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export { default as courseUnitIndexMock } from './courseUnitIndex'; | ||
export { default as courseSectionVerticalMock } from './courseSectionVertical'; | ||
export { default as courseUnitMock } from './courseUnit'; | ||
export { default as courseCreateXblockMock } from './courseCreateXblock'; |
This file contains 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.
Non-blocking, just a question. wondering how it was working before. We probably had warnings, right?
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.
Yes, a warning about the need to add a
key
for the element that is being mapped