Commit Graph

7296 Commits

Author SHA1 Message Date
karlchillmaid
a33c1932f8 Merge pull request #2822 from alphagov/privacy-updates
Update privacy statement
2019-03-07 09:02:23 +00:00
karlchillmaid
eaad921acb Update date
Update date
2019-03-05 14:41:43 +00:00
Rebecca Law
2916a3fea2 Merge pull request #2819 from alphagov/edit-folder-permissions
Edit user folder permissions
2019-03-05 12:08:40 +00:00
Alexey Bezhan
a2389fe2ca Make folder permissions form label more descriptive 2019-03-05 11:45:50 +00:00
Alexey Bezhan
6fa975e867 Send updated user folder permissions to the API
Integrates the folder permissions form with the updated API endpoint
to store changes in the user folders.

Since user folder permissions are returned in the full list of template
folders for the service we need to invalidate the cache key for it each
time we update user permissions.
2019-03-05 11:44:34 +00:00
Alexey Bezhan
3ba4a22b7c Add checkboxes-nested CSS rules 2019-03-05 11:44:34 +00:00
Pea Tyczynska
7413423243 Display nested folders permissions form on user permissions page
We're reusing the logic for the `move_to` nested radios field for the
user folder permissions nested checkboxes.

The main difference between the two forms (aside from the different
input type) is that "Move" form contains the root "Templates" as an
option, whereas the folder permissions doesn't.

It turns out that, because of the way NestedFieldMixin.children and
select_nested macro are implemented the easiest way to get the desired
folder permissions behaviour is to add the root folder as a choice with
a `None` value and `NONE_OPTION_VALUE = None` set on the field, which
allows the `child_map` to be constructed but doesn't display the root
folder checkbox itself since it gets overwritten in the final `child_map`.
2019-03-05 11:44:34 +00:00
Pea Tyczynska
340fd021bb Move field definitions before form definitions 2019-03-05 11:44:34 +00:00
Alexey Bezhan
194756bc2e Make radio form components reusable for nested checkboxes
For the template folders permission editing we need a nested
checkboxes form that is similar to "move folder" input, except
it's using checkboxes instead of radio buttons.

This moves most of the macros into a shared "select-input" components
file, which are wrapped by the existing radios.html by setting the
required input type.
2019-03-05 11:44:34 +00:00
Chris Hill-Scott
3900b675dc Correct email link typo
Co-Authored-By: karlchillmaid <karl.chillmaid@digital.cabinet-office.gov.uk>
2019-03-05 11:26:31 +00:00
karlchillmaid
263a19df02 Updated formatting of contact information
Updated formatting of contact information to bring it in line with GOV.UK style
2019-03-05 10:15:39 +00:00
Chris Hill-Scott
9bdcd81c65 Merge pull request #2826 from alphagov/westsussex.gov.uk
Mark agreement signed by West Sussex County Council
2019-03-04 11:53:42 +00:00
Chris Hill-Scott
cb2ee20a48 Mark agreement signed by West Sussex County Council 2019-03-04 11:46:05 +00:00
Rebecca Law
f236821705 Merge pull request #2825 from alphagov/should-read-text-not-email
Update the message when changing a users mobile phone number.
2019-03-04 11:24:53 +00:00
Rebecca Law
184ea5b92b Update the message when changing a users mobile phone number. 2019-03-04 11:14:35 +00:00
karlchillmaid
ac398bcbb6 Update privacy statement 2019-03-01 15:52:06 +00:00
Chris Hill-Scott
29c8f0924f Merge pull request #2821 from alphagov/dont-prefil-research-consent
Don’t prefil answer to research consent question
2019-03-01 13:21:43 +00:00
Chris Hill-Scott
4cae924379 Don’t prefil answer to research consent question
We were treating `None` (not answered) the same as `False` (previously
answered no).
2019-03-01 12:22:57 +00:00
Chris Hill-Scott
fa356f1ca7 Merge pull request #2816 from alphagov/hover-colour-task-list
Add link hover colour to task list items
2019-03-01 12:02:47 +00:00
Chris Hill-Scott
768213ee3c Merge pull request #2818 from alphagov/cyfoethnaturiolcymru.gov.uk
Mark agreement signed by Natural Resources Wales
2019-03-01 12:02:16 +00:00
Chris Hill-Scott
d288f0a8c5 Merge pull request #2817 from alphagov/hartlepool.gov.uk
Mark agreement signed by Hartlepool council
2019-03-01 12:02:09 +00:00
Chris Hill-Scott
2e0e8e4b4f Mark agreement signed by Natural Resources Wales 2019-02-28 09:50:08 +00:00
Chris Hill-Scott
dd03c731f5 Mark agreement signed by Hartlepool council 2019-02-28 09:42:50 +00:00
Chris Hill-Scott
48889daecb Add link hover colour to task list items 2019-02-27 17:44:50 +00:00
Chris Hill-Scott
645dc848fa Merge pull request #2815 from alphagov/go-live-without-volumes
Let users go live without filling in the volumes (but tag these tickets)
2019-02-27 17:41:41 +00:00
Chris Hill-Scott
7ac9884dd5 Tag tickets that haven’t filled volumes 2019-02-27 17:34:24 +00:00
Chris Hill-Scott
5f4280cf81 Let people go live without filling the volumes
At the moment it 500s because it can’t format the `None` values as
numbers.

