aboutsummaryrefslogtreecommitdiffstats
path: root/web
Commit message (Collapse)AuthorAgeLines
* [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.
* [TfL] Add shelter_id asset attribute mappingDave Arter2020-04-29-0/+1
|
* [EastSussex] display information about selected assetsStruan Donald2020-04-29-3/+35
| | | | Also update list of categories for asset display
* [EastSussex] set the group to the optgroup labelStruan Donald2020-04-29-1/+11
| | | | | Some categories are in multiple groups so pass back the optgroup label so we can assign it to the correct group and category
* [EastSussex] display assets on .comStruan Donald2020-04-29-0/+97
| | | | | Add assets for drains, grit bins and street lights. Uses east sussex specific protocol and format
*-. Merge branches '2961-disable-private-tickbox', ↵Matthew Somerville2020-04-28-1/+6
|\ \ | | | | | | | | | '2962-pin-move-category-group' and 'move-admin-index-stats-to-stats-page'
| | * Maintain category group on pin move.Matthew Somerville2020-04-24-1/+4
| |/ |/| | | | | | | | | | | If the same category is in multiple groups, upon moving the pin and fetching new categories from the server it would then pick the last instance of that category in the list. Instead of using val(), pick the correct entry in the previously selected optgroup.
| * Disable staff private tickbox if category private.Matthew Somerville2020-04-24-0/+2
|/ | | | | | | If a category is marked private, new reports are always marked private regardless of the setting of the private checkbox shown to relevant staff when making a new report. So tick/disable this box in that situation to prevent any confusion.
* [UK] Fix Highways England categories on pin move.Matthew Somerville2020-04-08-26/+20
| | | | | | | | | | | | | | | | | | | | | | | If you clicked on a non-HE location (so showing non-HE categories), then moved the pin to a HE location, the HE message box would show and update categories (but there would be no HE ones at the time). The server would return the new categories (including HE ones), but as the issue location had now not changed on this second call, the categories would not update to hide non-HE ones (it would show both HE and non-HE categories). So, instead of going off a location, check the road name - if it has not changed, do not recreate the whole HE message box, but do call the right HE selected/not selected function to update the categories. Note that this, if "Somewhere else" is selected, then causes an infinite loop, because the highways_change event triggers a category_change event which fires the layer's road found function, and then repeat. The highways_change->category_change event firing, according to the code comment, is so that asset selection can take place, or to remove stopper messages being shown. Previously, HE did not have its own categories but overrode the body to be sent to; HE now does have categories of its own, so I think this code can be removed.
* [TfL] Increase stroke opacity of red routes.Matthew Somerville2020-04-08-1/+1
| | | | | In Firefox/Edge on Windows, having a translucent stroke causes a large slowdown in page painting.
* [HE] fix opengraph tagsStruan Donald2020-04-02-0/+0
| | | | | | Add title, image and also favicon Fixes mysociety/commercial-staging#1834
* [Highways England] Hide messaging if not Area 7.Matthew Somerville2020-04-02-3/+9
|
* [UK] Fix client side HE category submission.Matthew Somerville2020-04-01-7/+6
| | | | | | | | | | Once a location is fixed, we never want to regenerate the Highways England question, as that can lose the selected category. Store the location regardless of the HE question answer, so any category change, as opposed to a location change, does not do anything. We also do not want to clear category_meta, as that is where the extra data fields appear.
* [Buckinghamshire] Make sure on-road message not shown to begin with.Matthew Somerville2020-04-01-8/+12
|
* [Buckinghamshire] Allow ex-district categories to be reported off road assetsDave Arter2020-03-31-3/+32
|
* [Buckinghamshire] Update off-road flytipping.Dave Arter2020-03-31-29/+0
| | | | | | | | | 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-81/+228
| | | | New unitary branding, and remove County from name.
* Only one duplicate call in progress at once.Matthew Somerville2020-03-31-1/+12
| | | | | Without this check, it is possible for calls to overlap and end up with a situation whereby both the duplicate list and the form are hidden.
* [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.