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

💻 New public adventures page #6092

Open
wants to merge 45 commits into
base: main
Choose a base branch
from
Open

💻 New public adventures page #6092

wants to merge 45 commits into from

Conversation

rix0rrr
Copy link
Collaborator

@rix0rrr rix0rrr commented Jan 7, 2025

This PR changes the UI of the teachers "public adventures" page. It does away with the tabs and replaces it with a scrollable list on the left side. It's also faster and doesn't rely on all requests coming in to a single Python process (which will not be true on Heroku).

This is what it currently looks like:

image

What we've lost from the old public adventures is the ability to see all public adventures of all languages at the same time... but I figure that real users are interested in a single language only.

How to test

Log in as a teacher, and search and use the interface. Use clone, use flag, use delete if you are teacher1.

rix0rrr and others added 30 commits December 20, 2024 08:57
The syntax highlighter used to work by calling `initTranslations()` with
the current level and language, which then manipulates global variables
so that the syntax highlighter code has the right information to
highlight the different levels and languages of Hedy correctly.

To remove the need for global variables, we instead parameterize the
Lezer parsers and pass the level and language into the generator at
every time it is used.
@rix0rrr
Copy link
Collaborator Author

rix0rrr commented Jan 7, 2025

I'm sure the Cypress tests will be broken because I changed a lot about the page. Haven't gotten to those yet.

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.

1 participant