forked from hedyorg/hedy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UI] New tag color for tags about command adventures (hedyorg#4329)
**Description** Adds a new type of tag both in the normal level page and also in the customization page, for this I did the following: 1. Adding a new type of object `SortedAdventure` which will serve as the object being passed to the templates. Therefore, not needing changes in the databse in we want to change aspects of the tabs. For this I changed the filename `types.py` to `frontend_types.py` and added a new file `server_types.py` for this type of data that doesn't need to be shared with the front-end, releveant since using HTMX prevents for handing data in the front-end anyway. 2. Added a set that has the Keywords Adventures so we know which types of adventures should have a different color. 3. Edited the templates for the tabs and the customize class page. 4. Fixed the flaky failing test in `customize_clas.cy.js` This is how the tab looks on the customize class page: ![image](https://github.com/hedyorg/hedy/assets/45865185/3d684fb9-67fe-4372-9fdd-7b3566434d2d) **Fixes hedyorg#4312** **How to test** You can visit the index page and also the customize class page!
- Loading branch information
Showing
16 changed files
with
217 additions
and
114 deletions.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.