aboutsummaryrefslogtreecommitdiffstats
path: root/web
Commit message (Collapse)AuthorAgeLines
* [Oxfordshire] add asset layersStruan Donald2020-08-10-9/+153
| | | | Trees, street lights, traffic lights, grit bins and gullies
* Handle multipart inspector form in service worker.Struan Donald2020-08-06-3/+55
| | | | | | This manually reconstructs the POST as there is no support for formData in safari, plus our storage mechanism does not handle formData as it's not a simple object.
* Add photo upload field to inspector formChris Mytton2020-08-06-8/+11
| | | | | This adds the code for photo uploads from the regular update form to the inspector form, and adds details to the documentation.
* Make sure disabled inputs greyed out.Matthew Somerville2020-07-31-0/+3
|
* [Zurich] Remove unused filter-row.Matthew Somerville2020-07-31-16/+0
|
* Include textarea in alert email form copy.Matthew Somerville2020-07-29-1/+1
| | | | The recaptcha used by fixmystreet.com uses a textarea.
* Merge branch '3110-deep-linking-category-group'Matthew Somerville2020-07-16-7/+19
|\
| * Make correct selection from single filter choice.Matthew Somerville2020-07-16-7/+19
| | | | | | | | | | | | | | | | If a single filter item, that was in multiple groups, was selected, then the entry in the last group was being selected in the category dropdown when starting a new report. Make sure we check for a match in the group first, the same behaviour as when there is an existing category.
* | Default to aerial map in JS if aerial given in URL.Matthew Somerville2020-07-16-0/+4
| |
* | Add aerial option to OSM maps.Matthew Somerville2020-07-16-0/+7
|/
* Remove use of jQuery toggle().Matthew Somerville2020-07-14-2/+10
|
* Make aerial/roads translatable in JavaScript.Matthew Somerville2020-07-14-7/+2
|
* Merge branch 'issues/commercial/1870-aerial-maps'Matthew Somerville2020-07-13-31/+79
|\
| * Add aerial view toggle to Bing Maps & subclasses.Struan Donald2020-07-10-8/+54
| | | | | | | | | | Co-authored-by: Dave Arter <davea@mysociety.org> Co-authored-by: Matthew Somerville <matthew@mysociety.org>
| * Use up-to-date Bing map URLs.Matthew Somerville2020-07-10-20/+20
| |
| * [Bromley] Tidy up tilma URL bits.Matthew Somerville2020-07-10-4/+6
| |
* | [Peterborough,TfL] Remove unneeded CSS.Matthew Somerville2020-07-10-19/+2
|/
* [UK] Show data from StreetManager.Matthew Somerville2020-07-09-0/+97
|
* Fix duplicate message after dismissing suggestionsMatthew Somerville2020-07-06-2/+6
| | | | | | | | If we create one category_meta_message for each category, removing when not relevant, then duplicat suggestion showing leads to duplicate messages because the layer is still relevant, just not visible, and so the old layer message is not removed. Instead, repurpose the ID of any existing category_meta_message, so there is only ever one in existence.
* [Buckinghamshire] Default unknown types to street light.Matthew Somerville2020-07-06-1/+1
|
* [Hackney] Add staff sign-in link to login formsDave Arter2020-07-02-1/+6
|
* [Hackney] Add initial asset layers & configStruan Donald2020-07-02-0/+246
|
* [Hackney] Initial cobrand design & privacy policy amendmentMartin Wright2020-07-02-0/+405
| | | | | | Co-Authored-By: Struan Donald <struan@exo.org.uk> For https://github.com/mysociety/fixmystreet-commercial/issues/1808
* [Alloy] asset layers for Alloy V2Struan Donald2020-07-02-13/+80
| | | | | Mostly inherits from original Alloy code, with addition of a new format as Alloy no longer returns a native geoJSON collection.
* [Northamptonshire] Factor out code to add multiple Alloy asset layersDave Arter2020-07-02-20/+23
|
* Fix photo orientation in modern browsers.Matthew Somerville2020-07-01-40/+314
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | We use Dropzone (the photo upload library) to shrink photos client-side before uploading in the background and display thumbnails. For the resized upload, Dropzone restores the original Exif data, including orientation, so it can be correctly oriented server-side; for a thumbnail, it orients the image itself for immediate display. Recently, browsers have started honouring Exif orientation much more widely (Chrome 81+ and Firefox 77+ both now do it by default). This means the data Dropzone gets from a resize has already been oriented according to the Exif orientation data. Then Dropzone either looks at the orientation to correct for display (thumbnail), or adds back the Exif orientation data (upload) – in both cases, this leads to a double implementation of the orientation, and an incorrect display. To fix this, if we detect we are on a modern browser, we do not try and fix orientation ourself [1], and in all cases we do not add any Exif data back in (we only strip it server-side anyway). Conversely, that means on a non-modern browser, we always perform a manual orientation because no Exif data will be being sent server-side. Also includes a fix to the orientation code [2] which wouldn't be noticed in thumbnail generation as they are square, but could be now we may be orienting full size photos. [1] https://gitlab.com/meno/dropzone/-/merge_requests/80 [2] https://gitlab.com/meno/dropzone/-/merge_requests/45
* Include file extensions in Dropzone acceptedFiles.Matthew Somerville2020-07-01-1/+1
| | | | In my Firefox on Windows, .jpeg files are not otherwise shown.
* [East Sussex] Tidy up named select actions.Matthew Somerville2020-06-16-35/+30
|
* [UK Councils] Config matches default.Matthew Somerville2020-06-16-5/+1
| | | | | With the refactor to make sure asset message always uses the default, no need for these specific config lines any more.
* Small refactor of asset message display.Matthew Somerville2020-06-16-39/+45
| | | | | Wherever asset_item_message is checked/used, make sure it does the text replacement and falls back to the default.
* [Buckinghamshire] Spot lights e.g. ending with "A"Matthew Somerville2020-06-16-1/+1
|
* Add lazy image loading on list items.Matthew Somerville2020-06-15-0/+216
|
* Merge branch 'issues/freshdesk-470-bexley-redesign'Matthew Somerville2020-06-12-6/+47
|\
| * [Bexley] Redesign.Martin Wright2020-06-11-6/+47
| | | | | | | | Make sure spans in navbar are legible at all times.
* | [TfL] Add new Streetspace category, TLRN-only.Matthew Somerville2020-06-11-0/+1
|/
* Add --coverage option to browser-tests.Matthew Somerville2020-05-19-2/+0
| | | | You need to install the @cypress/code-coverage package alongside cypress.
* Merge remote-tracking branch ↵Matthew Somerville2020-05-15-234/+121
|\ | | | | | | 'origin/issues/commercial/1835-geolocation-button-styling'
| * Sass variables for customising links in #front-mainZarino Zappia2020-05-15-60/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The colour and text decoration of links inside `#front-main` can now be customised via `$primary_link_*` Sass variables. Text decoration is set in _base.scss (like global link text decoration) while colour is handled in _layout.scss (which is where `#front-main` is given its background colour, so likely also the time you’ll want to set a contrasting colour for links inside it). The colour variables are set to `null` by default, meaning that no colour or rules for those links will be compiled, enabling the links to inherit the global link colour style, which previously wasn’t possible. The decoration variables are set to `underline` by default, because most cobrands set their #front-main links to be the same colour as the surrounding text, so adding an underline is a sensible default. You can disable the underlines by setting `$primary_link_decoration: none` in your cobrand’s _colours.scss file, as cheshireeast and oxfordshire do. Fixes #3007.
| * Simplify #geolocate_link stylingZarino Zappia2020-05-15-218/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Much less opinionated styling for #geolocate_link in core, which means the link should look better, by default, for most cobrands. (In particular, the link looks much better on cobrands with the more modern style of white / off-white #front-main background, such as highwaysengland, which was the cobrand that started off this work to begin with.) I’ve also reduced the specificity of the #geolocate_link rulesets in both core and all the cobrands. While this commit means that fewer cobrands need to override styles on #geolocate_link, there are still 8 cobrands that have to define a custom text colour for their #geolocate_link, because they both: A) have a light coloured background for #front-main, and B) want their #geolocate_link to be coloured like a normal link, rather than inheriting the text colour of the parent element. We might want to revisit this handling of #geolocate_link colouring and the `#front-main a { color: inherit }` rule in _layout.scss at some point in the future. Fixes mysociety/fixmystreet-commercial#1835.
* | reset asset select message by id when asset unselectedStruan Donald2020-05-15-1/+13
|/ | | | | | | | | | Resetting using the class could cause an incorrect "you can pick an $item from the map" message to be display when asset_groups were being used. This was happening when the unselect event was firing after the category change event and then updating the new message using the message from the unselected layer. Fixes mysociety/fixmystreet-commercial#1888
* [Peterborough] Show lighting layer on ‘Lighting enquiry’ category in all ↵Dave Arter2020-05-14-1/+4
| | | | groups
* Make year in map copyright notices dynamicChris Mytton2020-05-12-3/+4
|
* [Peterborough] Add street lights asset layer.Matthew Somerville2020-05-12-0/+54
| | | | Enforce asset selection, except for light-not-on-map category.
* [UK] Factor all labelled select code together.Matthew Somerville2020-05-12-123/+59
|
* Disable rename on unprotected Open311 categories.Matthew Somerville2020-05-11-0/+15
| | | | | | If you rename an Open311 category when it is not protected, it will only get reinstated/deleted by the Open311 populate script shortly after, and can cause issues due to the problem category renaming that occurs.
* [Buckinghamshire] Stop hiding staging banner.Matthew Somerville2020-05-07-4/+0
|
* [TfL] Add new pavement overcrowding categoryDave Arter2020-05-07-0/+1
| | | | | | TLRN-only. For https://github.com/mysociety/fixmystreet-commercial/issues/1883
* [Peterborough] Add COVID-19 bannerDave Arter2020-05-05-1/+12
| | | | For https://github.com/mysociety/fixmystreet-commercial/issues/1880
* Remove unnecessary margin-right on #postcodeFormZarino Zappia2020-05-04-1/+0
| | | | | Not sure why this margin was even here. Appears to have been present since the original FMS redesign in 2012.
* Revert "[fixmystreet.com] Survey banner"Martin Wright2020-04-30-125/+0
| | | | This reverts commit 724dde2244262d9a51ba55203a9f63c6e6a345f8.