-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update Support Claims page #451
Conversation
Deployments
|
Use `name` for the search field name, as standard form field helpers use. Use `value` for the search field input value, as standard form field helpers use. Also default to `params[name]`. The `label` argument now accepts a hash with `text` and `size`. This is to allow the customisation of the label font size.
This defaults money formatting to use commas for thousands separators with the default `en` locale.
Compose upon the govuk tag component.
503f887
to
43f89a0
Compare
43f89a0
to
603bac9
Compare
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.
Overall this looks very good to me, nice 👍🏻
@@ -0,0 +1,9 @@ | |||
class Claim::CardComponent < ApplicationComponent |
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.
Does this need a spec and a preview?
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.
Ah yes, I'll add that. Nice catch.
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.
Added a relatively basic spec for the component, along with a preview.
603bac9
to
45218c7
Compare
- Add Claim::CardComponent - Add pagination count to Support Claims page heading and title - Add search bar to filter claims by reference number
45218c7
to
264517a
Compare
Context
We want to allow Support Users to see the list of all submitted Claims.
Changes proposed in this pull request
shared/_search_form.html.erb
to become a generic UI component. (Could possibly be further refactored into a View Component)Money.default_backend
to:i18n
.Claims::StatusTagComponent
to usegovuk_tag
instead ofcontent_tag(:p)
.Claim::CardComponent
and use it on the support claims page.shared/_search_form
partial to render the search bar for claims with a smaller label.Guidance to review
By updating the
search_form
partial, I've had to make some adjustments to the School Placements code. cc: @DFE-Digital/school-placementsRubyMoney provides 2 modern default localisation strategies,
currency
andi18n
. I've opted to usingi18n
since our users should all be British, but it shouldn't make a difference in our use-case.currency
uses the currency's defaults to format a money value.i18n
uses the locale to determine formatting.Use the
govuk_tag
component in theClaim::StatusTagComponent
. As the fundamental UI component is based on the govuk tag, it should keep things more consistent.Check if the CSS for the
Claims::CardComponent
could be cleaner?Screenshots