aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
Commit message (Collapse)AuthorAgeLines
* 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
| |
* | Merge branch 'private-in-email'Matthew Somerville2020-02-14-32/+87
|\ \
| * | Reword/hide things viewing unauthed private reportMatthew Somerville2020-02-13-0/+2
| | | | | | | | | | | | | | | | | | If you've e.g. come from an email link that lets you view a private report, hide reporting/getting updates/sharing, and replace the update form with a link saying you need to sign in.
| * | Link in other-reported email shows private report.Matthew Somerville2020-02-13-32/+85
| |/ | | | | | | | | Use a token that does not log the user in, but lets the report be shown, even if it's a private report. Allow old tokens of that type to work.
* / Fix category extra AJAX call for categories with ampersandsDave Arter2020-02-12-0/+25
|/ | | | | | | | | | | | | | | | The `IF category_extras.$category.size` condition in category_extras.html was using an escaped string for `$category`, meaning the lookup would always fail for categories that had an ampersand in their name. The result of this was an empty `<div id="category_meta">`, and no extra fields shown to the user. This caused issues when one or more of the fields were required, as they were always empty and the error message wasn't being rendered and shown to the user. This meant the user would see their report form over and over again when submitting instead of useful feedback. We also ensure $category is always a SafeString when used as a key into a hashref in other templates. Fixes https://github.com/mysociety/fixmystreet-freshdesk/issues/126
* Enable category groups on map filter dropdown.Dave Arter2020-01-30-1/+12
| | | | Includes an updated version of jquery-multi-select.
* Allow multiple question to disable the new report formChris Mytton2020-01-28-3/+7
| | | | | | | | | | | | | This changes the existing logic to account for the fact that multiple questions might have the disable form checkbox ticked for one of their options. At the moment this just displays one of the messages at a time, with the first one taking priority. So if you have a "Is this an emergency" question and a "Is this on private land" question which both disable the form, and the user has selected "Yes" to both, then only the message for the first question is displayed. This can potentially be improved in the future, but seemed out of scope for this change.
* Add per report OpenGraph imagesGraeme Porteous2020-01-27-0/+14
| | | | | | | | | | | | | Includes a bit of refactoring of PhotoSet::get_image_data to make it easier to call subsequent methods on the photo object. We then do this to get the width and height. Also adds width/height attributes to FixMyStreet::ImageMagick Attributes are updated every time the image is transformed and before the as_blob data, which also undefs the image, is returned so it always present for subsequent calls. Fixes #2394.
* Include category groups in dashboard filter.Matthew Somerville2020-01-16-3/+8
|
* [UK] do not show unknown banner on fms pro sitesStruan Donald2020-01-13-1/+41
| | | | | In theory these are never unknown so do not display this in report banner.
* Scrub admin description fields.Matthew Somerville2020-01-09-3/+3
|
* Merge branch 'staff-sign-up-other-user-for-alert'Matthew Somerville2020-01-09-9/+57
|\
| * Allow staff users to sign others up for alerts.Matthew Somerville2020-01-08-0/+47
| |
| * Check provided report ID for update alert signup.Matthew Somerville2020-01-08-9/+10
| | | | | | | | Remove some unused code.
* | Merge branch 'issues/commercial/1287-as-another-user-only-name'Matthew Somerville2020-01-09-9/+17
|\ \
| * | Allow report as another user with only name.Matthew Somerville2020-01-08-9/+17
| |/
* / Hide ‘provide extra information’ preamble when no visible fields are presentDave Arter2020-01-07-0/+53
|/ | | | | | | | | For categories that use the extra metadata fields to just show a notice message to the user, the ‘help the council fix the problem by providing extra information’ text was a bit out of place. This commit hides it unless there are actual UI elements also included in the markup. Fixes #2811.
* Clear any categories from user when unsetting from_bodyDave Arter2020-01-06-0/+24
| | | | This was most likely the cause of #2815.
* Fix 'all reports' link for users with categories but no from_bodyDave Arter2020-01-06-0/+13
| | | | | | | | | | | In the rare situation that a user has no from_body set but does have categories set in their extra metadata, the 'All reports' link would point to /my/inspector_redirect but this URL would 404 if the user did not have a from_body. This commit updates the template to use the same logic when generating the 'all reports' link, so users without from_body will never be sent to /my/inspector_redirect. Fixes #2815.
* Merge branch 'bexley-ooh'Matthew Somerville2019-12-19-1/+1
|\
| * Fix test issue where CSRF token contained number.Matthew Somerville2019-12-17-1/+1
| | | | | | | | Giving a false positive.
* | Check area IDs non-empty in inspector redirect.Matthew Somerville2019-12-17-1/+1
|/
* Store staff user when staff make anonymous report.Dave Arter2019-12-17-0/+25
| | | | | | If a staff user uses the anonymous button, it does not otherwise record which staff user did that; using Report As would store their user as the report's user.
* [TfL] Server-side red route lookup for new report categoriesDave Arter2019-12-12-1/+1
| | | | | | | | | | | | | | | | | | | | This commit checks the RedRoutes WFS layer on tilma to determine if the point at which a new report is being made is on a TfL red route. The returned categories are then adjusted accordingly: - If on a red route, all TfL categories as well as borough categories specific to street cleaning are returned. - If not on a red route, all borough categories as well as TfL categories that don't require a red route are returned. - This category tweaking doesn't happen on the TfL cobrand, as the JS handles it by signposting users to fixmystreet.com for borough reports. Doing the lookup server side means the app always shows the right categories to the user and prevents them e.g. sending a borough flytipping report to TfL. Fixes https://github.com/mysociety/fixmystreet-commercial/issues/1716
* [TfL] Restrict reports on cobrand to post go-live.Matthew Somerville2019-12-09-8/+1
|
* [TfL] Mandate 2FA for non-internal-IP staff users.Matthew Somerville2019-12-09-0/+1
|
* Allow cobrands to skip 2FA requirement.Matthew Somerville2019-12-09-1/+19
|
* Record first time fixed/closed update sent to reporter in email.Matthew Somerville2019-12-09-0/+3
|
* Include areas in query param for inspector post-login redirect to all reportsDave Arter2019-12-09-0/+68
| | | | | Performs a proper redirect instead of detaching to /my/inspector_redirect so any request params from sign-in (e.g. password!) aren't carried through.
* Group categories on response template edit page, if cobrand allowsDave Arter2019-12-09-0/+45
|
* [UK Councils] Ensure response templates owned by other bodies aren’t visibleDave Arter2019-12-09-0/+65
|
* Switch to default-escaped in templates.Matthew Somerville2019-12-09-1/+1
| | | | | | | This means any variable used in a template is automatically HTML-escaped, unless it is marked as safe either in code by using a SafeString, or in the template with the `mark_safe` function or the `safe` filter.
* [Peterborough] add title length restrictionStruan Donald2019-12-03-1/+27
| | | | Fixes mysociety/fixmystreet-freshdesk#102
* Merge branch 'qr-code-generator'Matthew Somerville2019-11-25-1/+0
|\
| * Switch to internal QR code generator.Matthew Somerville2019-11-23-1/+0
| |
* | [Oxfordshire] re-enable inspector permissionsStruan Donald2019-11-22-27/+0
|/ | | | | Re-enable the inspector permissions that were disabled at a cobrand level
* Rotate session ID after successful login.Matthew Somerville2019-11-22-12/+11
|