-
Notifications
You must be signed in to change notification settings - Fork 149
feat: add new help section in course teams page #2372
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
Draft
viv-helix
wants to merge
1
commit into
openedx:master
Choose a base branch
from
viv-helix:viv-helix/TNL2-309
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+34
−0
Draft
Changes from all commits
Commits
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,26 @@ const CourseTeamSideBar = ({ courseId, isOwnershipHint, isShowInitialSidebar }) | |
<p className="help-sidebar-about-descriptions"> | ||
{intl.formatMessage(messages.sidebarAbout_3)} | ||
</p> | ||
<p className="help-sidebar-other-title"> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" className="mr-2" viewBox="0 0 18 18"> | ||
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16" /> | ||
<path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0" /> | ||
</svg> | ||
{intl.formatMessage(messages.helpInfoSidebarTitle)} | ||
</p> | ||
<p className="help-sidebar-about-descriptions"> | ||
{intl.formatMessage(messages.helpInfoDescription, { | ||
email_address: ( | ||
<a | ||
href={`mailto:${intl.formatMessage(messages.helpInfoMaildropLink)}`} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
{intl.formatMessage(messages.helpInfoMaildropLink)} | ||
Comment on lines
+44
to
+48
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We will not be hard coding the email address here, it will be fetched from backend in some variable. |
||
</a> | ||
), | ||
})} | ||
</p> | ||
</HelpSidebar> | ||
{isOwnershipHint && ( | ||
<> | ||
|
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 |
---|---|---|
|
@@ -25,6 +25,18 @@ const messages = defineMessages({ | |
id: 'course-authoring.course-team.sidebar.ownership.description', | ||
defaultMessage: 'Every course must have an Admin. If you are the Admin and you want to transfer ownership of the course, click {strong} to make another user the Admin, then ask that user to remove you from the Course Team list.', | ||
}, | ||
helpInfoSidebarTitle: { | ||
id: 'course-authoring.course-team.sidebar.helpInfoSidebarTitle', | ||
defaultMessage: 'Need help across multiple courses?', | ||
}, | ||
helpInfoDescription: { | ||
id: 'course-authoring.course-team.sidebar.helpInfoDescription', | ||
defaultMessage: 'Email {email_address} to add, remove, or update user access in bulk.', | ||
}, | ||
helpInfoMaildropLink: { | ||
id: 'course-authoring.course-team.sidebar.helpInfoMaildropLink', | ||
defaultMessage: '[email protected]', | ||
}, | ||
addAdminAccess: { | ||
id: 'course-authoring.course-team.sidebar.ownership.addAdminAccess', | ||
defaultMessage: 'Add admin access', | ||
|
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.
can we use paragon icon here?
import { InfoOutline } from '@openedx/paragon/icons';