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.
Context
Fixes #3202
This issue requests the reversal of the orientation of the prerequisite tree in the module page.
Implementation
I have edited moduletree.tsx and moduletree.scss to reverse the order of the prerequisite tree. Then, I changed some of the words used to make the new format clearer. Finally, I updated the snapshots in moduletree.test.tsx to reflect the change in UI.
For a single mod, with no prerequisite or dependant:
For mods with only dependants:
For mods with one layer of prerequisites and dependants:
For mods with two layers of prerequisites:
For mods with uneven layers of prerequisites:
For mods with uneven letters in prerequisites:
Other Information
Hello, I think the code works in most cases that I've managed to test, both on desktop and mobile. However, I feel that there should be a way to 'fix' the uneven nodes featured in the last picture. Do you have any suggestions?
This is my first issue and pull request by the way, so I do apologize for any mistake on my part. Thank you for taking the time to read through it.