aboutsummaryrefslogtreecommitdiffstats
path: root/t/app
Commit message (Collapse)AuthorAgeLines
* Don’t show `sent_to` on moderation diffDave Arter2020-07-02-1/+2
|
* Only show access tokens once, and store hashed.Matthew Somerville2020-06-30-13/+15
|
* Merge branch 'issues/commercial/1917-fix-template-unicode'Matthew Somerville2020-06-10-3/+5
|\
| * Fix double encoding of per-category templates.Matthew Somerville2020-06-09-3/+5
| | | | | | | | | | encode_json encodes to UTF-8, and then he output was being encoded again.
* | Merge branch 'recaptcha'Matthew Somerville2020-06-09-0/+22
|\ \
| * | [fixmystreet.com] Add option for recaptcha.Matthew Somerville2020-06-04-0/+22
| | | | | | | | | | | | | | | We are getting spam submissions of e.g. alert subscribe form, which causes people to get a confirmation email.
* | | Merge branch 'alert-active-deletion'Matthew Somerville2020-06-09-0/+2
|\ \ \ | |_|/ |/| |
| * | Mark user as active when sent an email alert.Matthew Somerville2020-06-03-0/+2
| |/
* | Add Open Location Codes support to search box.M Somerville2020-06-04-0/+25
| |
* | Small refactor of around.t, add "lat,lon" test.M Somerville2020-06-04-63/+32
|/
* [UK] Remove Somerset West and Taunton special destination handlingDave Arter2020-05-29-16/+0
|
* Make sure category shown in all its groups.Matthew Somerville2020-05-26-2/+2
| | | | | | | | When compiling the reporting category dropdown, only one instance of each value was used. But if a value appears twice, from two different bodies, in different groups, it would then not appear in all the groups it would be expected to. Make sure we update the list of groups of the category if we come across another with the same value.
* admin interface for per category anonymous reportingStruan Donald2020-05-12-0/+109
| | | | | | | | Add an interface to enable a category to accept anonymous reports, plus the code to handle permitting this. It's only available on single body cobrand sites in the default configuration.
* display user detail for contributed_by in report_editStruan Donald2020-05-12-0/+17
| | | | Include name, email and body rather than just user id.
* Merge branch 'tfl-category-restrictions'Matthew Somerville2020-05-12-5/+92
|\
| * Extend assigned_*_only to report lists.Matthew Somerville2020-05-08-1/+24
| | | | | | | | | | Shortlist buttons and extended print information will not appear where not allowed.
| * Add assigned_(users|categories)_only functionalityMatthew Somerville2020-05-08-4/+68
| | | | | | | | | | | | | | | | Users with assigned_categories_only will only see staff features on a report page in their assigned categories. Users will only see staff features on a report page in a category with assigned_users_only if it is in their assigned categories.
* | Disable rename on unprotected Open311 categories.Matthew Somerville2020-05-11-0/+2
|/ | | | | | If you rename an Open311 category when it is not protected, it will only get reinstated/deleted by the Open311 populate script shortly after, and can cause issues due to the problem category renaming that occurs.
* Fix dashboard report CSV export.Matthew Somerville2020-05-07-1/+2
| | | | | | The change to join in e16054150 did not include a collapse that the previous prefetch was doing, so multiple rows per result were being returned.
* Add way to disallow report reopening in a categoryMatthew Somerville2020-05-07-0/+22
| | | | | Add a tickbox to the category admin, and do not allow reopening on reports made in the selected categories.
* Add ability to disallow updates in a category.Matthew Somerville2020-05-06-12/+32
| | | | | Add a tickbox to the category admin, and do not allow updates on reports made in those selected categories.
* Merge branch 'comment-count-fix'Matthew Somerville2020-05-05-10/+22
|\
| * Fix sorting by most commented on /around map view.Matthew Somerville2020-05-04-10/+22
| |
* | Allow template to be an initial update on reports.Matthew Somerville2020-05-04-0/+71
|/
*---. Merge branches '2961-disable-private-tickbox', ↵Matthew Somerville2020-04-28-5/+13
|\ \ \ | | | | | | | | | | | | '2962-pin-move-category-group' and 'move-admin-index-stats-to-stats-page'
| | | * Move stats from main admin index to stats index.Matthew Somerville2020-04-24-5/+5
| | |/ | | | | | | | | | | | | These stats can take a while to generate, and we don't want to slow down people mostly coming to the admin index to do something else.
| * / Disable staff private tickbox if category private.Matthew Somerville2020-04-24-0/+8
| |/ | | | | | | | | | | | | If a category is marked private, new reports are always marked private regardless of the setting of the private checkbox shown to relevant staff when making a new report. So tick/disable this box in that situation to prevent any confusion.
* / Add contact flag to protect category/group names from Open311 changesDave Arter2020-04-28-0/+11
|/ | | | | | | Adds a new tickbox to the contact editing form that protects the category and group names from being changed by Open311. For mysociety/fixmystreet-commercial#1776
* Factor out some new report tests into own files.Matthew Somerville2020-04-24-881/+874
|
* [Buckinghamshire] Update for change to unitary.Martin Wright2020-03-31-1/+1
| | | | New unitary branding, and remove County from name.
* [Highways England] Update report sending handling.Matthew Somerville2020-03-31-0/+12
| | | | Use normal contact email, with special override in Area 7.
* Refactor Script::Report into an object.Matthew Somerville2020-03-31-2/+3
|
* [Open311] Allow save/drop of row extra during sendMatthew Somerville2020-03-31-22/+50
|
* [Admin] Access staff-only categories in admin.Matthew Somerville2020-03-19-0/+3
|
* Add Highways England junction lookupChris Mytton2020-03-12-0/+29
| | | | | | | This is taken from the sort-my-sign repo. It allows the user to search for motorways names and junction numbers, e.g. "M60, Junction 2", and then geocodes that using a SQLite database created from Highways England markerpost locations.
* [UK Councils] Superusers cannot be edited by staffMatthew Somerville2020-03-09-1/+4
|
* Merge branch 'admin-only-categories'Matthew Somerville2020-02-27-203/+257
|\
| * Add a new "staff" contact state.Matthew Somerville2020-02-26-1/+31
| | | | | | | | | | This state will appear when reporting if you are logged in as a staff member of the relevant body, but otherwise not appear on the site.
| * Move staff report new tests to separate file (no changes).Matthew Somerville2020-02-26-203/+227
| |
* | Use ManifestTheme theme_colour for front page theme-color meta tagDave Arter2020-02-26-4/+7
| |
* | Show available cobrands in dropdown on FMSDave Arter2020-02-26-1/+4
| | | | | | | | | | | | | | For some reason switching to a Select stopped the update_model changes being applied when persisting the model, meaning the INSERT query failed because the cobrand column was null. This commit switches to a hidden input field for the cobrand which I’m not super keen on, but it does get the job done...
* | Add manifest icon management to admin formsDave Arter2020-02-26-5/+98
| |
* | Add admin UI for configuring manifest themeDave Arter2020-02-26-0/+260
| |
* | Fix error hiding user's updates with no confirmed.Matthew Somerville2020-02-26-1/+10
| | | | | | | | | | | | If a user had no confirmed updates, but did have e.g. an unconfirmed update that had mark_fixed set, you would get an error when trying to hide the user's reports/updates.
* | Fix filter_group picking if category group a list.Matthew Somerville2020-02-26-0/+3
|/
* Remove appcache (breaking showing reports from localStorage cache).Matthew Somerville2020-02-14-12/+0
|
* Initial service worker.Matthew Somerville2020-02-14-0/+12
| | | | | | | | | | | | This basic service worker behaves identically to the existing appcache - some static scripts and CSS are cached, any HTML offline instead returns a static HTML page that knows how to show data on stored problems out of localStorage (stored there when /my/planned was visited online). Inspect form submissions will be captured and can be synced back when online. Once feature parity is established, we will then remove appcache, switch from using localStorage to the cache API, and hopefully move all offline support into the service worker.
* A basic web manifest starter.Matthew Somerville2020-02-14-0/+36
| | | | | Reads information from a theme object if present, and icons from a theme directory, with fallbacks.
* Merge branch 'allow-anon-on-some-categories'Matthew Somerville2020-02-14-0/+53
|\
| * Allow anonymous reporting on per-category basis.Matthew Somerville2020-02-13-0/+53
| |