aboutsummaryrefslogtreecommitdiffstats
path: root/web
Commit message (Collapse)AuthorAgeLines
...
* | Improve inline checkbox spacing.Matthew Somerville2019-03-04-16/+1
|/ | | | | | | | | | | Reduce the space between checkbox and label, so the text isn't lost if the page is zoomed in. Fixes #2411. Replace the creator_fixed question with segmented control to match the full questionnaire, and the admin verified checkboxes with inline-text as they need no padding. Having done that, all uses of .inline are now on their own lines, so no post-padding is needed any longer, but we’ll leave some in case of future use.
* Increase vertical spacing of front page example.Matthew Somerville2019-03-01-2/+4
|
* [Oxfordshire] Limit appears to be lower than 30.Matthew Somerville2019-02-28-1/+1
|
* [Bromley] Initial heatmap page.Matthew Somerville2019-02-28-1/+377
|
* [Bromley] Fix colour contrast on active segmented controlZarino Zappia2019-02-28-2/+6
|
* [UK] Add mapzoom to roadworks parameters.Matthew Somerville2019-02-26-0/+1
|
* Merge remote-tracking branch 'origin/issues/commercial/1229-duplicate-reporting'Matthew Somerville2019-02-25-104/+391
|\
| * Duplicate suggestion UI when reporting problems.Zarino Zappia2019-02-25-89/+278
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previously staff-only fixmystreet.set_up.manage_duplicates() has been promoted from staff.js to its own file so that we can use it to display the duplicate suggestions on the `/report/new` form. render_duplicate_list (the old refresh_duplicate_list) no longer filters or slices the reports_list returned by the ajax call, since it turns out the server handles all of that (`sub _nearby_json` in `Report.pm` and `sub nearby` in `Nearby.pm`). Since the expandable list items include the "fancybox" image previews, the fancybox CSS now has to be included in the `/report/new` page head, hence the addition of "photo-js.html" in `fill_in_details.html`. The “Get updates” flow reuses the same JavaScript that handles the submission of the "Get updates" drawer at the bottom of around pages.
| * Remove --reports from .item-list--reports__item classes in Inspector UIZarino Zappia2019-02-25-7/+4
| | | | | | | | | | There’s no need for this `--reports` to be there, so let’s start phasing it out.
| * Expandable list item componentZarino Zappia2019-02-25-1/+98
| | | | | | | | | | | | | | | | | | | | `_item_expandable.html` is an alternative to regular list items, where you can display extra information on the first click on the item, and then also, optionally, offer a further action, as a separate button. Right now the expandable list items aren’t used anywhere, but we’ll soon be using them in the duplicate report suggestion UI for council staff and the public.
| * Add space below "map page" contents on narrow screensZarino Zappia2019-02-25-13/+17
| | | | | | | | | | Moving the 4em padding from _layout.scss to _base.scss helps separate the content on /report/<id> and /report/new pages from the nav below.
* | [Buckinghamshire] Tidy up asset attributes.Matthew Somerville2019-02-25-24/+1
|/
* [FixaMinGata] Changes to a site logo in svg.Joe Siltberg2019-02-21-4/+125
| | | | Makes sure the logo looks nice on devices with high resolution.
* Fix server-side WFS property filteringDave Arter2019-02-19-5/+9
| | | | | | | | The previous approach of filtering features that match one of many values worked client side for e.g. GeoJSON format WFS layers, but crashed when attemping to build the XML request for server-side feature filtering (e.g. Bristol). This code instead builds a proper Logical filter which OpenLayers can use in both situations.
* [Bristol] Use new WFS server for street lights.Dave Arter2019-02-19-13/+77
|
* Merge branch '2397-show-old-url-fix'Matthew Somerville2019-02-18-2/+1
|\
| * Add parameter to URL when “Show older” clicked.Matthew Somerville2019-02-14-2/+1
| | | | | | | | | | The behaviour should be the same whether “Show older” or “Show older reports” is clicked, but only the latter was updating the URL.
* | Merge branch 'issues/commercial/1270-user-areas'Matthew Somerville2019-02-15-1/+1
|\ \ | |/ |/|
| * Allow user to be associated with multiple areas.Matthew Somerville2019-02-14-1/+1
| | | | | | | | | | | | Update database to store an array of IDs rather than only one; consequential changes to the admin and the dashboard to allow selection.
* | Fix typo in d4c2211cf.Matthew Somerville2019-02-13-1/+1
|/
* [Oxfordshire] Limit appears to be lower than 70.Matthew Somerville2019-02-08-1/+1
|
* Improve use of OL ArgParser/missing zoom in URL.Matthew Somerville2019-02-04-16/+24
| | | | | | Remove the server-side zoom-in-url fix, instead use an ArgParser subclass to default to the provided data if nothing in URL. Then we can switch to using short lat/lon in geocoder URLs.
* Update URL whenever map moves, using replaceState.Dave Arter2019-02-04-16/+51
| | | | | | Fixes #2242. Co-authored-by: Matthew Somerville <matthew@mysociety.org>
* Make sure dropdown index numbers are updated too.Matthew Somerville2019-02-04-1/+1
|
* Make staff JavaScript more self-contained.Matthew Somerville2019-01-29-17/+25
| | | | So it can run even when fixmystreet.js is not loaded.
* Guard against a possible null history.state.Matthew Somerville2019-01-29-1/+1
| | | | | Sometimes IE11 appears to have one, some interaction with appcache iframe? Not sure, but not worth tracking it down.
* Set inline JavaScript variables directly.Matthew Somerville2019-01-29-7/+3
|
* Fix saving of inspect form data offline.Matthew Somerville2019-01-29-2/+3
|
* Stop redirecting on moderation error.Matthew Somerville2019-01-25-0/+1
| | | | This will also be used by the moderation conflict code.
* Merge branch 'bucks-flytipping-question'Matthew Somerville2019-01-23-1/+27
|\
| * [Buckinghamshire] Question for on-road flytipping.Matthew Somerville2019-01-23-1/+27
| | | | | | | | | | | | | | | | This adds a question to check whether a flytipping report concerns flytipping on a road or not. Client-side, it is asked when a road is selected and destination adjusted according to the answer; server side it uses the answer to direct any both-tier submissions (from e.g. non-JavaScript or phone app).
* | Bugfix display of next-steps.Matthew Somerville2019-01-22-8/+2
|/ | | | | Missing a "&" in base selector, so wasn’t being applied, and use flex directly on layout rather than floating.
* [Buckinghamshire] Show guidance message for gritting routesDave Arter2019-01-17-0/+35
| | | | | | | | | If a report is started on a road in the WinterRoutes asset layer in the "Snow and ice problem/winter salting" category, an extra guidance message is shown beneath the category UI with a link to the council's gritting schedule. Fixes mysociety/fixmystreet-freshdesk#25.
* [Oxfordshire] length checking for names, emails and phone NosStruan Donald2019-01-16-0/+10
| | | | | | | Add in validation to check names, email and phone numbers don't exceed maximum lengths permitted by HIAMS. Fixes mysociety/fixmystreet-commercial#1244
* Switch .description_tips to use flexbox.Matthew Somerville2019-01-11-4/+2
|
* Compare assets on their ID field, not JS object.Matthew Somerville2019-01-04-4/+14
| | | | | | | | | | As the selected feature is a clone (so it survives e.g. layer reloading from server after a pan), we need to compare the asset ID field instead to see if we already have a match, to prevent a double select(). This also fixes a bug where an auto-selected asset would, after picking a different asset, reshow the selected pin image onmouseout, due to the way OL was storing old hover state internally.
* Put find_matching_feature on the layer object.Matthew Somerville2019-01-04-24/+29
|
* Merge branch '1072-reason-for-reporting'Matthew Somerville2018-12-19-0/+20
|\
| * Make who question more prominent.Matthew Somerville2018-12-19-0/+20
| |
* | [Buckinghamshire] add more asset layers layersStruan Donald2018-12-19-1/+101
| | | | | | | | | | | | | | | | | | Add layers for: * Road crossings * Belisha Beacons * Gullies * Street signs * Bollards
* | [Buckinghamshire] allow different feature code attributesStruan Donald2018-12-19-31/+46
| | | | | | | | | | | | | | Not all the layers use the same attribute for the feature code so add and use a config option to set this, and extract out the style map settings so we can change them to use the correct attribute for the label.
* | [Buckinghamshire] change sidebar label depending on asset typeStruan Donald2018-12-19-16/+38
|/ | | | | | | use the asset code to determine what sort of type the asset is for displaying the 'you have selected $type $code' message. Also, pull this out into a new set of defaults so we can apply it across multiple asset types.
* Make sure map state stored if filters used first.Matthew Somerville2018-12-14-2/+3
|
* Increase clickable area for "Back to all reports" linkZarino Zappia2018-12-13-2/+2
|
* Modernise report "status" bannerZarino Zappia2018-12-13-201/+46
| | | | | | | | | | | | | * Simplify markup required for the status banner. * Simplify styles - the banner is now identical on all screen sizes. * Move the banner from `report/display.html` into `report/_main.html` so that it can appear after `.problem-back` in the source order. * Use real pin icon instead of `pin-flat-white-small.png`. * Set a default `$col_fixed_label` colour in `_base.scss`, so cobrands don’t have to define it themselves if they’re happy with green. * Introduce `$col_fixed_label_light`, with a sensible default for all cobrands, even ones that have a custom `$col_fixed_label`. * Remove `$col_fixed_label_dark` – no longer needed.
* Merge branch '2346-unescape-titles'Matthew Somerville2018-12-13-1/+13
|\
| * Don’t escape entities in report titles via ajax.Matthew Somerville2018-12-12-1/+13
| |
* | Merge branch 'bucks-roads-message-tweak'Matthew Somerville2018-12-13-1/+18
|\ \ | |/ |/|
| * [Buckinghamshire] Nicer not-our-road messages.Matthew Somerville2018-12-11-1/+18
| |
* | [UK Councils] Fix undefined body_validation_rules.Matthew Somerville2018-12-11-25/+22
|/ | | | The core validation_rules.js is not included on e.g. the front page.