| Commit message (Collapse) | Author | Age | Lines |
|\ |
|
| | |
|
| | |
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
| |
When there are lots of reports on a site, the big numbers on the
homepage would overflow the grid and look messy. This was particularly
noticeable on the fixmystreet.com homepage on 768–1024px screens.
We now scale up the font size more gradually, as the container widens,
and the maximum font size (3em) is slightly lower than before.
Fixes #1722.
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Rather than include the mobile logo as a base64-encoded data URI, we
include it as an SVG, inlined on the homepage or in the CSS. The SVG
should gzip better, and will work better with the critical CSS work,
allowing the site logo to appear immediately on page load for mobile
visitors, rather than waiting for the full stylesheet to download.
Fixes #1887.
|
| |
| |
| |
| |
| | |
If the browser doesn't support SVG, they're not going to care about
high-dpi images.
|
|/
|
|
|
|
|
|
|
|
| |
Add a `prefill_report_fields_for_inspectors` config to cobrands,
defaulted to 0, to control the automatic pre-population of report
fields.
Also add default of 1 for UKCouncil cobrand.
Fixed #1854
|
|
|
|
| |
1b15964a doubled the pin icon images.
|
|\ |
|
| | |
|
| |
| |
| |
| |
| | |
/around will now show all reports all the time, but we are about to
introduce pagination to stop that.
|
| |
| |
| |
| |
| | |
Both /reports and /my work by using the same URL with ajax=1. We should
use the same on /around for consistency.
|
|/ |
|
|\ |
|
| | |
|
| | |
|
|/
|
|
|
|
|
|
|
|
| |
Make sure that all relevant options in the filter status drop down are
checked to handle staff users who can see the full set of states and not
just open, closed and fixed
Also restore custom label for no states checked.
Fixes mysociety/forcouncils#227
|
|
|
|
|
| |
Any map bar the already-full-screen /around map could benefit from
the expand map option, especially the list of your reports.
|
|
|
|
|
|
| |
A full modal made it hard to perform multiple zooms/pans, making
the site slower to use than necessary. Tell the user the site is
updating, but let them interact with the map at the same time.
|
|
|
|
|
|
| |
This expands the 'change email' functionality to work with phone
number also, allow addition of missing details, and verifying of
unverified details.
|
| |
|
|
|
|
| |
A confirmation code is sent via Twilio to be entered on the site.
|
| |
|
|
|
|
|
| |
web/cobrands/fixmystreet/images/sprite.png is loaded by most cobrands.
Optimising it reduced the filesize from 97 KB to 36 KB.
|
|
|
|
| |
Fixes mysociety/fixmystreet-commercial#920.
|
|
|
|
|
|
|
|
|
| |
The upgrade to OpenLayers in 31b8337e3 was not accompanied by fixing
the tileOrigin manually tweaked as an old workaround. This moved the
map c. 100m out of alignment.
Bristol fixed this in a7f60abb by adding topLeftCorners, but this is
better done by fixing origin_x/y.
|
|
|
|
|
|
|
|
|
|
| |
The JavaScript assumes it is, but due to a string comparison in
DBIx::Class [1] when a has_many prefetch is in use (as it is on
a /reports page when a shortlist-using staff user is logged in)
all IDs bar the first were being given an internal string value
and JSON encoding was outputting them as a string.
[1] https://github.com/dbsrgits/dbix-class/blob/v0.08209/lib/DBIx/Class/ResultSet.pm#L1331
|
|\ |
|
| |
| |
| |
| |
| |
| | |
Alert options on the /alert/list page are now in an order that is easier
to parse, with a slightly clearer message for users in two-tier
locations, and a more prominent email subscription CTA.
|
|/ |
|
|
|
|
|
| |
Dropzone version 5 changed how createThumbnailFromUrl was called,
so the upgrade in 30dd9d8 broke this.
|
| |
|
|
|
|
|
| |
The change in 17e38922 would not deal with the URL construted by the
map permalink code, or the redirect after inspection.
|
|\ |
|
| |
| |
| |
| |
| |
| | |
The page currently fetches the pins again client-side (as we don't know
the extent of the map at the server point). I realise this isn't ideal,
but should speed up the normal case quite a bit.
|
| |
| |
| |
| |
| | |
If the list was replaced by JavaScript, the event handlers were being
dropped. Switch the handlers to the parent that remains present.
|
| |
| |
| |
| |
| | |
Both /reports and /my share an ID and a /reports/ajax function, use
these also on /around (and share ajax/non-ajax code).
|
|/
|
|
| |
Part of #1384.
|
|
|
|
|
|
|
| |
- Also provides an editor for the extra Open311 fields on contacts.
- Adds .btn--small class for small buttons
Fixes #1743.
|
|
|
|
|
|
| |
uses the body user but flags the report as anonymous
Fixes #fixmystreetforcouncils/207
|
| |
|
|
|
|
| |
Fixes mysociety/fixmystreetforcouncils#211.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A seemingly unrelated change in ef6ffbdb was causing JS errors
on the /reports page which meant the map loading spinner
was permanently present. This commit fixes that, and also fixes
another bug which was uncovered where the ?ajax=1 param was
being ignored by the Zürich /reports page, leading to HTML
being returned and another JS error.
The call to `new OpenLayers.Bounds` in
OpenLayers.Strategy.FixMyStreet.getMapBounds was causing
three of the 4 bounds params to be lost when run on OpenLayers
2.11, as this version doesn’t accept an array to the Bounds
constructor. This in turn was using an invalid `bbox` parameter
(only the west value was present) in the AJAX call to /reports
which returned a 500 error. This then crashed the JS and caused
the loading spinner to get stuck.
|
|
|
|
| |
Fixes #1792.
|
|
|
|
|
| |
The front page redirects to report area, ignoring whatever is entered,
and the sign in page includes details of the demo accounts.
|
|
|
|
|
|
| |
Pulling in a report via JavaScript that has two columns (e.g. the
inspect form) changes the size of the map, so updateSize needs to
be called.
|
|
|
|
|
|
| |
If the report is loaded with JavaScript, the outer form (for a new
report) is present and would otherwise take this click and start a
broken new report submission.
|
|
|
|
|
| |
This meant if a report was loaded via JavaScript, the action scheduled
buttons were not being shown at the appropriate point.
|