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: customize sock links #34336

Closed

Conversation

Anas12091101
Copy link
Contributor

Description

This PR enables the customization of sock links in studio. Currently the sock links are hard coded in sock_links.html and two of them are redirecting to a 404 error page. This PR makes them configurable by adding the sock links in the settings and then using them in the sock_links.html

Useful information to include:

  • Which edX user roles will this change impact? "Course Author"
  • Include screenshots for changes to the UI (ideally, both "before" and "after" screenshots, if applicable).
    Before
Screenshot 2024-03-07 at 5 58 08 PM

After
1) When SHOW_SOCK_LINKS_BTN = False
Screenshot 2024-03-07 at 5 49 27 PM
2) Customized links
Screenshot 2024-03-07 at 5 56 24 PM

  • Provide links to the description of corresponding configuration changes. Remember to correctly annotate these
    changes.

Supporting information

Issue: openedx/platform-roadmap#325

Testing instructions

  • In your private.py, include SHOW_SOCK_LINKS_BTN = False. Now go to studio home and you will not see the Looking for help with studio? dropdown.
  • In your private.py, include
    • SOCK_LINKS = [ { 'href': 'http://docs.edx.org', 'sr_mouseover_text': 'Access documentation on http://docs.edx.org', 'text': 'edX Documentation', 'condition': True }, { 'href': 'https://open.edx.org', 'sr_mouseover_text': 'Access the Open edX Portal', 'text': 'Open edX Portal', 'condition': True }, { 'href': 'https://www.edx.org/course/overview-creating-edx-course-edx-edx101#.VO4eaLPF-n1', 'sr_mouseover_text': 'Enroll in edX101: Overview of Creating an edX Course', 'text': 'Enroll in edX101', 'condition': True }, { 'href': 'https://www.edx.org/course/creating-course-edx-studio-edx-studiox', 'sr_mouseover_text': 'Enroll in StudioX: Creating a Course with edX Studio', 'text': 'Enroll in StudioX', 'condition': True } ]
      You will see the customized links on your studio home like this
      Screenshot 2024-03-07 at 5 56 24 PM

Deadline

None

@openedx-webhooks
Copy link

Thanks for the pull request, @Anas12091101! Please note that it may take us up to several weeks or months to complete a review and merge your PR.

Feel free to add as much of the following information to the ticket as you can:

  • supporting documentation
  • Open edX discussion forum threads
  • timeline information ("this must be merged by XX date", and why that is)
  • partner information ("this is a course on edx.org")
  • any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.

Please let us know once your PR is ready for our review and all tests are green.

@openedx-webhooks openedx-webhooks added the open-source-contribution PR author is not from Axim or 2U label Mar 7, 2024
@openedx-webhooks
Copy link

@Anas12091101 Even though your pull request wasn’t merged, please take a moment to answer a two question survey so we can improve your experience in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open-source-contribution PR author is not from Axim or 2U
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants