baarkerlounger
bbae370bda
Fix sending reset email for admins ( #313 )
...
* Fix sending reset email for admins
* Reset does not let you bypass 2FA
* Trigger SMS on admin password reset
* Update flash message for 2FA
* Update Admin Login header
* Rubocop
* 422
* Revert unused view
3 years ago
Paul Robert Lloyd
fd2ab86723
Update case log constants to match JSON form config
3 years ago
Stéphane Meny
9545122114
Replaces enum text values in export by related numbers ( #310 )
3 years ago
baarkerlounger
3b9c934279
Refactor validation specs ( #307 )
...
* Vacancy reason validations
* Rubocop
* Accessibility requirement specs
* Rename context
3 years ago
baarkerlounger
62a685336c
Set minimum password length ( #309 )
3 years ago
kosiakkatrina
2bc2df84fb
Cldc 629 household situation renewal ( #308 )
...
* Add routing for renewals
* Fix inferring postcode (it works 🤷♀️ )
* Infer remaining renewal variables
* update check answer labels
* Route to the next page if the first one is not routed to from tasklist
* Fix allocation unknown type and depends on for referrals
* add a test for and rename first_page_or_check_answers'
3 years ago
baarkerlounger
9d77a93859
Refactor validation specs ( #304 )
...
* Refactor other household member validation specs
* Remove dupes
* Tenancy type validation
* LA validations
* Benefits proportion validations
* Outstanding rent and shortfall validations
* Typo
* Net income hard validations
* First let vacancy reason validations
3 years ago
baarkerlounger
22e566e7ae
Refactor Reason for leaving last settled home validations ( #303 )
...
* Refactor other field validation
* Refactor reason for leaving last settled home validations
* Additional tests
* Remove dupe code
* Remove dupe validation
* Armed forces injured validations
* Armed forces
* Major repairs date validations
* Void date validations
3 years ago
baarkerlounger
7aff64d0a3
Ensure case log always returns a form
3 years ago
baarkerlounger
6b98cf354f
Fix page invalidation when no form set
3 years ago
baarkerlounger
49f27e6ccc
Ruby 3.1 syntax rubocop
3 years ago
baarkerlounger
ac52864a03
Start date validation ( #299 )
...
* Start date validation
* Derive collection windows from form definitions
3 years ago
baarkerlounger
ad8f99cabe
Refactor validation specs ( #297 )
...
* Unit tests
* Age validations
* Add todo
* Check all new records have correct validator
* Reasonable preference
* Pregnancy validations
* Spec
* Fix spec
3 years ago
kosiakkatrina
d77b1c3c05
Cldc 629 household situation ( #298 )
...
* Update household situation section questions #1
* fix typo
* update prevten content
* update homeless and benefitcap questions
* Add location questions to houshold situation
* Update reasonable preference and letting allocation questions
* Update depends on for postcode and referral
* fix content for non renewal household situation questions
* fix test
* update inferred conditions
* remove eval
3 years ago
baarkerlounger
3dff81393e
Fix tenancy validations ( #296 )
...
* Add compound tenancy validations to both fields
* Don't validate tenancy length if not answered yet
* Name subject
3 years ago
baarkerlounger
3d203649b0
Don't validate bedroom number if not answered yet ( #295 )
3 years ago
baarkerlounger
3912f920cc
Default charge values to 0 ( #294 )
3 years ago
kiddhustle
11f708d601
CLDC-835: support hint on radio/checkbox questions
...
amend JSON to support hint
CLDC-835: fix check your answers page and fixtures
CLDC-835: fix lint errors
CLDC-835: fix test
3 years ago
baarkerlounger
c1ddf5d033
Remove checkbox parent fields ( #292 )
...
* Remove checkbox parent fields
* Also remove reasonable preference reason
* Update spec fixture
3 years ago
Stéphane Meny
55a29832a3
Case logs export ( #288 )
3 years ago
kosiakkatrina
f0f5070135
Renewal inferred variables ( #285 )
...
* Infer layear if it is a renewal
* Infer underoccupation_benefitcap if it is a renewal
* Infer homelessness if it is a renewal
3 years ago
baarkerlounger
8418e79426
CLDC-961: Model data versioning ( #277 )
...
* Replace Discard with Paper Trail
* Track who created or changed records via UI
* Track model updates by AdminUsers
3 years ago
kosiakkatrina
4fe1731705
CLDC-966-optional-setup-fields ( #282 )
...
* Add tenant_code and propcode as optional fields and consider subsection completed it they are not filled in'
3 years ago
kosiakkatrina
7f4312860c
Implement exclusive checkboxes ( #281 )
...
* Implement exclusive checkboxes
* Fix validation
3 years ago
Dushan
6360c56da5
CLDC-933 update household income questions ( #273 )
...
* Change net income known question
* earnings and frequency on same page
* check answers changes and other fixes
* some fixes
* delete unnecessary test
* fix failing spec
* Refactor answer label
Co-authored-by: baarkerlounger <baarkerlounger@users.noreply.github.com>
* test and lint fixes
* Method args
* Fix specs
* Rubocop
* Incfreq doesn't have it's own check answers display
* Add suffix to actual form
* JSON linting
* Conditional suffix only applies to check answers
* Validate that earnings and incfreq must be provided together
* Rubocop
* Fix spec
* Fix page view specs
* form fixes
* update error messages
Co-authored-by: baarkerlounger <baarkerlounger@users.noreply.github.com>
Co-authored-by: baarkerlounger <db@slothlife.xyz>
3 years ago
kosiakkatrina
512c5fdad2
Cldc 972 submitting lettings log ( #279 )
...
* add validation for declaration on log submission
* Only present next incomplete section link if such section exists
3 years ago
Stéphane Meny
0541edb99c
User imports ( #276 )
...
* Data import refactor
* Complete user import and corrects enums
3 years ago
kosiakkatrina
45a13428f0
CLDC-967: count inferred check answers answer as completed ( #268 )
...
* Count inferred check answers answer as an answered answer :)
and remove la unknown reason field
* rename the method and add a test for gdpr completed section
* remove commented code
3 years ago
baarkerlounger
07adb67e22
Add gov uk error summary if OTP code is invalid
3 years ago
baarkerlounger
cf2ac1c964
Return 422 if OTP auth is unsuccessful
3 years ago
Paul Robert Lloyd
c636884c1b
Update styles on task list page
3 years ago
Paul Robert Lloyd
eff1ca6250
Enable section descriptions and add note about privacy notice
3 years ago
Stéphane Meny
a41c5f2c19
Setup rake task to import organisations from S3 ( #267 )
...
Co-authored-by: Kat <katrina@madetech.com>
3 years ago
baarkerlounger
731f689cf0
2FA code required on every sign in
3 years ago
baarkerlounger
6fc2138421
2FA code is valid for 15 minutes
3 years ago
baarkerlounger
fde1838351
CLDC-768: Add 2FA for Admin Users ( #146 )
...
* Add 2FA to admin panel sign in
* Test OTP code expiry
* Validate phone number presence
* Resend view
* Autocomplete 2fa code
* Update resend text
3 years ago
baarkerlounger
cb9c767dd5
Rspec rubocop cleanup ( #266 )
...
* Devise token stubs
* Case logs controller stubs
* More devise token stubs
* And another one bites the dust
* 2 left
* All cops pass
3 years ago
Dushan
43f60b5119
CLDC-731 bypass tasklist from check answers ( #252 )
...
* add button for moving to next incomplete section
* Add extra logic for cycling sections
* fix all failures
* add test for in progress case log to declaration redirection
* fix bug with infinite recursion
* update button text to save and return to log
* use govuk_link helpers
* lint fixes
* some basic extract method refactors
* refactor tests
* lint fixes
* redirect to check answers if next subsection in progress
* fix failing spec
3 years ago
Stéphane Meny
d2bd5b8bea
Fixes storage service tests based on rubocop rules ( #265 )
3 years ago
Stéphane Meny
79d00cdc01
Add a storage service backed by the AWS S3 SDK ( #263 )
3 years ago
Stéphane Meny
95880f641a
Rubocop rspec fixes ( #264 )
3 years ago
baarkerlounger
c47a505f99
Rename renewal to match what's been sent to softwire ( #262 )
3 years ago
kosiakkatrina
810544e1cb
Cldc 946 output field ( #261 )
...
* add numeric output for rent and charges
* extract strylesheet
* rename file
3 years ago
Stéphane Meny
54db093f01
Add service to parse PaaS configuration ( #260 )
3 years ago
baarkerlounger
ec4f8b910d
Make sure localhost requests are allowed regardless of order specs are run in ( #259 )
3 years ago
Paul Robert Lloyd
291fb188d3
Remove sales related questions from lettings form
3 years ago
Paul Robert Lloyd
9285b08c66
Rename ‘About this log‘ section
3 years ago
Stéphane Meny
3b4a232c4a
Add health check ( #253 )
3 years ago
Paul Robert Lloyd
6fdec6071c
Add hint text for tenant code
3 years ago
kosiakkatrina
fb9a78a608
Correctly add and display calculated total charge ( #250 )
...
* correctly add rent and charges
* Display correct calculated total charge
3 years ago