aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* 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.
* limit problem body to single body if requiredStruan Donald2018-04-03-4/+35
| | | | | | Add a single_body_only form value to reports that contains the name of the only body to send the problem to. If the name doesn't match any of the valid bodies for the report then send to all.
* test for multiple bodies for one contactStruan Donald2018-04-03-0/+108
| | | | | test to check creating a new report for a category for which there are multiple bodies
* 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
* Merge branch 'jonkri-2.3'Matthew Somerville2018-04-03-525/+223
|\
| * [FixaMinGata] Add front page changesJon Kristensen2018-04-03-12/+9
| |
| * [FixaMinGata] Update council.html, FAQ and privacy policyJon Kristensen2018-04-03-318/+125
| |
| * [FixaMinGata] Update geocoding.Matthew Somerville2018-04-03-184/+63
| | | | | | | | | | | | | | | | - Removes the FixaMinGata Geocode module - Surround bounds coordinates with quotes - Return a different bounding box for Öckerö and other places - Specifies specific GPS coordinates for certain OpenStreetMap relations - Removes a comment
| * [FixaMinGata] Change pin colours.Matthew Somerville2018-04-03-3/+4
| |
| * [FixaMinGata] Replace stats separators with non-breaking spacesJon Kristensen2018-04-03-3/+9
| |
| * [FixaMinGata] Updated translation.Jon Kristensen2018-04-03-2/+2
| |
| * Make sure OSM geocoder is bounded, includes icon.Matthew Somerville2018-04-03-3/+11
| |
* | test that options pass from body to fetching problemsStruan Donald2018-03-29-0/+30
| |
* | add convert latlong option to open311 body adminStruan Donald2018-03-29-0/+15
| |
* | add convert_latlong option to body tableStruan Donald2018-03-29-2/+16
| | | | | | | | | | For controlling if reports pulled in via Open311 should have the position converted from Easting/Northing to lat/long.
* | optionally convert from EPSG:27700 to WGS84 on report importStruan Donald2018-03-29-3/+48
| | | | | | | | | | | | | | When pulling reports in over Open311 it's sometimes useful to be able to accept reports with Easting/Northing rather than latitude/longitude. This adds an option to GetServiceRequests to convert them as they come in.
* | fix timezone problems with offline inspector commentsStruan Donald2018-03-29-2/+12
|/ | | | | | | Comments added offline by an inspector set the time in JavaScript using a UTC epoch. We need to add the FMS timezone to this so it's in the timezone the database expects for timestamps otherwise it's incorrect when we fetch it back out
* Don’t show empty ‘provide extra detail’ sectionDave Arter2018-03-29-10/+64
| | | | | | Hides the empty “Help <council> resolve your problem quicker” section of the new report form if report metas for the selected category are all hidden fields.
* Make it easier to identify Open311 categories in category checkbox listDave Arter2018-03-29-1/+3
| | | | | | Displays the category’s email address (service code, for Open311) as a tooltip. This makes it easier to identify the right category when editing response templates, for example.
* Allow cobrands to hide phone number field when making reportsDave Arter2018-03-29-7/+17
|
* Fix invalid SQL on cobrand admin update edit pagesDave Arter2018-03-29-1/+2
|
* change asset layer to category display map to an arrayStruan Donald2018-03-29-4/+17
| | | | | Rather than associating an asset layer with a single category use an array so we can use a layer with multiple sub-categories
* Improve wording/grammar when report is sent to more than two bodiesDave Arter2018-03-29-11/+16
|
* Allow cobrands to add extra MapIt areas & typesDave Arter2018-03-29-0/+12
|
* Trigger response templates based on external_status_codeDave Arter2018-03-29-3/+52
|
* Add external_status_code to ResponseTemplate admin editing formsDave Arter2018-03-29-8/+87
|
* Add ResponseTemplate.external_status_code fieldDave Arter2018-03-29-2/+16
|
* Display external_status_code on report/update edit pages, if setDave Arter2018-03-28-0/+9
|
* Fetch and store external_status_code in GetServiceRequestUpdatesDave Arter2018-03-28-0/+58
| | | | | | | If the Open311 endpoint provides the external_status_code field in servicerequestupdates.xml output, it’s stored in each comment’s extra field as well as the problem’s extra field. This will make it possible to trigger response templates based on this value.
* Gitignore cypress.env.jsonZarino Zappia2018-03-27-0/+1
| | | | | | | | The Cypress docs suggest putting machine-specific config into a `cypress.env.json` file at the same location as `cypress.json`. (For example, if you want to disable video recording of test sessions on your machine, but not everyone else’s.) Since this file will be machine-specific, we don’t want it tracked in Git.
* [UK] Area summary dashboards with plug for FMS ProMatthew Somerville2018-03-27-4/+205
| | | | Fixes mysociety/fixmystreet-commercial#943.
* Fix Mac / iOS mail full-width email layout bugZarino Zappia2018-03-27-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dcc5926 simplified the HTML email layout and styling, but introduced a bug in Mac and iOS Mail (both of which use Safari to render emails) where the central "column" of the layout would expand beyond its 620px maximum width if your window/screen was big enough to let it. As far as I can tell, this is a bug in Safari – it treats empty table cells as if they aren’t there, meaning, in our layout, they no longer "pushed" against the sides of the central column, allowing it to expand to the full width of the parent (the window). Adding a non-transparent background-color to the cells forces Safari to handle them correctly, so we set a background-color that matches the body background, to effectively make the cells invisible, while still giving them enough "layout" to trick Safari into rendering them. A fun quirk here is that, with the background-color hack in place, Safari will no longer allow the cells to occupy zero width. Even when the screen is the same width as (or narrower than!) our central column, Safari ensures that the spacer cells maintain at least a 1px width, resulting in a 1px dark grey "border" down the sides of the email. Seems Safari won’t let you have it both ways – either the cells are there or they aren’t ;-) To avoid this "border", we only apply the background-color when we know the window is wider than 620px. That way, the spacer cells will collapse to zero width on narrow screens (because of the Safari bug) and will expand to occupy the space you’d expect on wider screens (because of our background-color hack). Fixes #1928 (again).
* Set database session timezone on connection.Matthew Somerville2018-03-27-1/+7
| | | | | | | | | | fixmystreet.com went down early Sunday morning because the database server had been upgraded in the past year and was now set to UTC and not local time. This confused the codebase when it encountered timestamps that could not exist, all between 1-2am UTC. Ideally, timestamps in the database should be 'with time zone' or be stored in UTC, but for now let us set the time zone to the local one upon connection.
* Merge branch 'upgrade-test-postgresql'Matthew Somerville2018-03-27-15/+12
|\
| * Fix issue with test database removal.Matthew Somerville2018-03-26-15/+12
| | | | | | | | | | Upgrade Test::PostgreSQL, which fixes a bug delaying the end of test running, and introduces a nicer setup mechanism.
* | Merge branch '2022-cors-open311'Matthew Somerville2018-03-27-0/+2
|\ \
| * | Add CORS header to Open311 output.Matthew Somerville2018-03-22-0/+2
| |/
* | Fix issues with new report pin, improve cursor.Matthew Somerville2018-03-26-1/+17
| | | | | | | | | | | | | | | | | | | | 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/+19
|/ | | | | | 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.
* Store server_set automated, but ignore for input.Matthew Somerville2018-03-21-107/+78
| | | | | We do need to store them, so that the sending knows which fields are being requested, but we do not want them output to the client at all.
* [fixmystreet.com] Add admin page to list refused.Matthew Somerville2018-03-21-0/+75
|
* send easting/northing over open311 if send_notpinpointed and no map/postcodeStruan Donald2018-03-21-23/+53
| | | | | | If the map was not clicked and we don't have a postcode we should still send the easting and northing extra attributes if send_notpinpointed is set.
* Make homepage #pc input requiredZarino Zappia2018-03-21-3/+4
| | | | | Give some feedback to people who try to submit the homepage form without first entering a location to search for.
* [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-25/+241
|\ \ | | | | | | | | | '2016-uk-green-banner-position-test' and '2021-uk-homepage-intent-experiment'
| | * [UK] Dual submit buttons on homepage postcode formZarino Zappia2018-03-20-5/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | |
| | * Only pass --record to Cypress if key available.Matthew Somerville2018-03-20-1/+1
| | | | | | | | | | | | On PRs from external forks, it won't be.