-
Notifications
You must be signed in to change notification settings - Fork 18
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
Refactor score page (Only score parts) #157
Conversation
…ate appbar buttons to two
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing additional refactoring.
…n any params for building
For all mistakes made by the former maintainer, through the file will be refactored again in the future (maybe?), they may not needed to be fixed at this moment, since all changes will be replaced with something new again. |
… buttons with tooltip
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
* feat: rewrite score tile widget * feat: extract & rewrite the section of course score * feat: add i18n text for key of class and department * refactor: define highlight color for origin divider color * feat: add metrics title widget * feat: add grade metrics cell widget * feat: rewrite semester score section to new metrics style * feat: rewrite two rank sections to new metrics style * refactor: rename widget * fix: incorrect theme divider color use * feat: rewrite warning widget and extract from score page * refactor: use refactored widgets to tidy up the score page, and seperate appbar buttons to two * fix: i10n key typo * refactor: use getter to generate sub widgets while it is not depend on any params for building * refactor: seperate appbar action buttons into isolate widget and wrap buttons with tooltip
Description
This PR tried to refactor the score page (also known as the grade page), which specifically did the following things:
course score
sectionsemester score
sectionrank
sectionrefresh
andcalculate credit
, which were originally located in aPopupMenuButton
, has been redesigned toIconButton
directly put inside theAppBar
.Divider
widget in somewhere.How to Verify?
refresh
button in the appbar, check if it works.calculate
button in the appbar, check if it works.Screenshots/GIF/Test Results (Optional)