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

Support claims index page filters #447

Merged
merged 1 commit into from
Apr 15, 2024
Merged

Conversation

CatalinVoineag
Copy link
Contributor

@CatalinVoineag CatalinVoineag commented Apr 5, 2024

Context

We need to allow our support users to filter the claims.

Two filters, School and Provider filters have 2 search fields where
you can search by school name or provider to get the filter you want.
This is done by javascript in a stimulus controller.

The other 2 filters, Submitted after and Submitted before filters are
date filters and use the govuk_date_field form helper. You cannot set
the value of this helper as it's sending 3 params not just 1. So to
persist the value of these filters we need a form object.

Claims::Support::Claims::FilterForm is a form object that is meant to
just house the params and all the logic that these filters need.

All the params of the filters are in the url.

Changes proposed in this pull request

Claims::Support::Claims::FilterForm
Stimulus controller
Styling changes

Guidance to review

Sign in as colin
Go to support claims index
Filter claims by all the filters
Use the search too

Screenshots

Peek.2024-04-11.16-10.mp4

@CatalinVoineag CatalinVoineag force-pushed the cv/support-claim-index branch 2 times, most recently from 17edfe8 to 9a9c825 Compare April 9, 2024 13:19
@CatalinVoineag CatalinVoineag self-assigned this Apr 9, 2024
@CatalinVoineag CatalinVoineag force-pushed the cv/support-claim-index branch 5 times, most recently from 467c2e9 to 57ffe46 Compare April 11, 2024 15:03
@CatalinVoineag CatalinVoineag changed the title Wip Support claims index page filters Apr 11, 2024
@CatalinVoineag CatalinVoineag added the deploy A Review App will be created for PRs with this label label Apr 11, 2024
@CatalinVoineag CatalinVoineag marked this pull request as ready for review April 11, 2024 15:10
@CatalinVoineag CatalinVoineag requested review from a team as code owners April 11, 2024 15:10
Copy link

github-actions bot commented Apr 11, 2024

Review app track and pay deployed to https://track-and-pay-447.test.teacherservices.cloud was deleted
Review app school placements deployed to https://manage-school-placements-447.test.teacherservices.cloud was deleted

@CatalinVoineag
Copy link
Contributor Author

@Nitemaeric
Copy link
Contributor

This is also a pretty complex change. It would help reviewers if this PR was broken down into step-by-step commits.

Copy link
Contributor

@gms-gs gms-gs left a comment

Choose a reason for hiding this comment

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

Very nice! :shipit:

app/assets/stylesheets/filter-form.scss Outdated Show resolved Hide resolved
app/views/claims/support/claims/_filter.html.erb Outdated Show resolved Hide resolved
app/views/claims/support/claims/_filter.html.erb Outdated Show resolved Hide resolved
We need to allow our support users to filter the claims.

Two filters, School and Provider filters have 2 search fields where
you can search by school name or provider to get the filter you want.
This is done by javascript in a stimulus controller.

The other 2 filters, Submitted after and Submitted before filters are
date filters and use the govuk_date_field form helper. You cannot set
the value of this helper as it's sending 3 params not just 1. So to
persist the value of these filters we need a form object.

Claims::Support::Claims::FilterForm is a form object that is meant to
just house the params and all the logic that these filter need.

All the params of the filters are in the url.
@CatalinVoineag CatalinVoineag merged commit 16346a3 into main Apr 15, 2024
7 checks passed
@CatalinVoineag CatalinVoineag deleted the cv/support-claim-index branch April 15, 2024 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy A Review App will be created for PRs with this label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants