Skip to content

Conversation

@kdmccormick
Copy link
Member

@kdmccormick kdmccormick commented Feb 18, 2025

Description

We disable the Studio Preview Language Setting Page, and redirect it to the identical LMS Preview Language Setting page. This is one of the final bits of the legacy Studio frontend. By making it render only in LMS, we unblock the full retirement of the legacy Studio frontend.

Supporting info

Before

There were two views allowing to staff to choose to preview a "dark" language, both of which are completely identical in functionality. The only difference is the header, footer, and styling surrounding them.

1. Studio Context (<CMS_ROOT_URL>/update_lang)

image

2. LMS Context (<LMS_ROOT_URL>/update_lang)

image

After

The Studio URL (1) will simply redirect to the LMS URL (2). In other words, the Preview Language Setting page will only render in an LMS context.

This has no impact on end-user functionality. It has only a very minor UX end-user impact (LMS header+footer rather than Studio header+footer). The LMS styling seems to be better, anyway.

Test instructions

  • Navigate to <CMS_BASE>/update_lang
  • Log in as global staff
  • You should be redirected to <LMS_BASE>/update_lang.
  • Enter a language code (e.g., es)
  • Confirm that both Studio and LMS appear in that language.

Other information

The actual affect of this simple page is to set a UserPreference item with the key dark-lang, allowing staff to see what their Open edX looks like in a language which is not (yet) available to users in general. Assuming that this is a useful feature, we will need to reimplement the page in an MFE eventually. My thought is that the Account Settings page in frontend-app-account is the correct destination for this if and when it is written. If it is not rewritten, we will need to DEPR it.

@kdmccormick kdmccormick added the create-sandbox A test sandbox will be created for this PR, using the `open-craft/pr-sandbox-automation` tool label Feb 18, 2025
@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@kdmccormick kdmccormick marked this pull request as ready for review April 7, 2025 19:35
@kdmccormick kdmccormick marked this pull request as draft April 7, 2025 19:35
@kdmccormick kdmccormick force-pushed the kdmccormick/update-lang-lms-redirect branch from c8fb0c7 to a44d8e9 Compare April 7, 2025 19:56
@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@kdmccormick kdmccormick force-pushed the kdmccormick/update-lang-lms-redirect branch from a44d8e9 to 9e90da8 Compare April 24, 2025 16:04
@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@kdmccormick kdmccormick force-pushed the kdmccormick/update-lang-lms-redirect branch from 9e90da8 to 52eab57 Compare August 14, 2025 17:30
@open-craft-grove
Copy link

Sandbox deployment failed 💥
Please check the settings and requirements.
Retry deployment by pushing a new commit or updating the requirements/settings in the pull request's description.
📜 Failure Logs
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@open-craft-grove
Copy link

Sandbox deployment successful 🚀
🎓 LMS
📝 Studio
ℹ️ Grove Config, Tutor Config, Tutor Requirements

@kdmccormick kdmccormick removed the create-sandbox A test sandbox will be created for this PR, using the `open-craft/pr-sandbox-automation` tool label Feb 2, 2026
Previously, there were two (identical) ways to preview dark language:

1. <CMS_ROOT_URL>/update_lang
2. <LMS_ROOT_URL>/update_lang

Now, (1) will simply redirect to (2). So, the Preview Language Setting
page will only render in an LMS context. This has no impact on end-user
functionality. It has only a very minor UX end-user impact.

The purpose of this is to allow us to completely retire the legacy
Studio frontend without losing any end-user functionality. This page is
not yet available in an MFE, which will need to be the eventual
solution.
@kdmccormick kdmccormick force-pushed the kdmccormick/update-lang-lms-redirect branch from 52eab57 to 3dd8acc Compare February 2, 2026 18:23
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.

2 participants