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

Improve Statistics modal #354

Merged
merged 12 commits into from
Apr 22, 2024
Merged

Improve Statistics modal #354

merged 12 commits into from
Apr 22, 2024

Conversation

dabico
Copy link
Member

@dabico dabico commented Apr 22, 2024

The present state of the modal has made it difficult to read on small devices. This PR adds a table to the statistics presentation, which is easier to read on smaller screens. Includes a plethora of quality-of-life improvements, such as separate panes for each visualisation, multiple export options and loading states.

This is useful in cases when we add a lot of new languages in bulk.
We could have also modified the service method or REST API endpoint,
but I have no idea if we might end up needing the original behaviour
for something else. Ergo, the filtering is left up to the presentation
layer.
Changed the shape and color of the box shadow when the close button is
focused.
Since it resides in the table body, it will be automatically replaced
once the statistics are fetched from the server.
Unlike the table, this one required some additional JavaScript to toggle
visibility properly.
@dabico dabico merged commit 0df62cf into master Apr 22, 2024
7 checks passed
@dabico dabico deleted the enhancement/chart branch April 22, 2024 09:10
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.

1 participant