aboutsummaryrefslogtreecommitdiffstats
path: root/t
Commit message (Collapse)AuthorAgeLines
...
* | [Northamptonshire] switch to using custom map tilesStruan Donald2020-02-17-0/+1
| | | | | | | | Use Northamptonshire map tiles via WMS.
* | base files for displaying WMS mapsStruan Donald2020-02-17-1/+1
|/ | | | | Basic config and setup files for using WMS based map tiles. These still require config in appropriate cobrand perl and javascript files
* Remove appcache (breaking showing reports from localStorage cache).Matthew Somerville2020-02-14-12/+0
|
* Initial service worker.Matthew Somerville2020-02-14-0/+12
| | | | | | | | | | | | This basic service worker behaves identically to the existing appcache - some static scripts and CSS are cached, any HTML offline instead returns a static HTML page that knows how to show data on stored problems out of localStorage (stored there when /my/planned was visited online). Inspect form submissions will be captured and can be synced back when online. Once feature parity is established, we will then remove appcache, switch from using localStorage to the cache API, and hopefully move all offline support into the service worker.
* A basic web manifest starter.Matthew Somerville2020-02-14-0/+36
| | | | | Reads information from a theme object if present, and icons from a theme directory, with fallbacks.
* Merge branch 'allow-anon-on-some-categories'Matthew Somerville2020-02-14-0/+53
|\
| * Allow anonymous reporting on per-category basis.Matthew Somerville2020-02-13-0/+53
| |
* | Merge branch 'private-in-email'Matthew Somerville2020-02-14-32/+87
|\ \
| * | Reword/hide things viewing unauthed private reportMatthew Somerville2020-02-13-0/+2
| | | | | | | | | | | | | | | | | | If you've e.g. come from an email link that lets you view a private report, hide reporting/getting updates/sharing, and replace the update form with a link saying you need to sign in.
| * | Link in other-reported email shows private report.Matthew Somerville2020-02-13-32/+85
| |/ | | | | | | | | Use a token that does not log the user in, but lets the report be shown, even if it's a private report. Allow old tokens of that type to work.
* / Fix category extra AJAX call for categories with ampersandsDave Arter2020-02-12-0/+25
|/ | | | | | | | | | | | | | | | The `IF category_extras.$category.size` condition in category_extras.html was using an escaped string for `$category`, meaning the lookup would always fail for categories that had an ampersand in their name. The result of this was an empty `<div id="category_meta">`, and no extra fields shown to the user. This caused issues when one or more of the fields were required, as they were always empty and the error message wasn't being rendered and shown to the user. This meant the user would see their report form over and over again when submitting instead of useful feedback. We also ensure $category is always a SafeString when used as a key into a hashref in other templates. Fixes https://github.com/mysociety/fixmystreet-freshdesk/issues/126
* [Zürich] Fix crash on certain /report/ajax/<id> URLsDave Arter2020-02-10-0/+9
| | | | | | | | | | | | Attempting to load the /report/ajax/<id> URL for a problem that had a public response and wasn't in the ‘external’ state was causing a crash because the call to FixMyStreet::App::View::Web::add_links in updates_as_hashref was returning a FixMyStreet::Template::SafeString that the JSON module didn't know how to serialise. This commit adds a TO_JSON method to SafeString, and ensures the output of /report/ajax is JSON-encoded with convert_blessed turned on so the TO_JSON method is called.
* Merge branch 'bexley-ooh-p1-highways'Matthew Somerville2020-02-05-2/+2
|\
| * [Bexley] Highways/covers out-of-hours matching P1.Matthew Somerville2020-02-04-2/+2
| |
* | [UK] Use feature flag for send_questionnaire.Matthew Somerville2020-02-04-0/+12
|/
* Enable category groups on map filter dropdown.Dave Arter2020-01-30-1/+12
| | | | Includes an updated version of jquery-multi-select.
* Allow multiple question to disable the new report formChris Mytton2020-01-28-3/+7
| | | | | | | | | | | | | This changes the existing logic to account for the fact that multiple questions might have the disable form checkbox ticked for one of their options. At the moment this just displays one of the messages at a time, with the first one taking priority. So if you have a "Is this an emergency" question and a "Is this on private land" question which both disable the form, and the user has selected "Yes" to both, then only the message for the first question is displayed. This can potentially be improved in the future, but seemed out of scope for this change.
* Add per report OpenGraph imagesGraeme Porteous2020-01-27-0/+14
| | | | | | | | | | | | | Includes a bit of refactoring of PhotoSet::get_image_data to make it easier to call subsequent methods on the photo object. We then do this to get the width and height. Also adds width/height attributes to FixMyStreet::ImageMagick Attributes are updated every time the image is transformed and before the as_blob data, which also undefs the image, is returned so it always present for subsequent calls. Fixes #2394.
* [Bexley] Out-of-hours email for all highways.Matthew Somerville2020-01-24-2/+2
| | | | | The changes in 27fe9940 to send more P1 emails meant the out-of-hours email wasn't being correct sent when it should have been.
* Merge branch 'tfl-update-shortlist-email-cobrand'Matthew Somerville2020-01-21-9/+18
|\
| * [TfL] Always use TfL branding on shortlist email.Matthew Somerville2020-01-21-9/+18
| | | | | | | | It was using the branding/URL of the site the update was left on.
* | [SortMySign] Tweaks needed for tests.Matthew Somerville2020-01-21-1/+2
|/
* [open311] always update problem state if no commentsStruan Donald2020-01-20-0/+34
| | | | | | | To avoid issues with autogenerated updates in the bodies back-end happening quicker that the back-end returns the external_id to us ignore the check for comment being earlier than the last update if it's the first comment.
* Merge branch 'dashboard-optgroup'Matthew Somerville2020-01-17-3/+8
|\
| * Include category groups in dashboard filter.Matthew Somerville2020-01-16-3/+8
| |
* | [TfL] Include non-open reports in dupe suggestionsMatthew Somerville2020-01-16-0/+4
|/
* [UK] do not show unknown banner on fms pro sitesStruan Donald2020-01-13-1/+41
| | | | | In theory these are never unknown so do not display this in report banner.
* Merge branch 'tfl-no-resend'Matthew Somerville2020-01-13-0/+13
|\
| * [TfL] Hide ‘please ring’ categories in admin.Matthew Somerville2020-01-10-0/+13
| | | | | | | | | | These categories display a ‘please ring’ message and so have nowhere to be resent if selected.
* | Cope with swapped operands in template operatorsDave Arter2020-01-10-0/+6
|/ | | | | Perl may pass swapped operands to ensure the first one is always an object that implements the relevant operator.
* Merge branch 'tfl-old-reports'Matthew Somerville2020-01-10-4/+83
|\
| * [TfL] Add hook to restrict to safety reports.Matthew Somerville2020-01-09-0/+29
| |
| * [TfL] Ignore reports updated over three years ago.Matthew Somerville2020-01-09-0/+10
| |
| * [Inactive] Add option to only act on one cobrand.Matthew Somerville2020-01-09-3/+22
| |
| * [Inactive] Add option to fully delete reports.Matthew Somerville2020-01-09-0/+11
| |
| * [Inactive] Ignore already anonymized users.Matthew Somerville2020-01-09-1/+11
| |
* | Merge branch 'html-scrubber'Matthew Somerville2020-01-10-5/+5
|\ \ | |/ |/|
| * Scrub admin description fields.Matthew Somerville2020-01-09-5/+5
| |
* | [Zürich] Fix ambiguous query param when exporting admin stats CSV by monthDave Arter2020-01-09-1/+4
|/
* Merge branch 'staff-sign-up-other-user-for-alert'Matthew Somerville2020-01-09-9/+57
|\
| * Allow staff users to sign others up for alerts.Matthew Somerville2020-01-08-0/+47
| |
| * Check provided report ID for update alert signup.Matthew Somerville2020-01-08-9/+10
| | | | | | | | Remove some unused code.
* | Merge branch 'issues/commercial/1287-as-another-user-only-name'Matthew Somerville2020-01-09-9/+17
|\ \
| * | Allow report as another user with only name.Matthew Somerville2020-01-08-9/+17
| |/
* | Merge branch 'cheshire-east-maps'Matthew Somerville2020-01-09-0/+19
|\ \
| * | [Cheshire East] Use own map tiles.Matthew Somerville2020-01-08-0/+19
| |/
* | Merge remote-tracking branch 'origin/optionally-hide-staging-banner'Matthew Somerville2020-01-09-0/+18
|\ \
| * | STAGING_FLAGS option to hide the staging site bannerZarino Zappia2020-01-07-0/+18
| | | | | | | | | | | | | | | | | | | | | Allows you to hide the banner introduced in 1f43fc9. Useful when you’re making front-end changes—especially on small screens—and don’t want the banner getting in the way.
* | | Merge branch 'bexley-resend-okay'Matthew Somerville2020-01-09-3/+22
|\ \ \
| * | | [Bexley] Resend on nearly all category changes.Matthew Somerville2020-01-08-3/+22
| | |/ | |/| | | | | | | | | | The only exception is when the category change is between two categories in the same Symology database, in which case we do not want to resend.