In the future we will stop people requesting to go live until they’ve
provided this info. For now it has to be optional.
2019-02-27 17:05:02 +00:00
Chris Hill-Scott
852ae037d1 Merge pull request #2774 from alphagov/frontload-estimate-usage
Frontload estimate usage
2019-02-27 15:59:47 +00:00
Chris Hill-Scott
ae30d61884 Add full-width clickable areas
Follows what we’re doing elsewhere; make things as easy to click as
possible.
2019-02-27 15:44:01 +00:00
Chris Hill-Scott
6a6b3f78b1 Revise error message for non-numeric responses
Things we talked about:
• asking users to write the number 'as numerals' or 'using digits' isn't
  very plain English
• the style guide says to use an example in the error `..., like 5,000`
  but not if you have an example in the hint text, so we can't do that
• I have reservations about 'correct format', because it sounds odd if
  you're not describing something like a phone number, NI number or
  credit card number.

Looking back through Request to Go Live tickets on Zendesk.
---

I got to September before I found anything that would count as invalid
under our new rules:

> Possibly around 1,000,000- not planning on implementing emails yet but
might change

I'll keep looking, but if most people enter the number according to the
hint example we might be able to go with a much simpler error just
prompting them to enter a number – no convoluted descriptions of what we
mean by a number

There seemed to be more problems when the Qs were about start volume and
peak volume. Users felt the need to explain their plans more.

Using 'number' instead of 'volume' is more explicit too – so that
probably helps.

In terms of errors:
`Enter the number of emails you expect to send`
`Enter the number of text messages you expect to send`
`Enter the number of letters you expect to send`
– will probably do it, right?
2019-02-27 15:13:42 +00:00
Chris Hill-Scott
9691ef27da Round max number limit down
A round number feels better than a very arbitrary-looking one.
2019-02-27 15:13:33 +00:00
Chris Hill-Scott
1a94137ff6 Add latest content
From: https://docs.google.com/document/d/1aykf1MjJH5y21Bz1ht6WJncb9cKu0fsPlac3-bkMPe8/edit
2019-02-27 15:13:23 +00:00
Chris Hill-Scott
61ac7fa069 Don’t reformat numbers if there are errors
It’s confusing to at the same time:
1. change what you’ve inputted
2. tell you it’s wrong

