natdeanlewissoftwire
58d1a742fe
feat: update validations when beds > 4
3 years ago
natdeanlewissoftwire
9d9893a6a2
tests: add hard validation tests split by needstype
3 years ago
natdeanlewissoftwire
15b569d3f3
refactor: combining duplicated logic
3 years ago
natdeanlewissoftwire
9cfcdf931d
refactor: linting
3 years ago
natdeanlewissoftwire
2a6052a45b
feat: nil protection
3 years ago
natdeanlewissoftwire
f55d6bb519
Merge branch 'main' into CLDC-1675-rent-validations
...
# Conflicts:
# app/models/validations/financial_validations.rb
# config/locales/en.yml
3 years ago
natdeanlewissoftwire
e3990eb328
feat: null coalescing and validations on changing las to one that invalidates rent in supported housing
3 years ago
natdeanlewissoftwire
2aeeeb8080
feat: add error messages on scheme_id and location_id as well as la page
3 years ago
natdeanlewissoftwire
4e7a9bd30d
feat: add error messages on scheme_id and location_id as well as la page
3 years ago
natdeanlewissoftwire
372c1ae28b
feat: add error messages on property postcode page as well as la page
3 years ago
natdeanlewissoftwire
8ac98f9f1b
feat: ensure case when beds > 4 is accounted for
3 years ago
natdeanlewissoftwire
d7dab9644e
feat: remove redundant fields ( #958 )
...
* feat: remove redundant fields
* feat: hide behaviour behind feature toggle
3 years ago
natdeanlewissoftwire
69206a9db8
feat: add local authorities enum to location.rb
3 years ago
natdeanlewissoftwire
7edaf098c0
feat: fix general needs validation behaviour
3 years ago
natdeanlewissoftwire
31b94f3642
feat: ensure there is a location_code in all locations and use this (and beds = 0) for supported housing rent validations
3 years ago
Jack S
38f1cada5d
[CLDC-1659] Create managing agents ( #956 )
...
* Add managing agent
* tidy up specs
* Address comments
* linter
3 years ago
natdeanlewissoftwire
b45b98108a
Cldc 1662 add housing provider ( #954 )
...
* wip
* Rename managing_agents column
* add managing relationship
* f
* feat: add my features branched off managing agents branch
* feat: update nav behaviour
* feat: simplify housing_providers view
* feat: fix pluralise to default to plural rather than singular
* feat: remove managing agent related code so can be merged directly
* tests: update tests and add new ones for housing_providers
* refactor: rubocop conciliation
* tests: fix failing navigation tests
* tests: one more plural test
* refactor: erb linting
* refactor: erb linting
* feat: right-align "Remove" text
* feat: update nokogiri to pass bundler-audit
* feat: grey out search button
* feat: remove section-break
* feat: add housing provider page with details and button
* feat: tidy up routing
* feat: add wip housing provider behaviour without functioning search
* feat: wip add housing provider functionality hard coded to add FooBar LTD as provider to DLUHC
* feat: remove redundant code
* feat: add data passing behaviour without accessible autocomplete
* feat: use accessible autocomplete (not working)
* feat: use accessible autocomplete (now working)
* feat: wip commit error messages
* feat: add banner always
* feat: add conditional banner behaviour, back link and update logs titles
* feat: add search icon to accessible autocomplete, make hint text aligned correctly
* feat: use pluck not all
* tests: add initial test
* feat: refactor create logic
* feat: add sub org title
* feat: add correct no housing providers text
* feat: add correct no housing providers text
* tests: add tests for add housing provider page
* feat: remove unnecessary line from controller
* fet: simplify controller args
* fet: update schema
* feat: update schema
* feat: remove create_managing_agent
* test: add support user tests
* test: add create_housing_provider tests
* refactor: rubocop autocorrect
* refactor: erblinting
* test: fix tests
* refactor: erblinting
* feat: don't use !important tag
Co-authored-by: Jack S <jacopo.scotti@softwire.com>
3 years ago
natdeanlewissoftwire
e5452b145c
feat: update logs link ( #955 )
3 years ago
David May-Miller
47551f8276
CLDC-1577 Added page asking for local authority in sales log ( #953 )
3 years ago
James Rose
13762991c4
Fix navigation item path
3 years ago
natdeanlewissoftwire
b83c6c0b27
Cldc 1675 rent validations ( #946 )
...
* feat: add 2022 rent range data, update rake task for population of this
* feat: change file format so ranges_rent_id is recognised
* feat: add updated error messages and casing
* tests: make tests pass
3 years ago
natdeanlewissoftwire
d218bfea4f
feat: remove overriding answer_selected? function ( #941 )
3 years ago
Jack S
c710d642cc
[CLDC-1659] new managing agent page ( #948 )
...
* Add managing agents page
* Rubocop fixes
3 years ago
natdeanlewissoftwire
4aede34cf0
Cldc 1661 housing providers branch ( #950 )
...
* wip
* Rename managing_agents column
* add managing relationship
* f
* feat: add my features branched off managing agents branch
* feat: update nav behaviour
* feat: simplify housing_providers view
* feat: fix pluralise to default to plural rather than singular
* feat: remove managing agent related code so can be merged directly
* tests: update tests and add new ones for housing_providers
* refactor: rubocop conciliation
* tests: fix failing navigation tests
* tests: one more plural test
* refactor: erb linting
* refactor: erb linting
* feat: right-align "Remove" text
* feat: update nokogiri to pass bundler-audit
* feat: grey out search button
* feat: remove section-break
Co-authored-by: Jack S <jacopo.scotti@softwire.com>
3 years ago
Jack S
75206fdde9
[CLDC-1679] Add relationshop type to org relationship ( #947 )
3 years ago
natdeanlewissoftwire
34fc80149a
tests: make tests pass
3 years ago
natdeanlewissoftwire
4f57f5869c
feat: add updated error messages and casing
3 years ago
natdeanlewissoftwire
4669ad1f8e
feat: change file format so ranges_rent_id is recognised
3 years ago
natdeanlewissoftwire
ebe979c9f6
feat: add 2022 rent range data, update rake task for population of this
3 years ago
Jack S
fd85f2a19e
[CLDC-1512] Add buyer1 income ( #940 )
...
* Add tests for household wheelchair
* [CLDC-1512] Add buyer 1 income
* Add guidance to question
3 years ago
Sam
57de10622a
CLDC-1505 Buyer 1 working situation must be an adult ( #945 )
3 years ago
natdeanlewissoftwire
67435e9fa6
Cldc 1529 add more ages ( #943 )
...
* feat: add person2_age
* feat: add person2_age
* feat: add all 4 additional people ages
* tests: add tests and make old tests pass
3 years ago
natdeanlewissoftwire
d7f650a283
feat: add validation for voiddate and mrcdate when startdate changed … ( #942 )
...
* feat: add validation for voiddate and mrcdate when startdate changed after these have been added later
* test: add tests for new validations
* refactor: remove unnecessary parens
3 years ago
natdeanlewissoftwire
27f3046c4f
feat: update linking behaviour ( #938 )
...
* feat: update linking behaviour
* feat: update linking behaviour for jointpur
* refactor: improve spacing
3 years ago
natdeanlewissoftwire
72dfcbf8db
Cldc 1529 person 1 age ( #939 )
...
* feat: add person 1 age question
* feat: add new tests and fix old tests
* feat: linting
3 years ago
Ted-U
c52a30ae0c
[CLDC-1467] add type of building question to sales ( #911 )
...
* add type of building question to sales
* update check answer label
* fix tests
* [CLDC-1467] Use correct page ID
Co-authored-by: Jack S <jacopo.scotti@softwire.com>
3 years ago
Jack S
f2716ef0c1
[CLDC-1502] Add household wheelchair question ( #935 )
3 years ago
natdeanlewissoftwire
333dbfe5bb
Cldc 1522 buyer 2 relationship ( #936 )
...
* feat: add buyer 2-1 relationship question and page (migration and schema to come in next commit)
* feat: add buyer 2-1 migration and schema
* feat: update schema
* feat: add depends_on and tests
* feat: add hint text
* tests: add new tests
* refactor: lint appeasing
* test: update no. of pages
* feat: remove text input for Other option
* feat: update schema
3 years ago
natdeanlewissoftwire
8dc808a7db
Cldc 1527 others in property ( #934 )
...
* feat: add functionality and make tests pass
* tests: add new tests
* refactor: appease linting
* feat: update schema
* feat: update test
3 years ago
Sam
c34f922d76
CLDC-1505 Buyer 1 working situation ( #932 )
...
* CLDC-1505 Buyer 1 working situation
* Update sales log factory
3 years ago
James Rose
a136a70139
Check that we have an inferred check answers value before extracting its value ( #933 )
...
It's possible that this method returns true despite not having an `inferred_check_answers_value` set. This is an obvious smell that we will return to fix.
3 years ago
natdeanlewissoftwire
9a0629004d
Cldc 1574 privacy notice ( #931 )
...
* feat: core functionality
* feat: update schema.rb
* feat: add link for privacy notice, refactor to separate tenant/buyer
* feat: make privacy notices open in new tab
* test: make previous tests pass
* test: add new tests
3 years ago
kosiakkatrina
b22c6c961a
Cldc 1503 lead nationality ( #909 )
...
* Add nationality and other nationality questions
* Add nationality page
* Add national columns
* Add hidden_in_check_answers
* Update conditional question controller to work with both log types
* update tests
* lint
* Remove console.log
* tests and migration
* typo
* tests
* tests
* feat: update schema and tests
* Add nationality and other nationality questions
* Add nationality page
* Add national columns
* Add hidden_in_check_answers
* Update conditional question controller to work with both log types
* update tests
* lint
* Remove console.log
* tests and migration
* typo
* tests
* feat: update schema and tests
* tests: update tests
* feat: update schema.rb
Co-authored-by: natdeanlewissoftwire <nat.dean-lewis@softwire.com>
3 years ago
natdeanlewissoftwire
3ef5408451
Cldc 1525 buyer2 working situation ( #930 )
...
* feat: add functionality
* tests: make tests pass
* tests: add new tests
* feat: update schema
* tests: update tests
* feat: fix order of pages
* feat: fix order of pages
3 years ago
natdeanlewissoftwire
23c086d5da
Cldc 1525 buyer2 working situation ( #929 )
...
* feat: add functionality
* tests: make tests pass
* tests: add new tests
* feat: update schema
* tests: update tests
3 years ago
natdeanlewissoftwire
83e1469b4f
Cldc 1526 buyer 2 live in ( #928 )
...
* feat: add functionality
* tests: make existing tests pass
* tests: add new tests
3 years ago
natdeanlewissoftwire
0981ce7c4a
Cldc 1480 buyer interview ( #927 )
...
* feat: add functionality
* test: make old tests pass
* test: add new tests
* [CLDC-1524] Add buyer 2 gender question (#926 )
* changes for buyer 2 gender
* Rubocop
Co-authored-by: Jack S <jacopo.scotti@softwire.com>
* feat: add updated schema post rebase
* refactor: remove blank line
* test: update tests
Co-authored-by: Dushan <47317567+dushan-madetech@users.noreply.github.com>
Co-authored-by: Jack S <jacopo.scotti@softwire.com>
3 years ago
Dushan
04c2e7b638
[CLDC-1524] Add buyer 2 gender question ( #926 )
...
* changes for buyer 2 gender
* Rubocop
Co-authored-by: Jack S <jacopo.scotti@softwire.com>
3 years ago
Jack S
43b9c44c00
[CLDC-1486] Add ethnic group and background questions ( #922 )
...
* Add derived variables to sales log
* Add ethnic background question
* Add inferred question response
* Test inferred check questions of lettings logs
3 years ago
Jack S
a765213178
Format JSON files to improve readability ( #923 )
3 years ago