-
Notifications
You must be signed in to change notification settings - Fork 7
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
Added basic frontend for apportionment #940
Conversation
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #940 +/- ##
==========================================
+ Coverage 90.29% 91.95% +1.66%
==========================================
Files 249 272 +23
Lines 13226 15740 +2514
Branches 1348 1426 +78
==========================================
+ Hits 11942 14474 +2532
+ Misses 1187 1169 -18
Partials 97 97 ☔ View full report in Codecov by Sentry. |
Sigrid maintainability feedback✅ You wrote maintainable code and achieved your objective of 3.5 stars Show detailsSigrid compared your code against the baseline of 2025-02-20. 👍 What went well?
👎 What could be better?
📚 Remaining technical debt
View this system in Sigrid to explore your technical debt ⭐️ Sigrid ratings
💬 Did you find this feedback helpful?We would like to know your thoughts to make Sigrid better. |
…rtionment tables.
820b025
to
8bcd44d
Compare
What's the rationale for this? In the future we'll have to submit back results such as any deceased candidates and the results of a drawing of lots, so I think a |
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.
Looks good, just two small things!
Was there some linter that complained about this, or did you observe rendering differences between browsers? |
Yes I observed the differences, or more precisely, noticed that the setting in |
And by 'observed the differences' you mean that the slashed zero was rendered? |
frontend/app/module/apportionment/page/ApportionmentResidualSeatsPage.tsx
Show resolved
Hide resolved
Yes, in chrome (my main dev setup) I got the slahed zeroes, and Joris commented on it. Then looked up the font-feature-settings we had and the compatibility in font-face (because it wasn't working in my code and was in inputgrid, where it was also set in the css). So that's when I figured ok let's take it out of font-face and set it in a separate util. To prevent confusion in the future. |
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!
Closes #739
TODO
Description
Apportionment
elections/{election_id}/apportionment
route> Zetelverdeling
for detail pages)Screencast.from.2025-02-13.17-01-45.mp4
Miscellaneous
font-number
settingfont-family: "GeistMono", monospace, monospace;
andfont-feature-settings: "ss09" on;
font-feature-settings: "ss09" on;
from@font-face
because this is not supported by chrome and edgeNot in scope