aboutsummaryrefslogtreecommitdiffstats
path: root/web
Commit message (Collapse)AuthorAgeLines
...
* | [Buckinghamshire] Update OL to have GeoJSON and 27700 stuff.Matthew Somerville2018-04-03-1557/+699
| |
* | [Buckinghamshire] Minor refactor of assets object.Matthew Somerville2018-04-03-3/+2
| |
* | [Buckinghamshire] Store USRN in site_code fieldDave Arter2018-04-03-1/+4
| |
* | [Buckinghamshire] Display adopted highways layer on mapDave Arter2018-04-03-1/+25
| |
* | [Buckinghamshire] Factor out shared asset configDave Arter2018-04-03-24/+23
| |
* | [Buckinghamshire] Include site_code and central_asset_id from map assetsDave Arter2018-04-03-2/+4
| |
* | [Buckinghamshire] Use viewport-sized loading strategy for assetsDave Arter2018-04-03-2/+4
| |
* | [Buckinghamshire] Update asset URL/namesDave Arter2018-04-03-6/+4
| |
* | [Buckinghamshire] Send asset details/title/description as individual attributesDave Arter2018-04-03-2/+2
| |
* | [Buckinghamshire] Add grit bins/street lighting asset layersDave Arter2018-04-03-0/+1672
| |
* | [Buckinghamshire] Add initial cobrandDave Arter2018-04-03-0/+306
| |
* | Allow WFS layers to be filtered on more than one matching filter_value attributeDave Arter2018-04-03-5/+15
| | | | | | | | Requires the OpenLayers build to include Strategy.Filter.
* | Pass selected road feature to layer found handler functionDave Arter2018-04-03-3/+3
| | | | | | | | | | The handler function may want to perform differing actions based on the selected feature’s attributes.
* | enable road layers to perform actions when unselectedStruan Donald2018-04-03-0/+7
| | | | | | | | | | set a last_road value so we can run code to do things like remove ui elements if the layer is no longer active
* | let road layers define their own found/not_found actionsStruan Donald2018-04-03-10/+9
| | | | | | | | | | Default to setting or unsetting single_body_only but if there is an action defined in the layer then call that instead
* | road asset layers can restrict report bodyStruan Donald2018-04-03-2/+4
| | | | | | | | | | Allow clicking on a road asset to set the only body to send the report to.
* | avoid OPTIONS pre-flight check when fetching asset layersStruan Donald2018-04-03-0/+10
| |
* | detect if map click is on/near a road assetStruan Donald2018-04-03-0/+79
|/ | | | currently just displays a hard coded message in the map sidepanel
* [FixaMinGata] Add front page changesJon Kristensen2018-04-03-0/+0
|
* Allow cobrands to hide phone number field when making reportsDave Arter2018-03-29-1/+8
|
* change asset layer to category display map to an arrayStruan Donald2018-03-29-4/+16
| | | | | Rather than associating an asset layer with a single category use an array so we can use a layer with multiple sub-categories
* [UK] Area summary dashboards with plug for FMS ProMatthew Somerville2018-03-27-0/+111
| | | | Fixes mysociety/fixmystreet-commercial#943.
* Fix issues with new report pin, improve cursor.Matthew Somerville2018-03-26-1/+11
| | | | | | | | | | The "coerce pin ID to integer" behaviour to fix a previous issue was coercing undefined to NaN, which then caused other problems with the new report pin, such as fading out when hovered, and being the wrong size. Also improve the cursor handling, showing the grab/ grabbing cursors where available.
* Fix race condition making a new report.Matthew Somerville2018-03-26-0/+4
| | | | | | If you started a new report by clicking the map before the server had responded with the map list pins, when they did arrive they would replace the new report pin.
* [UK] Correctly show and hide experimental .big-green-bannerZarino Zappia2018-03-20-0/+3
|
*-. Merge branches '2016-uk-green-banner-click-starts-report', ↵Zarino Zappia2018-03-20-6/+111
|\ \ | | | | | | | | | '2016-uk-green-banner-position-test' and '2021-uk-homepage-intent-experiment'
| | * [UK] Dual submit buttons on homepage postcode formZarino Zappia2018-03-20-0/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Present "report" vs "browse" choice at time of postcode entry, so we can track intent, as part of a temporary experiment into what people expect to see on the fixmystreet.com/around page. Google Analytics will be able detect which button was pressed by looking for the `intent=report` or `intent=report` query string param in the resulting pageview location. We supply a *third* submit button, immediately before the other two, and hidden from visual users and assistive devices, to prevent either of the "intent" submit values being sent when the user submits the form via the Return/Enter key. Part of #2021.
| | * [UK] Refactor $body-font variable in FMS.com layout.scssZarino Zappia2018-03-20-6/+8
| | |
| * | [UK] Move big green button over map for GA Content ExperimentZarino Zappia2018-03-19-0/+24
| | | | | | | | | | | | Part of #2016.
* | | Clicking "big green banner" on /around begins a reportZarino Zappia2018-03-20-0/+8
| |/ |/| | | | | | | | | | | | | | | | | | | | | Data collected by #2001 has shown that some people are clicking the big green "Click map to report a problem" banner on fixmystreet.com/around. We assume the same is true for other cobrands. As suggested in #2016, this commit adds a click handler to that banner element, which will begin a new report at the centre of the screen. It might not be the exact right location, but the pin can be repositioned from the /report/new form, and beginning a report is better than just soaking up the click and doing nothing.
* | Fix check for visible sub map links.Matthew Somerville2018-03-19-5/+5
| | | | | | | | | | | | | | | | I don't think this check could ever have worked, because items are invisible if their parent is set to `display: none`, so it would hide the links bar if it was already hidden, and show it if it was already shown. Use a js- class for the movement of the feed item into the sub map links.
* | Fix disappearing large-width visited navigation.Matthew Somerville2018-03-19-0/+3
|/ | | | The change to base in fc172603 affected the layout display.
* [Rutland] cobrand files for RutlandStruan Donald2018-03-15-0/+65
| | | | | Web and email template changes, CSS plus cobrand file with open311 config
* Prevent override of mobile nav visited links.Matthew Somerville2018-03-14-0/+3
|
* Fix broken map when logging to /report/new with active asset layersDave Arter2018-03-14-36/+44
| | | | | | | | | | | | | The event handlers for category changing were being added too early, before fixmystreet.map had been created. For cobrands with category grouping enabled this was causing a crash in the JS because the grouping code emits a category change event during its setup (which runs between fixmystreet.assets.add and .assets.init). This commit adds the event handlers for each layer during fixmystreet.assets.init - at point at which fixmystreet.map has been set up. Also extracts the code for initing each layer into its own function for clarity.
* Preserve category extra values when form fields are reloadedDave Arter2018-03-14-0/+4
| | | | | This commit re-sets the values of any form inputs when the category extra elements are reloaded, e.g. when the category is changed.
* Merge branch 'issues/commercial/987-zurich-csv-updates'Matthew Somerville2018-03-14-8/+8
|\
| * [Zurich] Switch to more modern database states.Matthew Somerville2018-03-07-1/+1
| | | | | | | | | | | | | | The Zurich code was written a long time ago, and used overriding so that e.g. the hard-coded 'investigating' state referred to Wunsch (wish). Now that states are stored in the database, we can create ones specially for Zurich and use them instead. Hooray!
| * [Zurich] Fix display of deleted categories in admin.Matthew Somerville2018-03-07-3/+3
| |
| * [Zurich] Admin stats/CSV per category.Matthew Somerville2018-03-06-4/+4
| | | | | | | | Adapt look of default dashboard filtering.
* | Update some tight JS coupling to use events.Matthew Somerville2018-03-13-72/+72
| | | | | | | | Remove 'hooks' functions, and Split out USRN handling to its own object.
* | Minor refactor of assets object.Matthew Somerville2018-03-13-7/+8
|/
* [Zurich] Fix admin nav display on map pages.Matthew Somerville2018-03-02-21/+1
| | | | Plus remove some now-unneeded CSS.
* [Zurich] Remove unneeded 'deleted' body indicator.Matthew Somerville2018-03-02-0/+4
|
* [UK] Properly align Dashboard bar chart value labelsZarino Zappia2018-03-01-2/+3
|
* [UK] Linebreak long Y-axis labels on Dashboard bar chartZarino Zappia2018-03-01-5/+24
| | | | | | | | | Y-axis labels in the Dashboard ranking tables now break onto multiple lines if they are more than 4 words long. /web/vendor/chart.min.js showing as modified because we updated it to include a recent fix to label alignment on vertical scales: https://github.com/mysociety/Chart.js/commit/4130c31
* Increase size of sub map linksZarino Zappia2018-03-01-10/+10
| | | | | | | | The tiny buttons could prove hard to trigger, especially on touchscreen devices, and with large screens now more commonplace, there’s no reason not to give them a few more pixels. One of a number of enhancements suggested in #1462.
* Preserve category selection when using group UIDave Arter2018-02-22-3/+6
| | | | | | | | | | | | | When using grouped categories on the new report form, the selected category was being lost when dragging the pin or clicking elsewhere on the map. This was causing the asset layers to be hidden as well as the report extra input to be lost. I'd assumed that cloning an <option> element that was selected and adding it to the parent <select> would set the value of that <select> correctly, but that doesn't seem to be the case. Instead, this commit explicitly sets the <select>'s value after appending a selected <option> element.
* Allow invalid MapServer6 GML to be parsedDave Arter2018-02-22-0/+21
|
* Populate `usrn` field with USRN of clicked asset, if availableDave Arter2018-02-22-16/+105
| | | | | | | | | | | | | | | | | | | | | | | | Some cobrands require reports to include the USRN of the clicked road. This commit allows an asset layer to be added and designated as a 'USRN provider' by setting its `usrn_field` property when calling fixmystreet.assets.add. Initially this feature used OpenLayers' getFeatureFromEvent method, however that doesn't work if the layer isn't topmost. This is because it uses the clicked element in the DOM to determine which feature was clicked. This doesn't work if the layer you're trying to get the feature from wasn't actually the DOM element that was clicked. Instead, we add a new method, OpenLayers.Layer.Vector.getFeatureAtPoint method which takes a Point object and iterates through the features' geometries to find the matching point. To make things a little more user-friendly, if an asset isn't clicked directly we find the closest to the clicked point and use that for the USRN. To accomplish this, this commit factors out the ‘select nearest asset’ code into a new method OpenLayers.Layer.Vector.getNearestFeature, which takes a Point and a distance threshold and finds the nearest feature.