Commit Graph

3268 Commits

Author SHA1 Message Date
Chris Hill-Scott
d889e674f0 Merge pull request #1186 from alphagov/quis-patch-1
🖨
2017-03-15 11:46:50 +00:00
Chris Hill-Scott
c2aa340d8e Merge pull request #1183 from alphagov/dont-halt-gulp-on-errors
Don’t halt Gulp watch task on JS/SASS errors
2017-03-15 11:46:44 +00:00
Chris Hill-Scott
8fad5bf3c5 Merge pull request #1182 from alphagov/arrest-atypical-autocomplete
Stop Chrome mixing up phone no. and email address
2017-03-15 11:46:37 +00:00
Chris Hill-Scott
9527e4b6ea Merge pull request #1181 from alphagov/upgrade-bleach
Update utils to get latest version of bleach
2017-03-15 11:46:34 +00:00
imdadahad
d390f08fa0 Merge pull request #1188 from alphagov/add-more-temporary-logging-for-report-download
Add more logging for getting next page logic
2017-03-15 10:53:11 +00:00
Imdad Ahad
fc8bbc5d6f Add more logging for getting next page logic 2017-03-15 10:29:38 +00:00
Chris Hill-Scott
4e0ef92415 🖨
f5166bec79/app/notify_client/service_api_client.py (L143)
2017-03-14 13:03:03 +00:00
Chris Hill-Scott
3a8fe23a2d Update utils to get latest version of bleach
Implements:
- [ ] https://github.com/alphagov/notifications-utils/pull/126
2017-03-14 11:29:37 +00:00
imdadahad
f5166bec79 Merge pull request #1184 from alphagov/tmp-add-logging-for-report-download
Add temporary logging for job report download
2017-03-13 16:17:48 +00:00
Imdad Ahad
276a072a54 Add logging for streaming contents 2017-03-13 14:53:19 +00:00
Chris Hill-Scott
06e66cdee0 Upgrade Gulp SASS
Gulp was spitting out a lot of noise about stuff being out of date. The
cause seemed to be our outdated version of Gulp SASS. This commit
upgrades Gulp SASS to the latest version.

Changes:
---
https://github.com/dlmanning/gulp-sass/compare/v2.3.1...v3.1.0

This is a breaking change because one of the underlying libraries
includes a breaking change. But looking at their release notes, it
doesn’t seem to affect any SASS features that we’re using:

https://github.com/sass/libsass/releases/tag/3.4.0
2017-03-13 13:40:46 +00:00
Chris Hill-Scott
67e28cac7e Don’t halt Gulp watch on JS/SASS errors
Problem
---
You make a minor typo, save the file and your Gulp process dies without
you realising. You then spend 5 minutes trying to work out why your
changes aren’t appearing, no matter what edits you make.

Solution
---

Catch errors raised in processing the JS/SASS files and log them,
without killing the process.

How
---

