Commit Graph

3243 Commits

Author SHA1 Message Date
Chris Hill-Scott
b11653fe08 Refactor to use validator class
Using a separate validator class to check for appropriate characters in
a text message sender means that we’re not doing this validation in a
different way from the other checks (length and required). So the code
is cleaner.
2018-01-31 11:11:32 +00:00
Chris Hill-Scott
532458cf3c Merge pull request #1827 from alphagov/highways
Adding Highways England to the list of domains that can register
2018-01-30 11:33:57 +00:00
Pete Herlihy
892aac44b2 Adding Highways England to the whitelist of domains 2018-01-30 11:20:52 +00:00
Chris Hill-Scott
29c31c45f2 Merge pull request #1815 from alphagov/add-letters-to-product-page
Update product page to talk about letters
2018-01-30 11:09:06 +00:00
Chris Hill-Scott
2221a8ca48 Change display of cancelled users, fix edit link
It’s confusing showing green ticks for cancelled invites. This commit
changes the appearance so that only pending or active users (ie those
that could actually do some damage) get green ticks.

Also fixes missing edit links caused by instances of `User` having
`.state` but instances of `InvitedUser` having `.status`.

Right now these are two separate lists. Which makes it harder to add
improvements that will make large numbers of users easier to manage.
2018-01-29 15:23:54 +00:00
Chris Hill-Scott
eaaca9dd96 Add search bar to team member list
Another thing we did for templates, when they started to get
unmanageable, was add a find-as-you type search. We’ve observed real
users interacting with this to great effect, so I think it makes sense
for users too.

Like for templates, it only shows up when there are more than 7, so that
it’s not clutter for teams who don’t have a lot of members.
2018-01-27 09:42:28 +00:00
Chris Hill-Scott
959490ea85 Sort users by email address
Some teams have a lot of users now (I think the record is 172). So we
should make it easier for teams to manage large numbers of users.

This is the same change we made for templates (from most recent to
alphabetical) when the number of templates was getting unmanageable.

Sorted on email address because invited users don’t have a name (and
not sorted on both, because a lot of departments have a
`lastname.firstname` scheme for email addresses, but people generally
enter their names as `Firstname Lastname`).
2018-01-27 09:38:49 +00:00
Chris Hill-Scott
c20884003f Rename pending to invited
Pending is a bit of a technical word. Pending what? Invited is clear
enough, and doesn’t introduce a new concept.
2018-01-27 09:36:32 +00:00
Chris Hill-Scott
79ddf657bf Combine invited and active team members
Right now these are two separate lists. Which makes it harder to add
improvements that will make large numbers of users easier to manage.
2018-01-27 09:35:13 +00:00
Chris Hill-Scott
363c27f409 Merge pull request #1818 from thomchambers/patch-1
Fixed a typo
2018-01-26 16:24:36 +00:00
Chris Hill-Scott
61ca391575 Merge pull request #1766 from alphagov/fix-table-show-more-spacing
Fix spacing of table footers
2018-01-26 16:13:45 +00:00
Chris Hill-Scott
a4e6ef89a7 And fix spacing for inbound… 2018-01-26 16:08:48 +00:00
Chris Hill-Scott
9ac2c49d4e Fix spacing of ‘only showing […] rows’ message
It was too far apart.

Can’t be fixed by reducing the margin on the table because this would
bring the table too close to other elements when the ‘only showing’
thing isn’t present.
2018-01-26 15:52:07 +00:00
Chris Hill-Scott
f332c9af7c Fix spacing between spreadsheet and download link
It was too far apart.
2018-01-26 15:51:23 +00:00
Chris Hill-Scott
25ad3037aa Allow page headings to word-wrap
This is mostly for template names, which can be very long, unbroken
strings, especially if developers have been naming them.
2018-01-26 14:47:56 +00:00
thomchambers
76dcd2e6e2 Fixed a typo
Fixed a typo because it was a typo
2018-01-25 16:20:07 +00:00
Chris Hill-Scott
893d9deb7c Update product page to talk about letters
Letters is now a mature enough feature that we should:
- be raising awareness amongst our users that it’s a thing we offer
- not have letters be a surprise to anyone creating a Notify account for
  the first time

Shouldn’t be merged until:
- [ ] https://github.com/alphagov/notifications-api/pull/1600
2018-01-24 16:34:05 +00:00
Chris Hill-Scott
9c02cf7f32 Add missing <form> on letters setting page
Pressing the big green button does nothing unless there’s a form on the
page.
2018-01-24 14:19:37 +00:00
Pete Herlihy
7b4610e8f0 And so did FCO Consular Services
So 142 and 61 now....
2018-01-24 13:57:23 +00:00
Pete Herlihy
36b9c3b967 Cafcass got in before we merged :)
60 orgs now and 141 services.
2018-01-24 13:57:22 +00:00
Pete Herlihy
8cc25e8cd7 135-140 ande 58-59
* ESFA IDAMS – Department for Education
* SRFT Care Call – Salford Royal NHS Foundation Trust
* Data Statistics – Ministry of Housing, Communities & Local Government
* Home Office Atlas – Home Office
* Bracknell Forest Council - Waste & Recycling – Bracknell Forest Council
2018-01-24 13:57:22 +00:00
Chris Hill-Scott
4391dff43b Content style fixes on request to go live page
It’s ‘per month’ – ‘a month’ is a colloquialism.

