aboutsummaryrefslogtreecommitdiffstats
path: root/t
Commit message (Collapse)AuthorAgeLines
...
* | [Open311] external status code takes precedence.Struan Donald2020-04-08-2/+77
|/ | | | | | | | Order the response templates query by external status code so if you have an update with an external status code the response template matching that is always used. Previously with the database left to determine the order it could pick a response template with a matching state rather than a matching external status.
* Merge branch 'bexley-confirm-p1-email'Matthew Somerville2020-04-07-3/+7
|\
| * [Bexley] Treat any oil spillage report as P1.Matthew Somerville2020-04-07-0/+3
| |
| * [Bexley] Use other P1 email for Confirm reports.Matthew Somerville2020-04-07-3/+4
| |
* | Tidy up verbose/debug handling of send-reports.Matthew Somerville2020-04-06-2/+3
|/ | | | | Use verbose for all log output, and debug only for overriding the should_skip check.
* Merge branch 'improve-fetch-scripts'Matthew Somerville2020-04-03-62/+2
|\
| * Combine and improve fetch-comments/reports scriptsMatthew Somerville2020-04-02-62/+2
| | | | | | | | | | Make them take start/end hour arguments, cope if only one given, optional body, and combine them together in one `fetch` script.
* | [HE] add a how did you hear about us questionStruan Donald2020-04-03-0/+54
|/
* [Buckinghamshire] Update off-road flytipping.Dave Arter2020-03-31-43/+62
| | | | | | | | | Instead of sending off-road flytipping reports to the district, now that Buckinghamshire is unitary we instead recategorise them into a new email specific “Flytipping (off-road)” category which is handled in the same way as other ex-district categories with the borough_email_addresses cobrand feature, and omitted from the dropdown by the categories_restriction cobrand method.
* [Buckinghamshire] Update for change to unitary.Martin Wright2020-03-31-7/+7
| | | | New unitary branding, and remove County from name.
* [Highways England] Error if road name searched.Struan Donald2020-03-31-0/+17
|
* [Highways England] Update report sending handling.Matthew Somerville2020-03-31-0/+12
| | | | Use normal contact email, with special override in Area 7.
* [Highways England] Cobrand styles and templatesZarino Zappia2020-03-31-0/+1
|
* [UK] improved road lookupStruan Donald2020-03-31-0/+108
| | | | | Check in road lookup DB for junctions based on place name, motorway services and the joining road.
* Refactor Script::Report into an object.Matthew Somerville2020-03-31-3/+4
|
* [Open311] Allow save/drop of row extra during sendMatthew Somerville2020-03-31-22/+50
|
* [Admin] Access staff-only categories in admin.Matthew Somerville2020-03-19-0/+3
|
* [IsleOfWight] category for front page report titleStruan Donald2020-03-16-0/+16
|
* Add Highways England junction lookupChris Mytton2020-03-12-0/+29
| | | | | | | This is taken from the sort-my-sign repo. It allows the user to search for motorways names and junction numbers, e.g. "M60, Junction 2", and then geocodes that using a SQLite database created from Highways England markerpost locations.
* Merge branch 'uk-council-no-edit-superuser'Matthew Somerville2020-03-11-1/+4
|\
| * [UK Councils] Superusers cannot be edited by staffMatthew Somerville2020-03-09-1/+4
| |
* | A number of warnfixes in tests.Matthew Somerville2020-03-09-0/+3
|/
* [UK] Use staging hosts on some staging sites.Matthew Somerville2020-03-03-1/+1
|
* Merge branch 'admin-only-categories'Matthew Somerville2020-02-27-203/+280
|\
| * Add a new "staff" contact state.Matthew Somerville2020-02-26-1/+31
| | | | | | | | | | This state will appear when reporting if you are logged in as a staff member of the relevant body, but otherwise not appear on the site.
| * Move staff report new tests to separate file (no changes).Matthew Somerville2020-02-26-203/+227
| |
| * Fix password setting in createsuperuser script.Matthew Somerville2020-02-26-0/+23
| |
* | Use ManifestTheme theme_colour for front page theme-color meta tagDave Arter2020-02-26-4/+7
| |
* | Show available cobrands in dropdown on FMSDave Arter2020-02-26-1/+4
| | | | | | | | | | | | | | For some reason switching to a Select stopped the update_model changes being applied when persisting the model, meaning the INSERT query failed because the cobrand column was null. This commit switches to a hidden input field for the cobrand which I’m not super keen on, but it does get the job done...
* | Add manifest icon management to admin formsDave Arter2020-02-26-5/+98
| |
* | Add admin UI for configuring manifest themeDave Arter2020-02-26-0/+260
| |
* | Fix error hiding user's updates with no confirmed.Matthew Somerville2020-02-26-1/+10
| | | | | | | | | | | | If a user had no confirmed updates, but did have e.g. an unconfirmed update that had mark_fixed set, you would get an error when trying to hide the user's reports/updates.
* | Fix filter_group picking if category group a list.Matthew Somerville2020-02-26-0/+3
|/
* [TfL] Allow bus stop reports outside London.Matthew Somerville2020-02-24-0/+39
| | | | | | | | | | | | | After this change, you can safely add the TfL body to other councils (namely the ones surrounding London that include TfL bus stops); clicking in those councils on other cobrands will have no change, as the TfL body will be fully ignored on a non-London council, but on the TfL cobrand it will allow it for e.g. the selection of bus stops outside London. It removes the body rather than just all its categories to prevent a "We do not have details of the other body covering this area" message appearing.
* [Peterborough] Add tests for custom Open311 behaviourChris Mytton2020-02-20-0/+79
| | | | | | Checks that the correct bits of the problem's extra fields are sent when creating the report in Open311, and that extra bits of info are sent when sending comments to Open311.
* Merge branch 'tfl-show-tlrn-to-staff'Matthew Somerville2020-02-17-0/+2
|\
| * [TfL] Include borough name in report lists.Matthew Somerville2020-02-17-0/+2
| |
* | [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
|\