-
Notifications
You must be signed in to change notification settings - Fork 319
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
Toggleable left to right prerequisites trees #3842
base: master
Are you sure you want to change the base?
Toggleable left to right prerequisites trees #3842
Conversation
…quisite/dependent tree
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@zehata is attempting to deploy a commit to the modsbot's projects Team on Vercel. A member of the Team first needs to authorize it. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3842 +/- ##
==========================================
+ Coverage 53.87% 54.76% +0.89%
==========================================
Files 274 275 +1
Lines 6032 6080 +48
Branches 1449 1461 +12
==========================================
+ Hits 3250 3330 +80
+ Misses 2782 2750 -32 ☔ View full report in Codecov by Sentry. |
bd7c8aa is technically outside the scope of this PR, but if it makes codecov happy then so be it. |
Context
Fixes #3202 Prerequisite tree right-to-left progression is confusing
Implementation
This PR extends PR #3840's implementation and adds a toggle for the user to choose whether they prefer the prerequisite to appear on the left or the right. Setting defaults to prerequisites on the left, which is the requested specifications for #3202. Please note that this branch diverges from the branch in PR #3840 and cannot both be merged.
While Issue #3203 specifications does not ask for ability to toggle, some users like myself may have already gotten used to prerequisites on the right. However, I do agree that the prerequisites on the right seems to be more intuitive.
I also took the chance to fix some confusing naming in the code, like the trees having class names that were opposite of what they contained. The fix for the truncation bug in PR #3840 is also carried over.
Credits to @sciffany for copywriting and initial implementation, to @li-kai for implementation feedback and to @alvynben for implementation and test cases.
UI tests
Settings toggle:
Single prerequisite/dependents:
Left
Right, i.e. original layout (unchanged)
Complex prerequisite/dependents with uneven layers and uneven letters in module codes
Left
Prefixed prerequisites
Side effect fixes:
This also fixes misaligned module trees as a side effect
Other Information
Any questions you may have
Is there a tele group specific for development?
Letting us know that you're new to this (so we know how much to help out)
Again, been almost 3 years since I touched any web dev. Sorry in advance if I had missed out anything.