aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* 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.
| | * Merge branch 'store-contributed-as'Matthew Somerville2018-03-20-12/+56
| | |\
| | | * Store contributed-as data.Matthew Somerville2018-03-20-12/+56
| | | | | | | | | | | | | | | | | | | | Store if the report/update was created by someone using the contributed-as dropdown, and use that information to perhaps not send report-sent emails.
| * | | [UK] Move big green button over map for GA Content ExperimentZarino Zappia2018-03-19-0/+52
| | | | | | | | | | | | | | | | Part of #2016.
* | | | Clicking "big green banner" on /around begins a reportZarino Zappia2018-03-20-0/+23
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge branch 'fix-disappearing-sub-map'Matthew Somerville2018-03-20-7/+18
|\ \ \
| * | | Fix check for visible sub map links.Matthew Somerville2018-03-19-7/+18
| | |/ | |/| | | | | | | | | | | | | | | | | | | 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.
* | | [Zurich] Prefetch report users, cache body lookupsMatthew Somerville2018-03-19-2/+6
| | |
* | | Pass columns CSV needs into Problem->as_hashref.Matthew Somerville2018-03-19-21/+16
|/ / | | | | | | Then it can skip working out some things as they are not needed.
* / Fix disappearing large-width visited navigation.Matthew Somerville2018-03-19-0/+3
|/ | | | The change to base in fc172603 affected the layout display.
* Add browser testing symlink to `t` directory.Matthew Somerville2018-03-19-0/+1
|
* [Zurich] Make sure fixed states are translated.Matthew Somerville2018-03-19-2/+2
| | | | The code now uses this translation as the hard-coded way was removed.
* Merge branch '2023-bad-open311-dates'Matthew Somerville2018-03-16-4/+18
|\
| * Truncate dates in Open311 output to the second.Matthew Somerville2018-03-15-4/+18
| | | | | | | | This fixes #2023 by removing the comma.
* | Merge branch 'rutland-integration'Struan Donald2018-03-15-41/+1043
|\ \
| * | permit blank updates to be fetched over Open311Struan Donald2018-03-15-2/+81
| | | | | | | | | | | | | | | Add a per body configuration option to allow Open311 updates to contain only a status change, rather than emitting a warning when this happens.
| * | Deal with 'automated' Open311 service attributes.Struan Donald2018-03-15-5/+100
| | | | | | | | | | | | | | | | | | This is part of the integration with our open311-adapter. The automated property indicates that it's an expected value but either it's going to be set by the server, or appear as a hidden field.
| * | send multiple photos over open311Struan Donald2018-03-15-1/+93
| | | | | | | | | | | | | | | | | | | | | | | | Per cobrand configurable option to send multiple photos over open311 instead of just a single one. Does this by sending multiple media_url parameters in the POST body. The default remains to send the first photo associated with a report.
| * | [Rutland] cobrand files for RutlandStruan Donald2018-03-15-0/+199
| | | | | | | | | | | | | | | Web and email template changes, CSS plus cobrand file with open311 config
| * | fetch new problems over open311Struan Donald2018-03-15-35/+572
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables the display of existing reports from the back end on FMS if the body is configured to do this. Reports will not be created if they are missing an id, a lat or a long, if the lat/long is outside the area covered by the body, if there is already a report with a matching id, or if we can't parse out the request time.
* | | [Zurich] Fix typo causing crash on /report/ajaxDave Arter2018-03-15-1/+10
| | |
* | | Fix JSON-encoding crash on /report/ajaxDave Arter2018-03-15-1/+13
|/ /
* | Merge branch 'add-cypress'Matthew Somerville2018-03-15-49/+272
|\ \
| * | Add Cypress testing.Matthew Somerville2018-03-15-44/+270
| | |
| * | Remove need for List::MoreUtils from setenv.plMatthew Somerville2018-03-15-5/+2
| | |