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

polls: add new django setting to enable or disable the unregistered poll #1692

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

goapunk
Copy link
Contributor

@goapunk goapunk commented Nov 11, 2024

voting

  • add missing changelog

required to e.g. disable it in meinBerlin for now (or other forks of a+)

Tasks

  • PR name contains story or task reference
  • Documentation (docs and inline)
  • Tests (including n+1 and django_assert_num_queries where applicable)
  • Changelog

@goapunk goapunk force-pushed the jd-2024-11-add-poll-dashboard-setting branch from d77d98e to 0aefe90 Compare November 11, 2024 16:02
@goapunk goapunk requested review from m4ra and hom3mad3 November 11, 2024 16:03
{props.enableUnregisteredUsers &&
<div>
<label htmlFor="allowUnregisteredUsersCheckbox">Allow unregistered user to vote</label>
<input type="checkbox" id="allowUnregisteredUsersCheckbox" onChange={() => setAllowUnregisteredUsers((state) => !state)} checked={allowUnregisteredUsers} />
Copy link
Contributor

Choose a reason for hiding this comment

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

we could use a couple more attributes:
aria-checked={allowUnregisteredUsers} // Adds an ARIA attribute for screen readers
aria-label="Toggle allowing unregistered users to vote"

Copy link
Contributor Author

@goapunk goapunk Nov 12, 2024

Choose a reason for hiding this comment

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

@hom3mad3 are you ok with us collecting these things for the ui refactor story for now instead of fixing them as part of this issue ?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, because now with the new backend changes we keep making the code worse. could you guys maybe make a list of stuff you encounter?

Copy link
Contributor

@hom3mad3 hom3mad3 left a comment

Choose a reason for hiding this comment

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

✅ for the react stuff, didn't have a look at the serializers.py file

Copy link
Contributor

@m4ra m4ra left a comment

Choose a reason for hiding this comment

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

thanks

@m4ra m4ra merged commit d00d656 into main Nov 13, 2024
2 of 5 checks passed
@m4ra m4ra deleted the jd-2024-11-add-poll-dashboard-setting branch November 13, 2024 11:29
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.

3 participants