aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Fix error hiding user's updates with no confirmed.Matthew Somerville2020-02-26-1/+12
| | | | | | 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-1/+4
|
* [Buckinghamshire] Ignore TfL as a district.Matthew Somerville2020-02-26-1/+1
|
* [TfL] Restrict all reports areas to London.Matthew Somerville2020-02-24-1/+18
|
* [TfL] Allow bus stop reports outside London.Matthew Somerville2020-02-24-8/+334
| | | | | | | | | | | | | 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] Switch to live tilma for tree assetsChris Mytton2020-02-20-2/+2
|
* [Peterborough] Ensure trees and tree groups share the same configChris Mytton2020-02-20-19/+16
| | | | | | | | | | | | This fixes a bug where the new tree plantings group was requiring a tree group to be selected, which isn't the desired behaviour. The bug was caused by the group layer not having the same `relevant` function as the points layers. This adds the shared bits into a shared config that the assets both use. Also hide the asset item message for request to plant a new tree category.
* [Peterborough] Force users to select assets for treesChris Mytton2020-02-20-2/+23
| | | | | We always want a tree code for tree reports, so add the code needed to make the asset selection step mandatory.
* [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.
* Add --group flag to add_emergency_message scriptChris Mytton2020-02-20-0/+5
| | | | | | | | This allows you to restrict the message to a certain group of categories. This is so we can add a "is this problem on private land" message to the categories in the "Trees" group for Peterborough.
* [Peterborough] Disable pin snapping for new tree requestsChris Mytton2020-02-20-2/+26
| | | | | | | | | | | | | | | | | We don't want to plant trees where there are already trees, so we add a separate layer for new tree requests, and disable pin snapping for that layer. This adds a new option for layers named "relevant". If provided it will be called with an options object, allowing you to check ".category" and ".group" and return a boolean for whether you want to display the layer based on the passed options. Note: You still need to provide an "asset_group" option even if you use the "relevant" option as this is used elsewhere. The "regular" tree-points layer uses this to exclude just the new trees subcategory from being displayed.
* [Peterborough] Add tree layersChris Mytton2020-02-20-0/+32
| | | | Two layers, one for tree points, the other for tree groups.
* [Peterborough] Don't send private_land info to open311Chris Mytton2020-02-20-1/+2
| | | | | | This field is shown in the FMS interface, but doesn't need to be sent to open311, it's just to check that the user isn't reporting problems on private land.
* [Peterborough] Include service code in open311 updatesChris Mytton2020-02-20-0/+3
| | | | | This is needed to route reports correctly when using the "Multi" backend.
* [Peterborough] Add FMS ID when sending update to open311Chris Mytton2020-02-20-0/+3
| | | | | We need the FMS ID so we can send it through to ezytreev, as that matches updates to existing reports using the FMS ID.
* Merge branch 'fix-assets-disappearing-at-max-zoom'Matthew Somerville2020-02-20-14/+4
|\
| * Fix assets disappearing at maximum zoomChris Mytton2020-02-14-14/+4
| | | | | | | | | | | | | | Rather than setting a min_resolution on all of the cobrands just set a default in web/cobrands/fixmystreet/assets.js. This means that assets will appear at all zoom levels, which seems like what we want to happen most of the time.
* | [Northamptonshire] config for live PROW layersStruan Donald2020-02-17-5/+5
| |
* | Merge branch 'tfl-show-tlrn-to-staff'Matthew Somerville2020-02-17-0/+79
|\ \
| * | [TfL] Show red route layer to staff on report pageMatthew Somerville2020-02-17-0/+27
| | |
| * | [TfL] Show red routes on all reports page.Matthew Somerville2020-02-17-0/+30
| | |
| * | [TfL] Include borough name in report lists.Matthew Somerville2020-02-17-0/+22
| | |
* | | [Northamptonshire] de-duplicate road assets when adding to layerStruan Donald2020-02-17-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | If a line asset spans two tiles it seems like it's included in both tiles which means you end up with it added to a layer twice. This means you get two overlaid identical assets which, when combined with low opacity colours produces inconsistent colours. This uses the `fid` to check for duplicates on adding.
* | | Allow road asset layers to specify an alternative classStruan Donald2020-02-17-4/+4
| | | | | | | | | | | | | | | If the options to either road or asset layer include a `class` attribute then use the Layer class there, otherwise the defaults.
* | | “Fix” WMTS inches_per_unit figure.Matthew Somerville2020-02-17-1/+1
| | | | | | | | | | | | All servers connected to are using 39.37.
* | | Add WM* missing compass parameters.Matthew Somerville2020-02-17-0/+12
| | |
* | | [Northamptonshire] colour PROW assets by typeStruan Donald2020-02-17-3/+52
| | |
* | | [Northamptonshire] update alloy asset code for WMSStruan Donald2020-02-17-1/+3
| | | | | | | | | | | | | | | | | | Hard code the resolution as it only ever used the one value which isn't the same in the 27700 based map. This is to avoid pulling in asset groups.
* | | [Northamptonshire] switch to using custom map tilesStruan Donald2020-02-17-1/+2
| | | | | | | | | | | | Use Northamptonshire map tiles via WMS.
* | | [Northamptonshire] config files for WMS mapsStruan Donald2020-02-17-0/+123
| | |
* | | base files for displaying WMS mapsStruan Donald2020-02-17-178/+2037
| | | | | | | | | | | | | | | Basic config and setup files for using WMS based map tiles. These still require config in appropriate cobrand perl and javascript files
* | | Fix WMTS map display.Matthew Somerville2020-02-17-38/+16
| | | | | | | | | | | | Non-JS clicking does not work if map tiles are scaled.
* | | add EPSG:3857 -> EPSG:27700 transformsStruan Donald2020-02-17-0/+4
|/ / | | | | | | | | | | We already had these but labeled as EPSG:900913 which is the same as 3857. However, we tend to use 3857 as not all map servers recognise 900913.
* | [fixmystreet.com] Remove double escape of website badge.Matthew Somerville2020-02-17-2/+2
| |
* | Vendor in idb-keyval.Matthew Somerville2020-02-14-2/+3
| | | | | | | | Easier working with CSP headers.
* | [fixmystreet.com] Expand Pro link text.Matthew Somerville2020-02-14-2/+2
| |
* | [fixmystreet.com] Improve front page hint contrastMatthew Somerville2020-02-14-0/+4
|/
* Merge branch 'pwa'Matthew Somerville2020-02-14-297/+519
|\
| * Catch POST in service worker, not by rewriting button.Matthew Somerville2020-02-14-25/+36
| |
| * Replace localStorage with indexedDB.Matthew Somerville2020-02-14-125/+144
| |
| * Use Web API cache to save offline pages.Matthew Somerville2020-02-14-67/+48
| |
| * Remove appcache (breaking showing reports from localStorage cache).Matthew Somerville2020-02-14-137/+31
| |
| * Initial service worker.Matthew Somerville2020-02-14-4/+108
| | | | | | | | | | | | | | | | | | | | | | | | 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-3/+111
| | | | | | | | | | Reads information from a theme object if present, and icons from a theme directory, with fallbacks.
| * Add ManifestTheme model for customising web manifestDave Arter2020-02-14-0/+105
| |
* | Fix lookup; App not available when run from scriptMatthew Somerville2020-02-14-1/+1
|/ | | | Not caught by test because App is loaded in tests.
* Merge branch 'allow-anon-on-some-categories'Matthew Somerville2020-02-14-4/+76
|\
| * Allow anonymous reporting on per-category basis.Matthew Somerville2020-02-13-4/+65
| |
| * Show report anonymously button non-JS when needed.Matthew Somerville2020-02-13-0/+9
| |
| * [Westminster] Remove unused form from HTML.Matthew Somerville2020-02-12-0/+2
| |