aboutsummaryrefslogtreecommitdiffstats
path: root/web
Commit message (Collapse)AuthorAgeLines
* [Buckinghamshire] Disable report creation entirely on non-Bucks roadsDave Arter2018-04-03-8/+13
| | | | | | This hides the report form entirely if the user has not selected a road maintained by Buckinghamshire. Also extends the roads layer to apply to all categories.
* [Buckinghamshire] Style Bucks/non-Bucks highways differentlyDave Arter2018-04-03-11/+38
|
* [Buckinghamshire] Update list of categories for invalid location messageDave Arter2018-04-03-1/+2
|
* [Buckinghamshire] Show error message when trying to create a road defect ↵Dave Arter2018-04-03-700/+1680
| | | | outside of Bucks roads
* [Buckinghamshire] Associate layers with multiple categoriesDave Arter2018-04-03-2/+6
|
* [Buckinghamshire] Initial roadworks work.Matthew Somerville2018-04-03-0/+199
|
* [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
|