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

refactor: simplify the stats page and its components #944

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

raphael-arce
Copy link
Contributor

@raphael-arce raphael-arce commented Jul 19, 2024

The goal is to simplify / make the components more readable. @aeschi @Jaszkowic let me know what you think :)

(I also added a missing translation for "Andere" in the donut chart and fixed a visual bug when you would hover the legend in the "Gießverhalten" chart)

Copy link

vercel bot commented Jul 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
giessdenkiez-de ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 22, 2024 8:35am

@Jaszkowic
Copy link
Collaborator

@raphael-arce thanks for your effort :) Looks good! But for me, the preview link is not working - it does not render the charts. Do you know whats up? The gdk_stats request returns with valid data.
image

@raphael-arce
Copy link
Contributor Author

@Jaszkowic hmm i don't know whats wrong. Locally it works. Will look into it 👍

Signed-off-by: Raphael Arce <raphael.arce@ts.berlin>
@raphael-arce
Copy link
Contributor Author

raphael-arce commented Jul 22, 2024

@Jaszkowic found the issue and fixed it 👍 the resize function was called before the stats-card-container element was added to the dom, then no width would be set on page load.
Bildschirmfoto 2024-07-22 um 10 37 19

@raphael-arce raphael-arce merged commit 168c16d into feat/stats Jul 22, 2024
3 checks passed
@raphael-arce raphael-arce deleted the refactor/stats branch July 22, 2024 08:38
Copy link
Collaborator

@Jaszkowic Jaszkowic left a comment

Choose a reason for hiding this comment

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

Nice work!

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.

2 participants