aboutsummaryrefslogtreecommitdiffstats
path: root/web
Commit message (Collapse)AuthorAgeLines
* [UK] Fix client side HE category display.Matthew Somerville2020-03-31-18/+45
| | | | | The server is now returning HE categories for us near a HE road, so display/hide them as appropriate.
* [Highways England] Only accept reports on area 7 roadsChris Mytton2020-03-31-2/+13
| | | | [HE] Deal with only_body same way TfL does.
* [Highways England] Cobrand styles and templatesZarino Zappia2020-03-31-0/+468
|
* [UK] Store HE data if present/available.Matthew Somerville2020-03-31-0/+14
|
* [fixmystreet.com] Survey bannerZarino Zappia2020-03-24-0/+125
| | | | | | | | | | | | | | Big purple survey banner, which is hidden by default, and shown on 40% of pageloads, by JavaScript. Works on both the static pages, and the map pages. Clicking the CTA button, or the close icon, hides the banner and sets a cookie so that the banner isn’t shown again on that device. Banner is always hidden during the mobile reporting flow. Fixes #2928.
* [Lincolnshire] Include roads at zoomed out levels.Matthew Somerville2020-03-13-0/+1
|
* [Lincolnshire] increase NSG layer nearest radiusStruan Donald2020-03-12-0/+1
| | | | To reduce the number of reports that are arriving without a site code
* Merge remote-tracking branch ↵Matthew Somerville2020-03-03-37/+28
|\ | | | | | | 'origin/issues/commercial/1659-bromley-shortlist-css-bug'
| * [Bromley] Reduce specificity of button stylingZarino Zappia2020-03-02-32/+7
| | | | | | | | | | | | | | Brings Bromley more in line with how other cobrands do their button styling, and also fixes mysociety/fixmystreet-commercial#1659 (where Bromley’s high-specificity input styles were causing the shortlist "star" input to display as a regular button).
| * Better background and border handling in button-variant() Sass mixinZarino Zappia2020-03-02-5/+21
| | | | | | | | | | | | | | | | | | | | A couple of small fixes to tidy the output of button-variant() and make it easier to style up flat, borderless buttons. * If $bg-top and $bg-bottom are identical, no linear-gradient() will be generated. Same goes for $hover-bg-top and $hover-bg-bottom. * If $border or $hover-border are `false`, then it’s assumed you don’t want a border, and `border: none` will be generated.
* | Merge branch 'staging-js'Matthew Somerville2020-03-03-18/+8
|\ \
| * | [UK] Use staging hosts on some staging sites.Matthew Somerville2020-03-03-16/+6
| | |
| * | Add map staging flag for client side to use.Matthew Somerville2020-03-03-1/+1
| | |
| * | [Bexley] Use live tilma for trees.Matthew Somerville2020-03-03-1/+1
| |/
* / [FixaMinGata] Removes old video for the front pageJoe Siltberg2020-03-03-0/+0
|/
* Add manifest icon management to admin formsDave Arter2020-02-26-1/+11
|
* [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] 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.
* 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/+54
|\ \
| * | [TfL] Show red route layer to staff on report pageMatthew Somerville2020-02-17-0/+20
| | |
| * | [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/+4
| | |
* | | [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.
* | | [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] config files for WMS mapsStruan Donald2020-02-17-0/+38
| | |
* | | base files for displaying WMS mapsStruan Donald2020-02-17-3/+1605
| | | | | | | | | | | | | | | 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-8/+0
| | | | | | | | | | | | 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.
* | Vendor in idb-keyval.Matthew Somerville2020-02-14-0/+1
| | | | | | | | Easier working with CSP headers.
* | [fixmystreet.com] Improve front page hint contrastMatthew Somerville2020-02-14-0/+4
|/
* Catch POST in service worker, not by rewriting button.Matthew Somerville2020-02-14-23/+0
|
* Replace localStorage with indexedDB.Matthew Somerville2020-02-14-125/+143
|
* Use Web API cache to save offline pages.Matthew Somerville2020-02-14-66/+39
|
* Remove appcache (breaking showing reports from localStorage cache).Matthew Somerville2020-02-14-45/+26
|
* Initial service worker.Matthew Somerville2020-02-14-3/+4
| | | | | | | | | | | | 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/+0
| | | | | 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/+5
|\
| * Allow anonymous reporting on per-category basis.Matthew Somerville2020-02-13-0/+5
| |
* | [UK Councils] Factor footer JS templates together.Matthew Somerville2020-02-13-3/+3
| |
* | Reveal report form heading when making a private reportDave Arter2020-02-12-1/+1
| | | | | | | | | | | | jQuery.show doesn’t override the `visibility: hidden` applied to the .hidden-js class, so we remove this class on the form heading at the same time as showing it.
* | [BANES] Limit categories to adopted highways layerGraeme Porteous2020-02-11-3/+12
|/ | | | | | | | | | | | Restrict the following categories to 'Adopted Highways' layer: 'Blocked drain surface' 'Blocked drain' 'Damaged Railing, manhole, or drain cover' 'Damaged bollard or post' 'Damaged road sign' 'Damaged street nameplate' 'Faded road markings' 'Flooding of a road or pavement'
* [TfL] Include borough flytipping categories on red routesDave Arter2020-02-07-1/+0
| | | | | | | | | | | On the TfL cobrand, this treats the 'Flytipping (TfL)' category the same as the existing 'General Litter' and redirects users to fixmystreet.com. On fixmystreet.com, borough flytipping categories are included in those available on red routes. For https://github.com/mysociety/fixmystreet-freshdesk/issues/120