Large numbers should be chunked using commas; ‘20,000’ already is, this commit makes ‘1000’ consistent.
2018-01-24 13:24:03 +00:00
Pete Herlihy
58059ba507 Merge branch 'master' into cookie-page-updates 2018-01-24 12:30:02 +00:00
Chris Hill-Scott
86e21f2b4b Remove platform admin letter/international buttons
Users can choose whether to have these features on or off now. And
a platform admin can still use the same controls to switch the features
on or off on behalf of a user. There’s no need for the separate buttons.
2018-01-24 11:49:39 +00:00
Chris Hill-Scott
555392b5da Allows services to choose if they can send letters
Our support ticket analysis shows that the most common action request
after going live is turning on letters.

We just do this for any team that requests it – there’s no gatekeeping.
So we should just allow people to make the change themselves.

This will be a better experience for our users, and less work for us.
The design of the page replicates roughly what we have for international
text messaging.
2018-01-24 11:49:39 +00:00
Chris Hill-Scott
a44aee05cb Update date ranges to GOV.UK style 2018-01-24 11:33:26 +00:00
Pete Herlihy
707ee8e748 Reword the health warning in the roadmap. 2018-01-24 10:57:02 +00:00
Pete Herlihy
30cf635bee [WIP] Updated roadmap 23 Jan 2018 2018-01-24 10:57:01 +00:00
Pete Herlihy
e547732c78 Adding a link to the Notify blog 2018-01-24 10:43:48 +00:00
Chris Hill-Scott
efcc684f9d Add missing full stop 2018-01-24 10:39:31 +00:00
Chris Hill-Scott
eb95bcbdb1 ‘Onto’ not ‘on to’ 2018-01-24 10:38:01 +00:00
Chris Hill-Scott
e48fe539b9 Update cookie information link…
…to a more reputable-looking site.
2018-01-24 10:36:53 +00:00
Chris Hill-Scott
05c93822e0 Add information about pricing to inbound SMS page
One of the things that came out of the support analysis was that people
were asking how much inbound SMS costs. There wasn’t a significant
volume of these requests, but the fix seems low-effort and
non-disruptive enough that we should do it.

Content by Thom.
2018-01-22 14:05:45 +00:00
Chris Hill-Scott
fb28e6867c Merge branch 'master' into master 2018-01-19 12:18:17 +00:00
Leo Hemsted
e6400c43c4 Merge branch 'master' into bank-hols 2018-01-18 15:47:21 +00:00
Chris Hill-Scott
375e15511c Make page title match <h1>
This is what we do as convention, unless there’s a good reason not to, and is better than ’Email verification’.
2018-01-18 14:30:18 +00:00
Chris Hill-Scott
92674641ac Tell people they can close tab once email auth’d
We’ve seen people come back to this page once signed in and be confused what it’s for and how they get back to Notify.

The best way to avoid confusion is (we think) getting people to close this tab.
2018-01-18 14:30:17 +00:00
chrisw
e6690c8a78 Updated email preview to mimic sent emails 2018-01-17 16:54:35 +00:00
chrisw
e52921bc00 add view link in message log for letter notifications 2018-01-17 15:39:39 +00:00
Alexey Bezhan
a23efc9a93 Replace Deskpro ad-hoc requests with a client from utils
Moves the duplicated calls to Deskpro to notification_utils and
rewrites feedback and service go-live requests to use the shared
client.
2018-01-17 14:31:27 +00:00
Rebecca Law
86d1df2a31 Gunicorn will timeout a process after 30 seconds.
The marshmallow schema takes too long, we need to fix the performance of that first.
2018-01-17 12:47:15 +00:00
Rebecca Law
9cf392ed7f Merge branch 'master' into enable-download-link 2018-01-17 11:08:39 +00:00
Leo Hemsted
2edb1eb704 remove free sms fragment limit from go live flow 2018-01-16 17:40:31 +00:00
Pete Herlihy
1629ca4f67 131-135 and 55-58
* Department of Agriculture, Environment and Rural Affairs – DAERA Assisted Digital
* The National Archives – The National Archives
* Falkirk Council – My Falkirk 
* Ministry of Housing, Communities & Local Government – MHCLG
2018-01-16 13:02:14 +00:00
Leo Hemsted
f297beb9bc add 2018 and 2019 bank holidays
also refactor to use iso timestamps
2018-01-16 12:46:46 +00:00
Chris Hill-Scott
3b564b4f29 Add option for one off in request to go live
When we first made this form you couldn’t send one off messages with
Notify. It’s interesting to us because it might help identity teams who
would benefit from email auth, or other features that we build in the
future for caseworkers.
2018-01-16 11:41:47 +00:00
Chris Hill-Scott
48106f22a3 Include organisation type in request to go live
This is so we can catch organisations that are going live with the wrong
free text message allowance.
2018-01-16 11:41:47 +00:00
Chris Hill-Scott
e573f492db Check for unknown permissions
This guards against anyone mispelling or using the wrong words for a
permission, which could introduce unexpected or hard to catch errors.
2018-01-16 11:24:37 +00:00
Chris Hill-Scott
f2418c171c Move roles to models file
Any time we can keep code out of the view files is good. This user stuff
seems like a sensible place to put it, since we’re going to use it
there.
2018-01-16 11:23:48 +00:00
Chris Hill-Scott
d9a63c07a9 Refactor user permissions to use args, not list
This makes the interface a bit cleaner and less verbose.
2018-01-16 11:22:57 +00:00