aboutsummaryrefslogtreecommitdiffstats
path: root/t/app
Commit message (Collapse)AuthorAgeLines
* Exclude update alerts from summary alert counts.Matthew Somerville2016-02-09-2/+2
| | | | | | There might be the odd update alert we are interested in (those not auto-signed up for as part of report or update creation), but they will be rare.
* Merge branch '1315-open311-update-media_url'Matthew Somerville2016-01-29-10/+10
|\
| * Move test mocks to their own directory.Matthew Somerville2016-01-27-10/+10
| |
* | If app user logged in, perform alert signup.Matthew Somerville2016-01-27-0/+38
|/ | | | Thanks to @jonkri for spotting.
* Merge branch '1146-social-login'Matthew Somerville2016-01-27-16/+143
|\ | | | | | | | | | | Conflicts: templates/web/base/report/new/fill_in_details_form.html templates/web/base/report/update-form.html
| * Add tests of social login.Matthew Somerville2016-01-22-0/+143
| |
| * Remove unnecessary shebang lines.Matthew Somerville2016-01-22-16/+0
| |
* | Improve some error pages.Matthew Somerville2016-01-26-1/+1
|/ | | | | Use design of auth/token in generic error, 404, and token server error pages, and use the same error for too old/ token not found errors.
* Add ability to have multiple update photos.Matthew Somerville2016-01-12-32/+92
| | | | Also adds admin ability to rotate update photos.
* Factor multiple photo details into nicer function.Matthew Somerville2016-01-12-2/+9
| | | | | Remove get_photo_params, which only looked at the first photo, make explicit when we're doing that using `.first`.
* Handle multiple photo rotation/removal in admin.Matthew Somerville2016-01-08-1/+2
|
* Fix bug showing reports on Your Reports.Matthew Somerville2015-12-17-1/+6
| | | | | 92dfeac used an incorrect user column name in the new lookup, and there was no test to catch the regression.
* Add multiple photo upload support.Zarino Zappia2015-12-16-35/+78
| | | | | | | | | | Three file inputs, progressively enhanced with dropzone. This moves the photo input higher up, so that photos can upload while you're filling out the form. It standardises and improves photo error handling. [fixmystreet.com] Guidance for what photos should and shouldn’t include.
* Remove risk of infinite loop in PhotoSet.Matthew Somerville2015-12-16-2/+2
| | | | | | Use a separate attribute for data direct from a database row when creating a PhotoSet, so that data will always contain one or more photo IDs.
* Secret always created as part of test run setup.Matthew Somerville2015-12-15-8/+0
|
* Switch template plugin for nice numbers.Matthew Somerville2015-12-09-1/+18
| | | | | Template::Plugin::Number::Format works internationally, whilst Template::Plugin::Comma does not.
* Move main bin scripts to separate packages.Matthew Somerville2015-12-02-3/+1
| | | | Maintain old location wrappers.
* Remove many uses of mySociety::Config.Matthew Somerville2015-12-02-4/+4
|
* Reduce use of FixMyStreet::App.Matthew Somerville2015-12-02-69/+72
| | | | Command line scripts don't need a full blown app, just database.
* Add generic static route handler.Matthew Somerville2015-10-29-0/+9
| | | | | This puts all static pages under /about, and lets you add new static pages by placing new HTML in your about template directory.
* [Zurich] Update de_CH .po fileHakim Cassimally2015-10-06-3/+1
|
* [Zurich] Override MAP_TYPE in tests where appropriateDave Arter2015-10-06-0/+3
|
* [Zurich] Updated email templatesMatthew Somerville2015-10-06-1/+3
| | | | | | | - submit-external-wish.txt includes a link with report's coordinates, template values are interpolated Conflicts: perllib/FixMyStreet/SendReport/Zurich.pm
* [Zurich] admin workflow changes available statesHakim Cassimally2015-10-06-62/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | See mysociety/FixMyStreet-Commercial#690 - external_message for Extern/Wunsch states - as per PDF mockups, the "public response" field is now editable from more states, namely: - Ruckmeldung ausstehend - Extern - Zustandigkeit unbekannt - Wunsch - Nicht kontaktierbar - Unsichtbar - test fixes NB: slight hack to reorder Zurich report_display tests As these remove 'investigating' from hidden_states, these break tests for default cobrand (the FMS::App code expects to be called once on request start, not multiple times within one test) - Not contactable button and tests for this and the similar `send_back` functionality (previously untested). NB: Unsure why we need to specify form_number=2 just for these submits, but test won't find the buttons otherwise. - Make sure SDMs' "time_spent" figure is recorded. (See mysociety/FixMyStreet-Commercial#718)
* Add "time spent" admin logging.Hakim Cassimally2015-10-06-1/+1
| | | | | | | | | | | | | | | | | | | | | Mechanism is general, but current implementation only used for Zurich. - Zurich: Record time_spent field mysociety/FixMyStreet-Commercial#676 - template changes (including jQuery spinner) - backend changes to save data are made: - in log_edit, if supplied - and time on category change (and arbitrary actions) - Add update_admin_log to all paths for DM, ensuring that it gets called, while resetting the `time_spent` parameter, to make sure that there is never a duplicate record created. - Also quell warning about using DateTime values in query. - Also add (seemingly unrelated) parens to stop misparsing of OK line in questionnaire test now that DT::Format::Pg is used in Zurich cobrand See mysociety/FixMyStreet-Commercial#676
* Allow attachment of emails in email_sendHakim Cassimally2015-10-06-9/+120
| | | | Required by Zurich for mysociety/FixMyStreet-Commercial#675
* Add support for multiple photos per report.Hakim Cassimally2015-10-06-8/+160
| | | | | | | | For Zurich, see mysociety/FixMyStreet-Commercial#664. This commit includes a new PhotoSet class (NB: called Model:: though not really a model), should handle binary data (e.g. old style photos in database), fileids (40-char hash), and Catalyst::Upload objects.
* Exclude deleted categories from the all reports page filtersSteven Day2015-10-01-0/+23
|
* Merge remote-tracking branch 'origin/blank-questionnaire-text'Matthew Somerville2015-09-28-0/+10
|\
| * Process update left as part of questionnaire.Matthew Somerville2015-09-28-0/+10
| | | | | | | | | | | | | | Treat an update left during a questionnaire the same as one left on a report page, ie. pass it through cleanup_text. This will also make sure updates left that are wholly whitespace are errored, or replaced with the default text.
* | Send altered confirmation email if not being sent.Matthew Somerville2015-09-28-1/+10
|/ | | | Fixes #1210.
* Merge branch '557-email-confirmation-pages'Matthew Somerville2015-09-17-8/+8
|\
| * Conciser text on the email confirmation pages.Zarino Zappia2015-09-17-8/+8
| | | | | | | | | | It’s best if Zurich keeps the old text, so now they have their own overrides for those template files.
* | Show report details more clearly on questionnaire pageZarino Zappia2015-09-17-1/+1
|/ | | | Fixes #1104.
* Mock MapIt postcode call to fix broken tests.Matthew Somerville2015-09-15-16/+23
| | | | SW1A 1AA has moved, who'd have thought.
* Use base URL in cobrand alert for no-body report.Matthew Somerville2015-09-03-2/+5
| | | | | | If a cobrand has a body restriction, then a report without any body won't be shown on it, so we need to make sure links to the report (in email alerts and RSS) are to the base URL, not the cobrand.
* Move "missing" handling to separate column.Matthew Somerville2015-08-19-1/+3
|
* Remove ms_current_timestamp() override function.Matthew Somerville2015-08-13-81/+25
| | | | | This override is not used anywhere, it dates from a very old long-gone test script, and causes issues with database query planning.
* Merge branch 'issues/#805-name-check-cobrand'Matthew Somerville2015-07-31-24/+0
|\
| * Move Latin-char-specific name check to cobrand.Matthew Somerville2015-07-31-24/+0
| | | | | | | | | | Also move some UK-specific code in the same function. The specific code is still tested in report_new.t.
* | Mark users who have moderate permission.Matthew Somerville2015-07-30-1/+1
| |
* | Add mark as sent button to admin.Matthew Somerville2015-07-30-1/+1
|/
* [fixmystreet.com] Unresponsive bodies page/warningMatthew Somerville2015-07-28-2/+100
| | | | | | | | | Add a special category email address used to show an unresponsive message and page when trying to report in that category. Add a "Refused" send method for setting a whole body to be unresponsive and show the message immediately, not on category selection. Factor out category template, and put at top where needed.
* Alter token logging in and timeout behaviour.Matthew Somerville2015-07-10-4/+6
| | | | | | | Restrict email_sign_in token to one day, unused confirmation tokens to one month. Used tokens will redirect to the created thing but not log in; don't log in with alert links (unsubscribe link never expires, reply link will still show "reopen" tickbox).
* Rename map filtering GET param, remove unnecessary querySteven Day2015-06-29-2/+2
|
* Add some tests for the category & status filtering on /ajaxSteven Day2015-06-29-0/+39
|
* Add hidden_states and updating functions.Hakim Cassimally2015-06-16-0/+17
| | | | To allow visible/hidden states to be manipulated at runtime.
* Use mocked Nominatim to deal with bad connections.Matthew Somerville2015-05-13-2/+8
|
* Add Extra role to ease use of {extra} field.Hakim Cassimally2015-03-20-3/+151
| | | | | | | | | Historically, the extra field has been used in two different ways by different cobrands, both as a list (e.g. Open311 category fields) and a hash (e.g. the Zurich cobrand). This commit consolidates usage, adding an API to make use of the field easier and always returning a hash for the code to use. Fixes #1018.
* [fixmystreet.com] Remove special NI code.Matthew Somerville2015-03-16-7/+12
| | | | | This is now handled by normal bodies in the admin. In order to remove references in send_reports, tidy up (unused) EmptyHomes code a bit.