Use a handy plugin called
[Gulp PrettyError](https://www.npmjs.com/package/gulp-prettyerror).
2017-03-13 13:17:20 +00:00
Chris Hill-Scott
33b15cdec6 Stop Chrome mixing up phone no. and email address
We keep seeing Chrome:

- autofilling the sign in form with a phone number in the email box
- autofilling the register form with an email address in the phone
  number box

This is because Chrome tries to autofill what it considers to be a
_login_. It detects a login as being:

- a password field
- preceded by a text input field

On the sign in page the password field is preceded by a field which is
supposed to receive an email address. On the register page the password
field is preceded by a field that’s supposed to receive a phone number.
I suspect that this is why it’s missing the two up.

The solution to this seems to be to defeat Chrome trying to be clever,
and make it autocomplete based on the `name` of the fields instead (we
name them sensibly, e.g. `email_address`, `phone_number`). The way to
defeat it seems to be sticking a dummy `input` right before the password
field on the register page. This dummy input is hidden from the page and
from screenreaders, so a user should never know it’s there. but Chrome
will autofill it anyway, with whatever wrong value it wants to.
2017-03-13 11:54:49 +00:00
bandesz
e918aebd29 Decrease PaaS apps memory to 1G 2017-03-13 11:51:48 +00:00
Chris Hill-Scott
4f2756ee90 Merge pull request #1180 from alphagov/example-template-is-priority
Make example text message template priority
2017-03-09 10:54:25 +00:00
Chris Hill-Scott
72fa3713e8 Make example text message template priority
The tour teaches you how Notify works by letting you do a thing and then
showing you the effect of the thing you’ve just done – a text message on
your phone.

This is not as effective if you don’t get the text message quickly. It
breaks the association you make between what you’ve done on the computer
and what’s happening on your phone.

Slow text message delivery can happen if you’re doing a big job. We can
get around this by making your text message use the priority queue.

This was observed in the pilot research session yesterday.
2017-03-09 10:30:19 +00:00
imdadahad
2391410435 Merge pull request #1170 from alphagov/feat-add-who-updated-providers
Show who updated providers and provider history data
2017-03-08 16:43:07 +00:00
Leo Hemsted
a99aef5abb Merge pull request #1179 from alphagov/welsh-assembly
welsh assembly emails - foo@assembly.wales
2017-03-08 14:59:01 +00:00
Leo Hemsted
deb959e835 welsh assembly emails - foo@assembly.wales 2017-03-08 14:08:57 +00:00
Imdad Ahad
3d258b929d Use page footer for back link 2017-03-08 09:57:03 +00:00
Chris Hill-Scott
500e7a38db Merge pull request #1178 from alphagov/fix-html-showing-up-breaking-change
Fix HTML showing up on breaking change page
2017-03-07 16:09:42 +00:00
Chris Hill-Scott
7e185f67b1 Fix HTML showing up on breaking change page
The breaking change page temporarily holds the changes in hidden inputs
on the page. The messages content it gets from the `.content` property
on the subject. This is raw and not transformed in any way, so fine.

For the subject it gets the value from the `.subject` attribute on the
template. For email templates, this will be transformed to highlight
placeholders with `<span class='placeholder'>…`. This means that when
the change is confirmed, it’s this encoded version that gets sent to the
API. Which is bad, because we then save `<span class='placeholder'>` in
the database.

This commit changes the page to look at the `._subject` attribute
instead, which is the internal, untransformed version of the subject.
2017-03-07 15:11:37 +00:00
Chris Hill-Scott
30667786db Merge pull request #1177 from alphagov/33-38
33- 38
2017-03-07 12:04:47 +00:00
Pete Herlihy
d60de8559f Updated unique org count to 23 (reality) 2017-03-07 11:51:34 +00:00
Pete Herlihy
2483a4a280 Updated service and org count to latest figures
Added:
GOV.UK Surveys
Delta News
London Dial A Ride
Home Office Reporting
2017-03-07 11:43:06 +00:00
Chris Hill-Scott
c51c954efc Merge pull request #1176 from alphagov/fix-support-loop
Fix infinite loop in support flow
2017-03-07 10:38:58 +00:00
Chris Hill-Scott
0326c7af6d Merge pull request #1175 from alphagov/bold-by-month
Make ‘by month’ heading bold on usage
2017-03-07 10:38:54 +00:00
Chris Hill-Scott
56a282f2a0 Fix infinite loop in support flow
The support flow was using `yes` and `no` to mean emergency/not
emergency. But not in all places – in one place it was using
`True`/`False` instead.

We were treating anything other than `yes`/`no` as a non-answer, which
means ask the question again. Because of the `True`/`False` thing, there
was no way of the user providing a valid `yes`/`no` answer. Which means
that we just kept asking them the question again and again and they got
stuck in a loop.
2017-03-07 09:44:21 +00:00
Chris Hill-Scott
494b6958b5 Make ‘by month’ heading bold on usage
So that it has the same visual weight as the other headings of the same
level (ie ‘Emails’ and ‘Text messages’).
2017-03-06 14:56:41 +00:00
bandesz
3e1553489b Increase memory for PaaS 2017-03-06 14:48:11 +00:00
Chris Hill-Scott
64348d516b Merge pull request #1174 from alphagov/unbreak-my-change
Fix breaking change page
2017-03-06 14:44:11 +00:00
Chris Hill-Scott
5081d83c19 Fix count of columns on breaking change page
For some reason we were rebuilding `new_template` as a dictionary,
without the `placeholders` attribute. This meant that we were never
actually counting the placeholders, just counting the length of `None`
and adding 1 to it.

So this commit fixes that, beefs up the tests, and makes sure that
everything is pluralised properly.
2017-03-06 13:17:37 +00:00
Chris Hill-Scott
536d091d85 Fix HTML showing up on the breaking change page
41fa158635 added a proper Jinja filter
for formatting lists, which was better than the previous macro-based
solution.

It didn’t, however, account for HTML properly. It  did the default Jinja
thing of escaping everything. Since we render lists of placeholders
by putting HTML before and after each item, this didn’t work (the HTML
got escaped and appeared on the page).

So this commit does the escaping of HTML outside Jinja, in the
user-submitted bits of the input only, then passes the whole thing
through as a `Markup` instance which doesn’t get escaped by Jinja.
2017-03-06 13:17:36 +00:00
Chris Hill-Scott
cd21b39d3f Merge pull request #1173 from alphagov/letter-hint
Add hint to letter contact details input
2017-03-06 11:53:44 +00:00
Chris Hill-Scott
b669e55dba Add hint to letter contact details input
Important for users to know about this limit.

Think it got dropped in all the merging somewhere.
2017-03-06 11:28:56 +00:00
Chris Hill-Scott
f54689a2b7 Merge pull request #1168 from alphagov/contact-letter-block
add letter_contact_block edit fields
2017-03-06 11:11:54 +00:00
Chris Hill-Scott
e9d5cc62b5 Merge pull request #1171 from alphagov/button-spacing-mobile-fix
Fix button spacing on mobile
2017-03-06 10:57:00 +00:00
Chris Hill-Scott
9735307493 Merge pull request #1172 from alphagov/bump-utils-fix-letters-type-size
Bump utils to fix type size of contact block
2017-03-06 10:56:54 +00:00
Chris Hill-Scott
b3bb3aaf02 Merge pull request #1163 from alphagov/unified-template-page
Merge email, text message and letter templates pages
2017-03-06 10:42:08 +00:00
Leo Hemsted
1cacd92411 Merge pull request #1153 from alphagov/forget-me
Remove remember me cookie
2017-03-06 09:39:52 +00:00
Chris Hill-Scott
35cd6a740f Bump utils to fix type size of contact block
Brings in:
- [ ] https://github.com/alphagov/notifications-utils/pull/125

Changes:
- https://github.com/alphagov/notifications-utils/compare/13.9.1...contact-block-type-size
2017-03-03 17:33:15 +00:00
Chris Hill-Scott
92a51c3a6c Pass contact block through to letter Template
So that it appears in letter previews…
2017-03-03 16:53:24 +00:00
Chris Hill-Scott
3dabd39c41 Add better error if user goes over line limit
Don’t make people count the number of lines themselves.
2017-03-03 16:30:18 +00:00
Chris Hill-Scott
63f52391fe Restrict letter template guidance to reasonable line length 2017-03-03 16:21:08 +00:00
Chris Hill-Scott
68113e764f Add guidance about the contact block 2017-03-03 16:21:08 +00:00
Chris Hill-Scott
db7aa3aa75 Make letter contact textbox half-wide
This approximates the width of the contact block area in the letter
template itself.
2017-03-03 16:20:51 +00:00
Leo Hemsted
5c3588445e add letter_contact_block edit fields
no actual template functionality yet - just the ability for services
that have letters enabled to edit a 10 line block that will go on the
top right hand side of their letters with contact information
2017-03-03 16:18:59 +00:00
Chris Hill-Scott
8913a7be13 Fix button spacing on mobile
The buttons overlapped. Got picked up in the service assessment design
review.
2017-03-03 14:25:15 +00:00
Chris Hill-Scott
393cb5b2da Merge pull request #1169 from alphagov/template-name-on-send
Put template name on preview page
2017-03-03 13:10:59 +00:00
Chris Hill-Scott
ce07d929f3 Merge pull request #1165 from alphagov/bump-utils-recipient-validation
Bump utils to improve letters and validation
2017-03-03 13:10:51 +00:00