This commit makes it so that 1. only happens if 2. doesn’t.
2019-02-27 13:26:23 +00:00
Chris Hill-Scott
a24c853dce Also allow spaces in numbers
Apparently this is a French thing.
2019-02-27 13:23:15 +00:00
Chris Hill-Scott
9f63449384 Make answers to volume questions optional
It’s annoying and very ‘computer says no’ to make people type `0` in a
box. We can see from our analytics that this error is affecting about 7%
of users trying to go live.

This commit relaxes the validation to only require a number greater than
1 for at least one of the questions.

It also lets people enter their numbers comma-separated – like our
examples suggest – but normalises them to integers before sending them
over to the API.
2019-02-27 13:20:20 +00:00
Chris Hill-Scott
90b31041cc Merge pull request #2814 from alphagov/judicialappointments
Add judicial appointments domains
2019-02-27 13:17:53 +00:00
Chris Hill-Scott
79ed1577b1 Merge pull request #2813 from alphagov/scotborders.gov.uk
Mark agreement signed by Scottish Borders Council
2019-02-27 13:17:47 +00:00
Chris Hill-Scott
8791134c60 Move the ‘estimated usage’ questions
We get a bunch of requests to go live where people have told us they're
going to send email but there is no email reply-to address present.

These come from 2 scenarios:

1. when there are email templates, and no reply to address – but they
   ignore the checklist
2. when there are no email templates (yet) but they provide anticipated
   volumes for email

At the moment we only auto-check for a reply to address when they have
email templates. And because the question about anticipated volumes
follows the checklist, you'll get a checklist that passes (reply
addresses not required as no templates present) - but your future intent
that differs (reply address IS required because you have anticipated
volumes).

So let’s bring the request for anticipated volumes into the checklist,
that way we can dynamically add the requirement for a reply to address
if they say they will send email but don't have templates yet.

We should begin storing it in the database against the service to stop
people having to re-enter it each time they try to complete the go live
screens.

This also means moving the ‘consent to research question’ along with
the questions about volume, because
- we want people to answer both before going live
- we don’t want to clutter up the summary page by asking questions there
  too
2019-02-27 13:17:28 +00:00
Chris Hill-Scott
62eba2d387 Add judicial appointments domains 2019-02-27 13:08:01 +00:00
Chris Hill-Scott
cc16ab652a Merge pull request #2809 from alphagov/pyup-update-flake8-3.7.6-to-3.7.7
Update flake8 to 3.7.7
2019-02-27 10:13:33 +00:00
Chris Hill-Scott
974792a177 Mark agreement signed by Scottish Borders Council 2019-02-27 09:39:38 +00:00
Pea (Malgorzata Tyczynska)
55e79beb42 Merge pull request #2812 from alphagov/send_confirmation_when_edit
Tell api when mobile or email updated by colleague
2019-02-26 17:19:26 +00:00
Pea Tyczynska
7da2ed4539 Tell api when mobile or email updated by colleague
So that API can send a confirmation email to the affected user
2019-02-26 16:35:11 +00:00
Pea (Malgorzata Tyczynska)
d02061a9d8 Merge pull request #2807 from alphagov/edit_user_phone_number
Edit user phone number
2019-02-26 14:18:08 +00:00
Pea Tyczynska
d93278f5f0 Ensure that mobile of user not belonging to service cannot be edited 2019-02-26 11:51:56 +00:00
Pea Tyczynska
d60ab838a8 Edit mobile page allows users to proceed without changing mobile number
Also:
- change formatting of mobile number redact characters

- redirect if session empty

- update a test with new mock after rebase
2019-02-26 11:50:56 +00:00
Pea Tyczynska
f7e54b7f5b Change team member's mobile number upon confirmation
Also add edit user mobile number urls to navigation exceptions
2019-02-26 11:50:42 +00:00
Pea Tyczynska
94b78a7649 Confirm change of team member's phone number 2019-02-26 11:50:41 +00:00
Pea Tyczynska
5a59989497 Redirect to mobile number confirmation page 2019-02-26 11:50:41 +00:00
Pea Tyczynska
9d57a81029 Edit mobile number page 2019-02-26 11:50:41 +00:00