Commit Graph

7278 Commits

Author SHA1 Message Date
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
Pea Tyczynska
94c4151640 Edit user permissions page shows redacted phone number and Change link
Also make plan for story development
2019-02-26 11:50:17 +00:00
Chris Hill-Scott
882fc7ebab Merge pull request #2810 from alphagov/dont-edit-users-from-other-services
Don’t allow editing of users from other services
2019-02-25 17:30:45 +00:00
Chris Hill-Scott
d82f410325 Don’t allow editing of users from other services
Currently when you load the ‘edit user’ page (which has a URL like
`/service/<service_id>/users/<user_id>`) we check that:
- you belong to the service represented by `service_id`
- you have permission to edit users on this service

We don’t check that:
- the user represented by `user_id` belongs to this service

This means that if you could somehow determine another user’s `user_id`
(which I don’t think is possible if you don’t already have the manage
service permission for that service) then you could:
- edit their permissions on your service (weird, but wouldn’t have any
  effect)
- change their email address (bad)

This commit adds checks to return a `404` any time you’re looking at a
service and trying to do stuff to a user who doesn’t belong to that
service.

We can’t add this check to the API easily because there are still times
that we want to get/modify users outside the context of a service (eg
platform admin pages, or users who have no services).
2019-02-25 17:19:07 +00:00
pyup-bot
e2a48ded13 Update flake8 from 3.7.6 to 3.7.7 2019-02-25 16:53:28 +00:00
Katie Smith
a8a8e37a46 Merge pull request #2797 from alphagov/change-user-permissions-data-format
Change the format of the user_permissions data that gets sent
2019-02-25 16:33:02 +00:00
Katie Smith
62578f5951 Change the format of the user_permissions data that gets sent
The endpoint for setting permissions in api will now be used for both
user permissions and a user's folder permissions, so this changes the
format of the data we pass through.
2019-02-25 16:00:09 +00:00
Chris Hill-Scott
6ac713c978 Merge pull request #2808 from alphagov/edit-link-space
Add space between email address and edit link
2019-02-25 15:23:28 +00:00
Chris Hill-Scott
3bd4f52db0 Add space between email address and edit link
It was all getting a bit cramped.
2019-02-25 15:15:00 +00:00
Chris Hill-Scott
96e02d1c18 Merge pull request #2799 from alphagov/template-nav-order
Put template type navigation in correct order
2019-02-25 15:12:13 +00:00
Chris Hill-Scott
83fe8b8d9a Merge pull request #2806 from alphagov/save-same-email
Don’t error if email address hasn’t changed
2019-02-25 14:40:05 +00:00
Chris Hill-Scott
a08c8584be Merge pull request #2798 from alphagov/roadmap-feb19
Updated roadmap
2019-02-25 14:37:49 +00:00
Chris Hill-Scott
110fa0ee5a Update app/templates/views/roadmap.html
Co-Authored-By: yahoopete <peter.herlihy@digital.cabinet-office.gov.uk>
2019-02-25 14:29:31 +00:00
Chris Hill-Scott
ffaa8cd1a6 Don’t error if email address hasn’t changed
When updating a user’s email address you currently get an validation
error if you save without changing it. Instead it should just obey your
command. And no need for the confirmation step because nothing is
actually changing.
2019-02-25 12:04:07 +00:00
Pea (Malgorzata Tyczynska)
9cd311df02 Merge pull request #2794 from alphagov/edit_user_email
Allow users with "manage_service" permission to edit team members' email addresses
2019-02-25 10:18:34 +00:00
Chris Hill-Scott
8aeb203124 Put template type navigation in correct order
We always talk about the things you can send using Notify as _emails,
text messages and letters_, in that order.

The navigation should reflect this.
2019-02-22 17:19:39 +00:00
Pea Tyczynska
909e42fae2 Clear new email address from session after transaction 2019-02-22 16:20:54 +00:00
Pea Tyczynska
6c406ae5cd Redirect from confirmation page if session empty 2019-02-22 16:13:46 +00:00
Pete Herlihy
e7c1286309 Updated roadmap 2019-02-22 15:24:43 +00:00