aboutsummaryrefslogtreecommitdiffstats
path: root/web
Commit message (Collapse)AuthorAgeLines
...
* | [Angus,Bristol] Don't try and add assets if no mapMatthew Somerville2016-12-16-0/+12
| |
* | Try and not show offline banner unnecessarily.Matthew Somerville2016-12-16-2/+1
| |
* | Merge branch 'issues/forcouncils/20-offline-inspecting'Matthew Somerville2016-12-16-34/+464
|\ \ | |/ |/|
| * Add a clear offline data button.Matthew Somerville2016-12-16-0/+12
| |
| * Add offline storing of inspect forms.Matthew Somerville2016-12-16-3/+122
| | | | | | | | | | | | | | | | | | | | This allows the inspect form to be submitted when offline, with the data saved in localStorage, the number of saved forms shown in the banner, and the forms to be uploaded when back online. It copes if you go back to a report after having submitted the form, and if the back-online submission fails due to CSRF failure, retrying once with a new token.
| * Store/show shortlisted reports offline.Matthew Somerville2016-12-16-35/+329
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This: * On an online visit to /my/planned, caches all shortlisted reports, their images and static maps in localStorage, with progress banner; * When a report is added/removed from the shortlist, caches/de-caches that report; * When viewing a report page offline, shows that page from the cache if present (replacing the dynamic map with the cached static map, and replacing report images with their cached equivalents – it is a shame to duplicate, but we cannot rely on the browser cache having these images); * When viewing another page offline, shows an error message but also the list of shortlisted reports that are cached (again, replacing their thumbnail images with the cached versions).
| * Add offline support of static files/fallback page.Matthew Somerville2016-12-16-0/+5
| | | | | | | | | | Use a list to store JavaScript files, so it can be shared between the HTML footer and the appcache manifest.
* | Don't fix height of admin multiple selects.Matthew Somerville2016-12-16-1/+1
| | | | | | | | | | | | The styling applied to the nice front end multi-select dropdowns should not be applied to the admin multi-select ones, until such time as they are using the nice select interface too.
* | Merge branch 'issues/forcouncils/108-pick-up-a-priority'Matthew Somerville2016-12-15-0/+13
|\ \ | |/ |/|
| * Update priorities in inspect form on cat. change.Matthew Somerville2016-12-15-0/+13
| | | | | | | | | | Different categories may have a different list of priorities, so store them all and update as the category changes.
* | Make it clearer that report is closed when marked as duplicateDave Arter2016-12-13-1/+12
| | | | | | | | | | | | - Record state change when leaving update and marking as duplicate - Change save button wording to match problem state when inspecting - Make it clearer that updates marking a report as duplicate actually close the report
* | Display nearby candidate reports when marking as duplicateDave Arter2016-12-13-37/+82
| | | | | | | | | | | | | | | | - Use Problem->pin_data for single report page - Promote markers_highlight to fixmystreet.maps API We want to highlight map pins on the duplicate report selection UI, so let's use what's already there instead of writing something new. - Make sure duplicate report pins aren’t draggable
* | Refactor JS to work with ajax-loaded reportsDave Arter2016-12-13-47/+49
| |
* | Better preserve chosen duplicate report if state is changedDave Arter2016-12-13-3/+9
| |
* | Use nearby problems for duplicate suggestions instead of bounding box of mapDave Arter2016-12-13-2/+2
| |
* | Store and display selected duplicate reportDave Arter2016-12-13-4/+25
| |
* | Display nearby duplicate reports when setting report category to ‘duplicate’Dave Arter2016-12-13-0/+34
| |
* | Load OpenLayers stylesheet directly, not via JS.Matthew Somerville2016-12-09-0/+1
| | | | | | | | | | This lets us version and cache-bust it as necessary, plus let browser decide how to load it, we're always going to need it.
* | Manual OpenLayers patch for pointer event draggingMatthew Somerville2016-12-09-3/+4
|/ | | | | | Thanks to Dave Tapuska and Chrome team: https://bugs.chromium.org/p/chromium/issues/detail?id=670942 https://github.com/openlayers/ol2/issues/1510
* Filter category should always carry through to formDave Arter2016-12-08-1/+1
| | | | | | | | When filtering the map by a category containing spaces, this category wasn't being carried through to the dropdown on the new report form. Ensuring it's wrapped in quotes in the jQuery selector fixes the problem. Fixes mysociety/fixmystreetforcouncils#134
* Scroll to report inspect form if present.Matthew Somerville2016-11-28-0/+3
|
* [Bromley] Fix map tiles.Matthew Somerville2016-11-18-3/+1
| | | | | The change to remove inline JavaScript stopped the Bromley-specific tiles from working. Put them back with an extra JavaScript file.
* Add option of only requesting some WFS attributes.Matthew Somerville2016-11-11-0/+4
|
* [UK] Refactor WFS asset handling.Matthew Somerville2016-11-11-348/+459
| | | | | | Allow multiple asset layers, and setting of multiple asset attributes. [Bristol] Add Bristol asset layers.
* [Bristol] Upgrade to OpenLayers master (with WFS).Matthew Somerville2016-11-11-4/+882
| | | | Including WFS for forthcoming assets layers.
* Merge branch 'issues/forcouncils/99-sorting'Matthew Somerville2016-11-04-26/+36
|\
| * Add sort order options to list pages.Matthew Somerville2016-11-04-26/+36
| | | | | | | | | | | | | | | | Includes newest, oldest, least/most recently updated, and most comments. The default remains the same, which is last updated on /reports, and newest on /my and /around (the latter plus not-in-view sorted-by-distance ones).
* | Merge branch 'issues/forcouncils/116-inspect-show-bug'Matthew Somerville2016-11-04-78/+96
|\ \ | |/ |/|
| * Make sure inspect form shown if report pulled in.Matthew Somerville2016-11-04-78/+96
| | | | | | | | | | | | | | | | The inspect form, if shown, is in a sibling div to the report div, so make sure that it is shown/hidden as appropriate. We consolidate the inspect JavaScript setup into one function, so that it can be called on load, and when pulled in.
* | Add UI for assigning categories to a user in adminDave Arter2016-10-28-1/+2
|/ | | | | - A user can be assigned to any number of its body's categories - The category ids are stored as a list in the user's extra field
* Add simple way to return to "everything" in list filtersZarino Zappia2016-10-25-58/+149
|
* Merge branch 'reports-area-as-a-hole'Matthew Somerville2016-10-24-8/+51
|\
| * Invert display of areas on body pages.Matthew Somerville2016-10-21-8/+51
| | | | | | | | | | This makes it easier to use the map, as the land outside the area is shaded, rather than the area itself.
* | Store and use initial URL to fix JavaScript bugs.Matthew Somerville2016-10-21-3/+8
|/ | | | | | | | | | | | | If you were on a body page, selected a report, then another report, the "Back to all reports" link then had an incorrect URL. Also, going "Back to all reports" after one report would fetch an incorrect Ajax query of reports to show (as the URL had not yet been updated). Both of these are fixed by storing the URL on page load, and using that for the "Back to all reports" link and the URL used by the Ajax call. There is still an issue with the URL shown if you filter, then select a report, then click "Back to all reports", but the contents are okay.
* Fix map pin clicking in IE11.Matthew Somerville2016-10-21-3/+3
| | | | | | It turns out that whilst IE9+ defines MouseEvent, it's not in the form that can be used as a constructor until Edge. To fix this we check that MouseEvent is a function before using it as one.
* Merge branch 'issues/forcouncils/87-update-shortlist-name'Matthew Somerville2016-10-21-0/+1
|\
| * When added to shortlist, remove "other user" message.Matthew Somerville2016-10-20-0/+1
| |
* | Merge branch '1543-reports-page-fixes'Matthew Somerville2016-10-21-7/+40
|\ \ | |/ |/|
| * Update pagination when status/categories changed.Matthew Somerville2016-10-18-0/+4
| |
| * Add ajax pin fetching to reports/my pages.Matthew Somerville2016-10-14-6/+25
| | | | | | | | | | This matches the behaviour on /around, and prevents a refresh when changing the state or category filters.
| * Improve history API URL when query string empty.Matthew Somerville2016-10-14-1/+11
| |
* | Refactor template/priority category checkboxes into own templateDave Arter2016-10-19-0/+7
| | | | | | | | | | - Also adds add select all/none UI - Adds admin hint for empty category list behaviour
* | Factor Open311 fields into own template for devolved contactsDave Arter2016-10-19-7/+10
| |
* | Extract category edit form into its own templateDave Arter2016-10-19-0/+7
| | | | | | | | | | | | | | | | | | | | * The same template is now used for creating new contacts as well as editing existing ones. * Zurich template for editing contacts has been left unchanged for now * Reputation threshold is included on form * Fields are in a more intuitive order * Required fields are marked as such in DOM for client-side validation * Rename ‘notes’ field to make its meaning clearer
* | [Zurich] Fix bug on image thumbnail in adminDave Arter2016-10-18-1/+1
|/ | | | | | | | | | Clicking the thumbnail on a report admin page was causing the 'rotating photo will discard changes' alert to appear unnecessarily. This was due to the data-confirm attribute on the parent <dd>, the meaning of which was changed by f5b171f. Fixed by using a different attribute name. Spotted another bug that I think caused the dialog to never actually be shown with the correct message because 'this' was the form and not the clicked button element.
* Merge branch 'issues/forcouncils/95-multi-select-list-filters'Matthew Somerville2016-10-13-23/+433
|\
| * Allow multiple selections in report list filter.Zarino Zappia2016-10-13-23/+433
| | | | | | | | | | | | This lets people filter by multiple categories or states. It uses our jQuery multi-select plugin to turn the <select multiple>s into little overlay lists of checkboxes. HTML5 history is also supported.
* | Show shortlist owner on report page.Matthew Somerville2016-10-11-0/+29
|/
* Merge branch 'issues/forcouncils/36-mobile-inspector-improvements'Matthew Somerville2016-10-04-126/+316
|\
| * Handle extra field updates on report inspect pageDave Arter2016-10-04-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We want to make sure the extra metadata stored on a problem is kept in sync with the requirements of the category the report is in. Thus, if a report is moved to a category that collects extra metadata then the appropriate input fields should be shown so the inspector can enter the data. This commit shows the category extra HTML elements for every selectable category on the inspector page hiding those that don't apply to the selected category. JS is used to show/hide the extra fields when the category dropdown is changed. A consequence of the implementation is that any extra metadata from the original category is lost when the category is changed. Some thought was given to storing the old values elsewhere in the problem's extra field but I decided against this for the time being. For mysociety/fixmystreetforcouncils#45