kosiakkatrina
88fec8e5ab
Cldc 1223 pregnancy soft validations ( #602 )
...
* update hard validation limits for pregnancy age, remove hard validation if there are no females at all
* Add soft validations for pregnancy
* make the error message consistent
* Only check the values for the members with details known in the household
* Show interruption screen when resident details are updated
* Route back to check answers after an interruption screen and back to previous page if no is selected on the interruption screen
Co-authored-by: baarkerlounger <baarkerlounger@users.noreply.github.com>
* update validation messages
* fix a test
* fix a typo
Co-authored-by: baarkerlounger <baarkerlounger@users.noreply.github.com>
2 years ago
Paul Robert Lloyd
204232c460
Add visiblly hidden change link text for details known questions
2 years ago
Dushan
41757a8998
remove letting_in_sheltered_accomodation field ( #577 )
...
* remove letting_in_sheltered_accomodation field
This field is now duplicated by the shelteredaccom field
* lint fixes
* fix all failing specs
2 years ago
Ted-U
970c9afcf7
Cldc 1217 retirement soft validation ( #570 )
...
* Interruption screen refactor
* Add test for retirement_age_for_person
Co-authored-by: Stéphane Meny <smeny@users.noreply.github.com>
* Rubocop
* update 22-23 form
* fix failures
* lint fixes
* remove whitespace
* remove commented code
* make spec file use translations instead of content
* update content
* lint fixes
* fix typo
* fix question wording
* fix failing spec
* add full stop
Co-authored-by: Stéphane Meny <smeny@users.noreply.github.com>
Co-authored-by: Dushan Despotovic <dushan@madetech.com>
2 years ago
baarkerlounger
e374aadd16
Remove needs type question until we support supported housing logs ( #569 )
2 years ago
baarkerlounger
85b4ae81e3
Make tshortfall optional based on hidden tshortfall_known question ( #563 )
...
* Make tshortfall optional based on hidden tshortfall_known question
* Add test for optional
* Add test for JSON derived and dependent on false options
* Test routing
* Fix optionality
2 years ago
baarkerlounger
233f54997b
Allow illness type to be refused ( #553 )
2 years ago
baarkerlounger
8b3a2c9560
Add white other
2 years ago
baarkerlounger
0383e27821
Enable dynamically dependent answer options
2 years ago
kosiakkatrina
1637661314
don't route to hbrentshortfall if hb is 7 ( #544 )
2 years ago
baarkerlounger
1857b34d16
Remove ??
2 years ago
kosiakkatrina
a3d32765d5
🤏 content fixes ( #539 )
2 years ago
kiddhustle
5adb68abb3
CLDC-1176: update hint and error text
3 years ago
Paul Robert Lloyd
e2b36ddae5
Include full stops in hint text
3 years ago
Paul Robert Lloyd
e51fede8e2
Use smart quotes
3 years ago
Paul Robert Lloyd
4a963a0324
Include guidance partial on both income questions
3 years ago
Stéphane Meny
2643e707ae
Update hbrentshortfall values and import corrections ( #514 )
3 years ago
Ted
907dcce30e
fixing accidental deletion
3 years ago
Ted
ca94d3ba5b
display working situation questions if age is not given
3 years ago
Paul Robert Lloyd
1242c14c6c
Move link to privacy notice to declaration question
3 years ago
baarkerlounger
8e34732fb4
Add hint text
3 years ago
baarkerlounger
2551658084
Update ethnic group answer option label
3 years ago
kosiakkatrina
06adfbaf6d
remove la_known ( #505 )
...
* remove la_known
* lint
3 years ago
kosiakkatrina
51a1c2c7e3
Cldc 1163 next incomplete section ( #496 )
...
* Remove Save and go to submit
* Update hidden_in_check_answers
* Add la_known to dynamically not required questions if postcode_known is yes or not filled in
* infer the correct field value and remove irrelevant dynamically not required line
3 years ago
baarkerlounger
9a754c2dd6
Time spent in LA can't be derived
3 years ago
baarkerlounger
be25e07f5f
Starter tenancy routing
3 years ago
Stéphane Meny
217ce62a82
Reduce differences between imported values and saved values ( #486 )
...
* Compare imported values and saved values
* Remove London validations
* 2021-2022 form fixes
* Code review changes
3 years ago
Dushan
2e93dd5e2b
Move privacy notice add final review ( #469 )
...
* WIP
* Unpleasant but works
* Alias is maybe better?
* WIP
* remove unneeded partial
* error and success when submitting
* add request specs for review page
* delete unneeded feature spec
* WIP
* Unpleasant but works
* Alias is maybe better?
* WIP
* remove unneeded partial
* error and success when submitting
* add request specs for review page
* delete unneeded feature spec
* 🤏 fixes
* display when log is completed
Co-authored-by: baarkerlounger <db@slothlife.xyz>
Co-authored-by: Kat <katrina@madetech.com>
Co-authored-by: kosiakkatrina <54268893+kosiakkatrina@users.noreply.github.com>
3 years ago
Stéphane Meny
4f1df84d36
Rename attribute irproduct_other in JSON ( #481 )
3 years ago
Stéphane Meny
b8d60a86ea
Import changes ( #470 )
3 years ago
Dushan
33aa4a226f
Fix check answers bugs ( #474 )
...
* fix issues with check answers
* lint fixes
3 years ago
kosiakkatrina
868de89234
Update soft rent validations messages ( #453 )
...
* Update soft rent validations messages
* fix suffix and to_s for check_answers symbol
* rubocop
3 years ago
baarkerlounger
50eeaa9101
Remove hint text from tenancy start date question
3 years ago
baarkerlounger
9dc7e574bf
CLDC-1116: Don't route to ecstat if age is under 16 ( #446 )
...
* Ecstat dependent on age
* Derive ecstat if age is under 16
* Test value label derivation
* Ensure derived option is still shown in check answers
3 years ago
kosiakkatrina
6c5391ad1c
Cldc 1065 soft validations ( #434 )
...
* change get_question form method to prioritise the routed to questions
* Add soft validation and interruption screen for basic rent
* get previous page that was routed to and display the same error for both soft validations
* Separate max and min error screens
* add a test for getting the previous page
* Update content and add more tests for previous page
3 years ago
baarkerlounger
49f2fbf75a
Remove org question as it doesn't apply to 1.0 ( #437 )
3 years ago
kosiakkatrina
c43e730254
Cldc 657 full postcodes ( #421 )
...
* Rename full postcode columns
* Normalise the postcodes
* Fix test
3 years ago
Dushan
b72eb9f3fc
CLDC-667 newprop derived variable ( #426 )
...
* Update keys of rsnvac for first lets
Making it match with what is in the data dictionary. It was a wuick enough
fix to be included in this branch since it pairs well with the newprop derived
variable implementation
* add newprop derived variable and tests
* fixes
* use ternary statement for newprop derivation
3 years ago
baarkerlounger
de7ab9db1c
Other household members derived ( #425 )
3 years ago
baarkerlounger
dec350e6f1
Relat data type ( #423 )
3 years ago
baarkerlounger
910f13d507
Household member validations ( #420 )
...
* Add missing ecstat validation
* Add compound validation errors to all involved fields
* Update ecstat values
* Update values in validations and tests
* Update rent rant values
* Add some helper methods for readability
3 years ago
kosiakkatrina
e34c910ad0
Change the remaining ethnic other conditional questions ( #417 )
3 years ago
baarkerlounger
0142d476ca
Reset all invalidated page questions ( #409 )
...
* Reset all invalidated page questions
* Spec
3 years ago
baarkerlounger
12e5d8165e
Fix hint text
3 years ago
baarkerlounger
8402ca36ab
Update content strings ( #407 )
3 years ago
kiddhustle
94ed1c6aae
CLDC-1050: re-add ethnic question
...
CLDC-1050: revert schema change
3 years ago
Paul Robert Lloyd
9b51ad13b7
Link to privacy policy page, not old PDF
3 years ago
Paul Robert Lloyd
da26cba8dd
Update URL slugs for 2021/22 questions
3 years ago
kosiakkatrina
c2c49924a3
Cldc 491 rent and charges validations (part 1) ( #388 )
...
* move age validation tests to shared validation spec
* Add brent/tshortfall validation
* update period mappings
* Add scharge validation
* update num of weeks from period mapping
* fix test
* change period mappings in test
* Add tests for floats
* change error message content
* add supported housing scharge validation
* add other landlord validations
* refactor
* refactor validation and tests
* Add supcharg validations and refactor
* add total charge calculations
* move constants
* Fix tests and add missing validation messages
3 years ago
baarkerlounger
ea6122fe99
CLDC-663: Weekly total shortfall derived variable ( #385 )
...
* Update HB value mappings
* Derive Weekly shortfall value
* Reset weekly total shortfall when not applicable
3 years ago