* Different versions of details_html
* One version of details_html
* Replace you didnt answer with link
* Fix lint
* Update some tests
* Update some tests
* Add question marks to yes no questions - test
* Improve formatting helper
* Improve formatting helper
* Improve prompt message
* Revert "Add question marks to yes no questions - test"
This reverts commit 40bee289
* Rename question method
* Add check answer prompt method to question model and translation key
* Add translation key to soft validations
* Lettings custom prompts
* Update to handle new helpdesk ticket logic
* Update copy
* Update copy
* Update method names
* Add check answer prompt to soft validations
* Change copy
* Do not put error objects into cookies
* Hide change link for inferred or derived values not yet answered
* Revert "Hide change link for inferred or derived values not yet answered"
This reverts commit ec1fd1c9aa.
* Update lettings related check answer prompts
* Update some sales related check answer prompts
* Update some sales related check answer prompts
* Bug fix
* More sales prompts
* Replace text for bulk upload
* Update uprn known test with specific error message already used
* Translation file to CSV
* Revert "Translation file to CSV"
This reverts commit 0565fea717.
* Add a red link to show questions that still must be answered (after bulk upload)
* Lint
* Update feature tests
* Update component tests
* Update helper tests
* Update requests tests
* Update request test
* Refactor improvements
* Refactor improvements 0.2
* Lint
* Stay consistent with date question message
* Rename variable
* Add tests
* Improvements
* Refactor details table helper
* Remove action link not just hide
* Revert "Remove action link not just hide"
This reverts commit 59ecac5cf3.
* Users - remove action link
* Organisations - remove action link
* Merge requests - remove action link
* Revert "Refactor details table helper"
This reverts commit b74fd830f1.
* Schemes - remove action link
* Location - remove action link
* Logs - remove action link
* Lint
* Refactor V2 details table helper
* Allow respond_to? to see private methods
* Remove .presence duplication of logic
* Change "Answer if" to "Tell us if"
* Add missing CAP
* Update age questions sales and lettings
* Update postcode and la questions
* Update wording
* Updates and improvements
* Another update
* Fix bug
* typo
* typo
* update relat to buyer/lead prompts
* Update test
* Additional copy
* Additional copy
* Update copy "housing-related" to "housing related"
---------
Co-authored-by: Kat <54268893+kosiakkatrina@users.noreply.github.com>
* write helper method to support having the correct rent period checkboxes checked
* update new and create in organisations controller and view to enable creation of relevant organisation rent periods
write tests for this
* small changes to models
* enable editing rent period in the UI
display change button on org details page
display rent periods question on edit page
* enable updating org rent periods
update logic in #update
related tests
* alter redirect after support user creates an organisation
* adjust various UI elements: ordering of rows, copy changes, label size and associated tests
* rework the #rent_period_labels method to return All under the correct conditions, rework tests related to that. + fix assorted tests that were either flakey or breaking due to addition of rent periods logic to create and update
* amend failing tests and resolve linting complaints
* changes following review
* disable checkboxes for rent periods if they are in use so that users are not able to make existing logs invalid
hint text added to the question to explain this
I have also added all rent periods to a hidden field to remove the need to fetch them again form the db in the update method
* update validation to reflect the fact that an org having no associated rent periods no longer means they accept all rent periods
update tests adding both cases and removing unnecessary additional db additions
* rake task to create rent period associations for orgs that have none
* revert mistaken copy changes in designs
* create rent periods in factories as default, with an option to skip. skip automatic creation in tests specifically related to rent periods
* stub api call for factory value, update csv tests and fixtures accordingly
* extract a good chunk of tests out of lettings_log_spec and into a dedicated derived fields spec file. in many cases refactor tests
* remove before(:context) and associated patterns.
use assign_attributes in various places for cleaner code
* escape . in regex for API call stubs to satisfy codeQL
remove destroy_all call at the start of a test that was dealing with leftover modesl in the test db
* further refactoring of various tests to reduce database interactions and improve speed
* remove outdated distinction between unitletas mappings from before 23/24
* remove tests that seem to be testing active record and/or ruby Date class
* write helper method to support having the correct rent period checkboxes checked
* update new and create in organisations controller and view to enable creation of relevant organisation rent periods
write tests for this
* small changes to models
* enable editing rent period in the UI
display change button on org details page
display rent periods question on edit page
* enable updating org rent periods
update logic in #update
related tests
* alter redirect after support user creates an organisation
* adjust various UI elements: ordering of rows, copy changes, label size and associated tests
* rework the #rent_period_labels method to return All under the correct conditions, rework tests related to that. + fix assorted tests that were either flakey or breaking due to addition of rent periods logic to create and update
* amend failing tests and resolve linting complaints
* changes following review
* disable checkboxes for rent periods if they are in use so that users are not able to make existing logs invalid
hint text added to the question to explain this
I have also added all rent periods to a hidden field to remove the need to fetch them again form the db in the update method
* update validation to reflect the fact that an org having no associated rent periods no longer means they accept all rent periods
update tests adding both cases and removing unnecessary additional db additions
* rake task to create rent period associations for orgs that have none
* revert mistaken copy changes in designs
* create rent periods in factories as default, with an option to skip. skip automatic creation in tests specifically related to rent periods
* stub api call for factory value, update csv tests and fixtures accordingly
* extract a good chunk of tests out of lettings_log_spec and into a dedicated derived fields spec file. in many cases refactor tests
* remove before(:context) and associated patterns.
use assign_attributes in various places for cleaner code
* escape . in regex for API call stubs to satisfy codeQL
remove destroy_all call at the start of a test that was dealing with leftover modesl in the test db
* further refactoring of various tests to reduce database interactions and improve speed
* remove outdated distinction between unitletas mappings from before 23/24
* remove tests that seem to be testing active record and/or ruby Date class