Skip to content
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

Redesign tables on mobile #330

Merged
merged 8 commits into from
Mar 14, 2022
Merged

Redesign tables on mobile #330

merged 8 commits into from
Mar 14, 2022

Conversation

jadebuckwalter
Copy link
Collaborator

@jadebuckwalter jadebuckwalter commented Jan 31, 2022

Hide and show columns in the Assignments and Categories tables based on
the screen size. Fixes #203.

jadebuckwalter and others added 3 commits January 30, 2022 20:51
Hide and show columns in the Assignments and Categories tables based on
the screen size.
The category of an assignment is hidden in the table on small screen
sizes; include this information in the assignment info modal.
The load event listener creates a race condition which results in the
assignments table header not loading properly on mobile. Instead, call
adjustColumns just after the assignments and categories tables are
populated with data.

Additionally, this commit has adjustColumns take in as a parameter the
table on which it operates, enabling the resize event listener to be
initialized only once the tables are built. This prevents edge case race
conditions and makes the code more generalizable (if we want to use
adjustColumns for, e.g., the schedule table in the future).
@psvenk psvenk added this to the 2.9.0 milestone Feb 4, 2022
tektaxi and others added 2 commits February 10, 2022 16:05
Instead of occupying the entire screen, have the stats modal sit between
the categories table and the assignments table.
@psvenk
Copy link
Member

psvenk commented Feb 13, 2022

I just now made a commit that moves the stats modal to be between the categories and assignments tables, but the styling could use some work. We should also look into giving the other modals the same treatment.

Style the (no-longer) modal so that it looks more like the surrounding
tables, remove extra padding, and remove animations. We still need to
have the modal close when a different class is selected.
Close the stats modal when a different class is selected or the data is
reset.
Treat the corrections modal as a stats modal, and have it appear above
the stats modal and behave in the same way.
@jadebuckwalter jadebuckwalter marked this pull request as ready for review February 13, 2022 20:22
Copy link
Member

@psvenk psvenk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The assignments table header still does not load properly on mobile for me. Apart from that, this looks good to me.

Copy link
Member

@psvenk psvenk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can no longer reproduce the issue with the assignments table header; maybe there was some caching issue going on with my previous test. So, I think we can consider that issue fixed and this pull request ready to merge.

@jadebuckwalter jadebuckwalter merged commit 70d2e5c into master Mar 14, 2022
@jadebuckwalter jadebuckwalter deleted the mobile-assignments branch March 14, 2022 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Categories and Assignments really hard to read on mobile
3 participants