-
Notifications
You must be signed in to change notification settings - Fork 9
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
Feat: in-person eligibility policies #2689
Draft
angela-tran
wants to merge
8
commits into
main
Choose a base branch
from
feat/in-person-policies
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
angela-tran
commented
Feb 13, 2025
@@ -10,6 +10,8 @@ | |||
from .common import PemData, SecretNameField, template_path | |||
from .claims import ClaimsProvider | |||
from .transit import TransitAgency | |||
from benefits.core.context import SystemName | |||
from benefits.in_person.context import eligibility |
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.
I know we're wanting to discuss the naming for this copy context stuff. For now, I am just following the existing naming pattern but am aware that we don't necessarily like it.
angela-tran
commented
Feb 13, 2025
dd9ccea
to
e0a9209
Compare
the mocked agency used by the test did not have any flows, and the test was passing as a false positive. use the `mocked_session_flow` fixture so that the agency has a flow. this is similar to the fix in 3bf128c.
change the form to have a checkbox for each flow. when the user selects the radio button for a flow, the corresponding checkbox is shown, and the other checkboxes are hidden. implement a template specifically for this form.
e0a9209
to
90fdd12
Compare
also fix spelling typo on copy for checkboxes.
previously we could rely on Django's default handling of the single `BooleanField`, but since we have multiple checkboxes now, and we don't want to require all of them, we need to implement our own logic to require that the checkbox that matches the selected flow was checked. also added Javascript to the template to show the checkbox for the case where the form didn't pass back-end validation and therefore we show the form again with what the user had selected.
90fdd12
to
9582a61
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
back-end
Django views, sessions, middleware, models, migrations etc.
deployment-dev
[auto] Changes that will trigger a deploy if merged to dev
front-end
HTML/CSS/JavaScript and Django templates
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #2632
WIP