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

Gender Quota Distribution, More localisation #15

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Conversation

acao
Copy link
Contributor

@acao acao commented Apr 15, 2023

excited to get this working finally! gender distribution! there are some issues still

attempts to solve #6 as well by improving the UX and layout

Example 1

image

Example 2

does this case make sense @shushugah ?
image

@netlify
Copy link

netlify bot commented Apr 15, 2023

Deploy Preview for works-council-list-helper ready!

Name Link
🔨 Latest commit aa43d73
🔍 Latest deploy log https://app.netlify.com/sites/works-council-list-helper/deploys/643bbf8e682ff40008e7bf37
😎 Deploy Preview https://deploy-preview-15--works-council-list-helper.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@acao acao changed the title More localisation Gender Quota Distribution, More localisation Apr 15, 2023
@acao acao requested a review from shushugah April 15, 2023 16:05
@acao
Copy link
Contributor Author

acao commented Apr 16, 2023

Example 3

it appears to be working in a lot of cases except for this one.. there are likely more failing cases. i am planning on writing a unit test suite to cover almost all of this!
image

@acao
Copy link
Contributor Author

acao commented Apr 16, 2023

Example 4

This case I'm not even sure about - the list on the right did not receive a popular distribution, but received a gender quota seat distribution. Should not the woman at the bottom of the first list receive the seat, then?

image

@acao acao force-pushed the more-localisation branch 2 times, most recently from 5f26d42 to a1544ae Compare April 16, 2023 09:24
@acao acao mentioned this pull request Apr 16, 2023
9 tasks
@shushugah
Copy link
Member

shushugah commented Apr 21, 2023

Example 3

I would have expected Solidarity to get one seat anyways through raw/popular distribution. But yes, let's say there was a gender quota of two women, I'd expect BR1, BR2, BR3 and BR6 to be elected, along with SO1

Copy link
Member

@shushugah shushugah left a comment

Choose a reason for hiding this comment

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

Some tired thoughts

src/components/Election/ElectionResults.tsx Show resolved Hide resolved
src/lib/listData.ts Show resolved Hide resolved
src/lib/listData.ts Show resolved Hide resolved
@acao
Copy link
Contributor Author

acao commented May 3, 2023

thank you for the review @shushugah !!

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.

None yet

2 participants