-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Selma styling updates #153
base: main
Are you sure you want to change the base?
Conversation
Moved this here |
I really like the loading animation but after looking through the code it seems like you don't stop the animation if there is an error while parsing the grade table. I did not handle these errors and decided to just do nothing in that case as it was easier. But I think having users forever stuck in the loading animation without being able to click the original link is not a good option. You can add a The The part where you parse the grade is a bit problematic because not everyone receives grades exactly formatted liek taht, for example some get a "be" which is then counted as a "1,0" in the grade statistic. I think simply doing Besides that you can probably see that there are some merge conflicts, these are because of some changes I implemented before my original pull request got merged so unfortunately those have to be resolved, I'm sorry this all became a bit of a mess |
I'll do the catch routine - maybe I'll add another placeholder with the link embedded for it I'll see
I saw that procedure but I was honestly too lazy to properly read it - will do
Simple replace doesn't work as the grade is in predefined steps - at least in the course view where an average is calculated I need that parsing. But I'll add more safeguards to it.
I'll reapply my changes to the main branch - maybe I'll do a fresh PR, or I'll merge it properly I'll see:) |
I like the loading animation. Overall, I think the design changes to the Selma table are a good addition to the project. Thanks @A-K-O-R-A for checking the technical details! One opinion: In case you decide to keep the settings flag:
|
It was requested on the Informatik Discord server - i personally dont see a reason for it either but apparently there is an audience for it. |
The entire idea of grading is to compare yourself to others. |
Either way, having or not-having the toggle should not decrease user experience. I am ready to support both sides, and would also be happy to merge the feature without the toggle. It is something that can be added later on anyways. Also, if you do not want to see the (anyway existing) comparison visually, you do not need to enable the improved-selma-feature. Besides: the own grade is shown next to the graph anyways in case I interpret the screenshots correctly, no? (I cant check Selma myself unfortunately.) The more I think about it, the less I see the hard argument for this specific toggle. |
Yes. It is always shown next to it- I just removed it from my screenshots |
Well, I contributed my opinion, and I am happy to argue with people who want to argue about this. As @A-K-O-R-A and possibly your name directly appear in the credits of the table you should also take care that you feel comfortable with whats being published. Dont get me wrong: I still think that the toggle is a strict improvement to TUfast, but only if my above points are addressed. I am sorry that this creates implementation overhead. |
I think there are many students who do not want to compare themselves to others and pretty much only care about wether they have passed or not and that was the target audience I first thought about when asking for a specific toggle for this feature. But to be honest I did not stop to consider that most likely those people also do not want to see the whole distribution, so I would be fine with removing the toggle if it creates too much overhead. For me it is also a visual thing as I don't really care about where my own grade lies in the distribution and rather look at the distribution to get an estimate of how hard the exam was and how different the grading patterns are (perfect Gaussian bell curves seem surprisingly rare) Anyway I would let the decision up to you @t0mbrn if you want to keep the toggle, and add the additional logic that was requested, or remove it entirely. I am sorry for the additional work I caused :/ |
@A-K-O-R-A which code style settings do you use? (is there something I can import to IntelliJ or vscode?) (is this the eslint file)? |
Can anyone help me out? 😭 Extension is invalid Reading manifest: Error processing background: Value must either: contain the required "page" property, contain the required "scripts" property, or not contain an unexpected "type" property" |
Check Contributing.md for current style/linting guidelines. Can be improved in the future though. Also see #134. Regarding error: Did you |
I use prettier in my editor and before every commit I run |
uff danke thx |
# Conflicts: # src/contentScripts/other/selma/layout.ts # src/freshContent/settings/Settings.vue # src/freshContent/settings/settings.json # src/styles/contentScripts/selma/exam_results.scss
@A-K-O-R-A regarding
currently only grades with a "," are parsed anyways - I could add an extra workflow for "be", if there is a need for it? I dont see the problem you mentioned - can you maybe elaborate more on it? |
Also, Could I add my GitHub tag behind the akora tag or would it get to cluttered? |
Yes, add your tag. Also: can you quickly say which design / implementation choice you went for? |
Thanks
i removed the toggle |
For EBW courses simply present your own grade as "be" but mark them as a "1,0" in the grade distribution table. |
Unfortunately I don't have had such courses yet so I can't test it properly - which options are there besides grades with a "," |
I have only encountered "be" yet, but I can imagine that there might be more variations. Though I don't think it is really a problem if we don't handle them properly, as long as the rest works. You can also see the graph moving left one column, I don't know if this is only an issue on my pc but it was consistently there on all pages. Mabye someone else can try it as well? |
We cant try, unfortunately. (Not TUD anymore.) I remember I had similar peculiarities and failure cases with the Hisqis table. Thats why I think its good that we have the disable switch right above the table. Implement it robust for the cases you can cover (maybe ask 1-2 fellow students to try out), and choose conservative routines for error handling. |
I could replicate this issue and will try to fix it |
weird - the disable table button doesnt work for me - or not as expected - it doesnt remove the improve selma stuff but it fixes this bug, when disabled?? @A-K-O-R-A |
Mhm, unfortunately I do not have the time to look into this issue right now. It is definitely possible that I overlooked something when implementing the the disable button, maybe you can start removing things line by line from the function that creates this disable button until it works? If you do not find the root cause then I can look into it on the weekend next week, sorry for the long delay :/ |
Pull Request
Please fill out the following template when you create a PR. This will help to process your PR faster!
Description
I proprose the following changes in my PR:
Here you can also add screenshots, if applicable.
Loading Animation:
https://github.com/user-attachments/assets/594efb7e-92b7-4692-9742-60f493cdaa84
New View turned on:
Settings Page
New View Turned off
References
I created the PR because I felt like its a nice addition
Referenced Issue:
Referenced ToDo from project-board:
Type of change
Further info
Testing
We have 1500+ Users. Please test your changes thoroughly.
npm run test
locallyAdditional Information
Add anything here, that might be important.