Commit Graph

4950 Commits

Author SHA1 Message Date
Rebecca Law
5dedeaa89c Remove reversed in favour of reverse=True 2018-02-01 13:43:16 +00:00
Rebecca Law
07e5e67bd0 The performance of the inbox page had degraded to the point of failing to load.
We pin pointed the problem to a bad loop that was calling the format_phone_number_human_readable 216 for 25 rows, yikes.

This PR fixes that performance problem.
2018-02-01 13:26:28 +00:00
Pete Herlihy
0d23775a62 Adding a note about how to pay to the pricing page 2018-02-01 10:40:29 +00:00
Chris Hill-Scott
aca5004b62 Merge pull request #1831 from alphagov/doc-new-tab
Open links to client documentation in a new tab
2018-01-31 14:04:16 +00:00
Chris Hill-Scott
e97e3faced Merge pull request #1828 from alphagov/142-144
142-144 for Home Office Bus Continuity and CO Public Appointments
2018-01-31 13:47:02 +00:00
Chris Hill-Scott
a334ff804d Merge pull request #1829 from alphagov/pyup-update-pytest-3.3.2-to-3.4.0
Update pytest to 3.4.0
2018-01-31 13:46:53 +00:00
Chris Hill-Scott
7fdee279c8 Open links to client documentation in a new tab
In research we saw developers having difficulty getting back to Notify once they’d 
navigated to the documentation.

One way we think this might be alleviated is by keeping Notify open in the same tab,
and having the documentation open in a new tab.

It’s polite to tell users that this is going to happen.

`rel=noopener` stops the site we’re redirecting people to (Github) have script 
access to the orginal Notify tab (see https://mathiasbynens.github.io/rel-noopener/ )
original Notify
2018-01-31 13:43:17 +00:00
Chris Hill-Scott
cd43f8213e Merge pull request #1830 from alphagov/blood
Allow full stops in SMS senders
2018-01-31 11:32:49 +00:00
Chris Hill-Scott
934a271322 Allow full stops in SMS senders
We have a team who want their (short) web address as the text message
sender. This commit updates the validation of text message senders to
allow `.` as a valid character, which is currently blocking them from
doing this.

We can be fairly confident this works because:

- the team are sending large volumes of messages already with their
  existing provider
- we’ve tested it with all combinations of
  - both our text message providers
  - an Android phone and n iPhone
2018-01-31 11:11:44 +00:00
Chris Hill-Scott
b9e5194fbd Add test case for spaces
Turns out we accept spaces in text message senders. But there was no
test case which covered this.
2018-01-31 11:11:40 +00:00
Chris Hill-Scott
0ff2daab20 Add valid and invalid examples to SMS sender tests
I personally think it’s more robust to have a test also cover the
counter-fact.

And it’s easy to understand what’s going on if you can see the valid and
invalid examples side by side.
2018-01-31 11:11:35 +00:00
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
pyup-bot
cea19c7e23 Update pytest from 3.3.2 to 3.4.0 2018-01-30 23:18:53 +00:00
Pete Herlihy
7901dcdf8f 142-144 for Home Office Bus Continuity and CO Public Appointments 2018-01-30 12:32:11 +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
57b711ebdc Adding Highways England to allowed domains tests 2018-01-30 11:22:17 +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
7cf3bf3dcb Merge pull request #1826 from alphagov/permissions-tweaks
Change display of cancelled users, fix edit link
2018-01-29 15:32:00 +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
6fcb2dfde7 Merge pull request #1823 from alphagov/combine-team-members
Make team members list easier to manage
2018-01-29 13:25:41 +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
Sakis
73a685eb0a Merge pull request #1822 from alphagov/remove-staging-syslog-drain
Remove syslog drain from staging
2018-01-26 16:56:24 +00:00
Athanasios Voutsadakis
d2eda58404 Remove syslog drain from staging 2018-01-26 16:44:54 +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
342e6d7319 Merge pull request #1821 from alphagov/heading-wrap
Allow page headings to word-wrap
2018-01-26 16:13:00 +00:00
Chris Hill-Scott
0116e7aa59 Merge pull request #1798 from alphagov/npm-update
Update NPM packages to the latest version
2018-01-26 16:10:13 +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
7ab6e8acda Merge pull request #1816 from alphagov/add-form-letter-setting
Add missing <form> on letters setting page
2018-01-24 15:01:20 +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
Chris Hill-Scott
f27fae99f4 Merge pull request #1810 from alphagov/135-140
135-140 ande 58-59
2018-01-24 14:10:26 +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
8cdba20d74 Merge pull request #1814 from alphagov/rtgl-content-style
Content style fixes on request to go live page
2018-01-24 13:57:05 +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
Chris Hill-Scott
2d4d3d3d31 Merge pull request #1813 from alphagov/cookie-page-updates
Cookie page updates
2018-01-24 13:23:33 +00:00
Pete Herlihy
58059ba507 Merge branch 'master' into cookie-page-updates 2018-01-24 12:30:02 +00:00
Chris Hill-Scott
2520517cb2 Merge pull request #1803 from alphagov/self-serve-letters
Allows services to choose if they can send letters
2018-01-24 12:21:20 +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