aboutsummaryrefslogtreecommitdiffstats
path: root/t/app
Commit message (Collapse)AuthorAgeLines
...
* Add test for update name in HTML part of email.Matthew Somerville2018-04-04-3/+2
|
* limit problem body to single body if requiredStruan Donald2018-04-03-2/+23
| | | | | | Add a single_body_only form value to reports that contains the name of the only body to send the problem to. If the name doesn't match any of the valid bodies for the report then send to all.
* test for multiple bodies for one contactStruan Donald2018-04-03-0/+108
| | | | | test to check creating a new report for a category for which there are multiple bodies
* fix timezone problems with offline inspector commentsStruan Donald2018-03-29-1/+5
| | | | | | | Comments added offline by an inspector set the time in JavaScript using a UTC epoch. We need to add the FMS timezone to this so it's in the timezone the database expects for timestamps otherwise it's incorrect when we fetch it back out
* Don’t show empty ‘provide extra detail’ sectionDave Arter2018-03-29-0/+46
| | | | | | Hides the empty “Help <council> resolve your problem quicker” section of the new report form if report metas for the selected category are all hidden fields.
* Add external_status_code to ResponseTemplate admin editing formsDave Arter2018-03-29-0/+51
|
* Store server_set automated, but ignore for input.Matthew Somerville2018-03-21-14/+73
| | | | | We do need to store them, so that the sending knows which fields are being requested, but we do not want them output to the client at all.
* [fixmystreet.com] Add admin page to list refused.Matthew Somerville2018-03-21-0/+26
|
* Store contributed-as data.Matthew Somerville2018-03-20-1/+30
| | | | | Store if the report/update was created by someone using the contributed-as dropdown, and use that information to perhaps not send report-sent emails.
* Merge branch '2023-bad-open311-dates'Matthew Somerville2018-03-16-0/+13
|\
| * Truncate dates in Open311 output to the second.Matthew Somerville2018-03-15-0/+13
| | | | | | | | This fixes #2023 by removing the comma.
* | Fix JSON-encoding crash on /report/ajaxDave Arter2018-03-15-0/+6
| |
* | Display ‘pick an option’ placeholder for report extra dropdownsDave Arter2018-03-14-2/+3
| |
* | Merge branch 'issues/commercial/987-zurich-csv-updates'Matthew Somerville2018-03-14-100/+0
|\ \
| * | [Zurich] Switch to more modern database states.Matthew Somerville2018-03-07-100/+0
| |/ | | | | | | | | | | | | The Zurich code was written a long time ago, and used overriding so that e.g. the hard-coded 'investigating' state referred to Wunsch (wish). Now that states are stored in the database, we can create ones specially for Zurich and use them instead. Hooray!
* / [Warwickshire] Add archive script data.Matthew Somerville2018-03-14-5/+11
|/ | | | Add an update with each report closure.
* Fix post-edit issues on admin report edit page.Matthew Somerville2018-03-02-0/+4
| | | | | If you rotated a photo, updates and the category list weren't loaded. If you changed a report's state, the map pin colour was derived from the old state.
* Add development email previewer.Matthew Somerville2018-03-01-0/+33
|
* Merge branch '1939-questionnaire-links'Matthew Somerville2018-02-19-6/+106
|\
| * Store questionnaire data as soon as opened.Matthew Somerville2018-02-16-0/+17
| | | | | | | | | | | | This means the questionnaire is considered 'answered' as soon as a (HTML) link is clicked, which I think is okay. Then filling in the questionnaire form will update the same questionnaire.
| * Show any ‘steady-state’ questionnaire response.Matthew Somerville2018-02-16-4/+12
| |
| * Link update made during questionnaire to it.Matthew Somerville2018-02-16-4/+21
| | | | | | | | | | This means we don't show separate 'Still open' messages when an update was also left at the same time.
| * Prefill first question from questionnaire email.Matthew Somerville2018-02-16-2/+2
| |
| * Add some /photo and questionnaire update tests.Matthew Somerville2018-02-16-3/+61
| |
* | Allow inspectors to see/change non_public reports.Matthew Somerville2018-02-09-3/+39
|/
* Allow updates to be left as another user with phone numberDave Arter2018-02-07-7/+66
|
* Don’t require SMS_AUTHENTICATION to view/edit user email/phone_verifiedDave Arter2018-02-07-0/+14
| | | | | | | Previously this would force phone_verified to false for all user edits, as well as forcing email_verified to true - which would be the wrong thing to do if the user had been created/verified via the ‘report as another user’ flow.
* Allow ‘report as another user’ to only provide a phone numberDave Arter2018-02-07-2/+65
|
* Merge branch '2fa-superuser'Matthew Somerville2018-02-07-10/+83
|\
| * Allow two-factor to work during creation flow.Matthew Somerville2018-02-07-4/+30
| |
| * Add two-factor authentication for superusers.Matthew Somerville2018-02-07-6/+53
| |
* | Merge branch '1944-admin-remove-account'Matthew Somerville2018-02-07-6/+28
|\ \
| * | Admin ability to remove user account details.Matthew Somerville2018-02-06-0/+16
| | |
| * | Add admin ability to log user out.Matthew Somerville2018-02-06-6/+12
| |/
* | Merge branch 'password-tests'Matthew Somerville2018-02-06-2/+39
|\ \
| * | Add length/common password checking.Matthew Somerville2018-02-06-2/+39
| |/
* | Upgrade Number::Phone.Matthew Somerville2018-02-05-3/+3
| | | | | | | | | | This brings in my new format_for_country function which allows for nicer display of phone numbers to people.
* | Ask for current pw/send email on password change.Matthew Somerville2018-02-01-2/+61
|/ | | | | If they have a current password, ask for it; if they don't, send a confirmation email.
* Merge branch '1942-admin-anonymize'Matthew Somerville2018-01-31-1669/+1937
|\
| * Split up admin test file into many separate files.Matthew Somerville2018-01-31-1694/+1937
| |
| * Admin ability to hide a user's reports/updates.Matthew Somerville2018-01-31-1/+14
| |
| * Admin ability to make user anonymous.Matthew Somerville2018-01-31-0/+12
| |
* | Remove SameSite=Lax from cookies.Matthew Somerville2018-01-23-9/+0
| |
* | Merge branch 'issues/commercial/988-c6-email-address-link'Matthew Somerville2018-01-18-52/+8
|\ \ | |/ |/|
| * [Zurich] Allow publishing of individual photos.Matthew Somerville2018-01-18-52/+8
| | | | | | | | | | When more than one photo has been uploaded, allow each one to be published/not independently.
* | Fix error sending `requires_inspection` reports.Matthew Somerville2018-01-16-3/+0
| | | | | | | | | | has_permission_to() is called in Reports.pm and requires the cobrand to be set on the schema. The test was manually doing this which hid the problem.
* | Remove unused (except by tests) send_reports() fn.Matthew Somerville2018-01-15-12/+13
|/
* Merge branch 'add-samesite-lax-cookie'Matthew Somerville2018-01-05-0/+9
|\
| * Include "SameSite=Lax" with all set cookies.Matthew Somerville2018-01-04-0/+9
| | | | | | | | | | This prevents FixMyStreet cookies from being sent from third-party <img>s and the like, in supporting browsers.
* | Fix bug specifying category in URL on /around.Matthew Somerville2018-01-04-5/+16
|/ | | | The list of existing categories wasn't being checked correctly.