neuland-ingolstadt / neuland.app

A free & open source, web-based replacement for the official app of the Technische Hochschule Ingolstadt built with React and Next.js.
https://neuland.app
GNU Affero General Public License v3.0
36 stars 33 forks source link

🐛💄 Fix spo weights and rework grade page #319

Closed BuildmodeOne closed 1 year ago

BuildmodeOne commented 1 year ago

Full spo-grade-weights.json for testing: spo-grade-weights.zip

Default THI Light
localhost_3000_grades_(iPhone 12 Pro) (6) localhost_3000_grades_(iPhone 12 Pro) (5)

🤖 Generated by Copilot at e3c8dc2

Summary

🌐🎓🐛

This pull request adds a feature to redact grades for privacy reasons, and fixes a bug in finding the correct SPO data for each course. It also improves the layout and appearance of the grades and personal pages, and updates the translation files and the SPO parser script accordingly. The main changes are in the grades-utils.js, grades.jsx, and personal.jsx files, as well as the Grades.module.css and Personal.module.css files. The Spoiler component is a new element that hides the average grade until the user clicks on it. The combine_jsons.py script is modified to simplify and preserve the course names. The grades.json and personal.json files are updated to add or remove the relevant translation keys.

Sing, O Muse, of the skillful coder who changed the app With many a line of CSS and JSX, and t function calls Who added the Spoiler component, hiding the grades from view Like Zeus concealed his lightning bolts, or Athena her wisdom

Walkthrough