Commit Graph

4973 Commits

Author SHA1 Message Date
Ken Tsang
4eea97c83b Add organisation to platform admin navigation 2018-02-12 12:27:06 +00:00
Chris Hill-Scott
3f5d9f418b Merge pull request #1856 from alphagov/diff-dom-update
Fix bug with disappearing AJAX content in IE 9/10
2018-02-12 12:17:50 +00:00
Chris Hill-Scott
35e7260d6f Fix bug with disappearing AJAX content in IE 9/10
We had a user report that the ‘inbound messages’ part of their dashboard
was appearing for a split second then disappearing.

This was caused by the Javascript on the page throwing an exception as
it was trying to re-render this part of the page. This meant it gave up
and rendered nothing.

The exception was caused by passing `undefined` as the second argument
to `.insertBefore`. This is acceptable in most browsers, but not older
versions of IE. This is fixed in the latest version of diffDOM (the 3rd
party library we use to do the AJAX stuff) by defaulting the second
argument to `.insertBefore` to `null`, which is acceptable in old IE
versions.

See the fix here: 8833d87e9d
2018-02-12 11:39:38 +00:00
Chris Hill-Scott
13f3e8d933 Merge pull request #1850 from alphagov/email-auth-host
Tell API what URL to use for email auth links
2018-02-09 17:02:46 +00:00
Chris Hill-Scott
52241b8f3e Use client from app in tests
Means we don’t have to instantiate it in every test, keeps things
consistent with parent commit.
2018-02-09 15:04:52 +00:00
Chris Hill-Scott
1908e7b091 Tell API what URL to use for email auth links
So that we can keep people on the prototype URL when doing user
research.

Depends on:
- [ ] https://github.com/alphagov/notifications-api/pull/1645
2018-02-09 15:01:20 +00:00
Chris Waszczuk
5254aa6765 Merge pull request #1817 from gov-cjwaszczuk/manage-api-keys-users-can-see-reply-tos
manage api keys permission should be able to see senders
2018-02-08 11:38:49 +00:00
chrisw
5d26d4457f manage api keys permission should be able to see senders 2018-02-08 11:25:49 +00:00
Chris Waszczuk
7f8e53ee96 Merge pull request #1843 from gov-cjwaszczuk/organisations-to-email-branding
Change organisations to email branding
2018-02-08 10:37:15 +00:00
chrisw
9ad4435d94 Change organisations to email branding 2018-02-07 17:41:23 +00:00
Pete Herlihy
d466de3405 Merge pull request #1845 from alphagov/144-147
144 - 147 services
2018-02-07 15:52:20 +00:00
Pete Herlihy
f36d284b6a 144 - 147 services
* Home Office – Notifying Sponsors - Curtailment Considerations Beta
* Cabinet Office – Register to vote
* Milton Keynes Council – MK MASH

No new orgs.
2018-02-07 13:28:39 +00:00
Chris Waszczuk
c2136b0ffb Merge pull request #1768 from gov-cjwaszczuk/add-letters-to-monthly-messages-sent
Include letters on monthly messages sent
2018-02-07 10:52:52 +00:00
Chris Hill-Scott
a819b30d35 Merge pull request #1837 from alphagov/minus-mou
Removed reference to MOU now that we have contracts and MOUs.
2018-02-05 11:56:38 +00:00
Chris Hill-Scott
711ec5d0f8 Remove quotation marks 2018-02-05 11:46:16 +00:00
Chris Hill-Scott
edac271dbf Update request to go live form too
We have an MOU and a contract now, not just an MOU.
2018-02-05 11:14:20 +00:00
Pete Herlihy
bbe26580ff Removed reference to MOU now that we have contracts and MOUs. 2018-02-05 10:32:23 +00:00
Chris Hill-Scott
30f89a0041 Merge pull request #1834 from alphagov/button-not-input
Use `<button>` not `<input>`s for form submission
2018-02-02 13:22:36 +00:00
Leo Hemsted
2856b8709d Merge pull request #1835 from alphagov/eventlet
run gunicorn with eventlet
2018-02-01 15:40:00 +00:00
Leo Hemsted
31112c9ecf run gunicorn with eventlet
this massively increases the horizontal parallellability by using async workers
2018-02-01 14:56:52 +00:00
Chris Hill-Scott
9aa4a7267a Use <button> not <input>s for form submission
Both `<button type='submit'>Submit<button>` and
`<input type='submit' value='Submit'>` can be used to submit a form.

We have historically[1] used `<input>` because it’s better-supported by
IE6 in that:
- the `submit` attribute is mandatory on `<button>`, not on `<input>`
- the `innerHTML` of a button will be submitted to the server, not the
  value (as in other browsers)

Reasons to now use `<button>` instead:
- IE6/7 support is no longer a concern (especially with deprecation of
  TLS 1.0 on the way)
- Because an `<input>` element can’t have children, the pseudo-element
  hack[2] used to ensure the top edge of the button is clickable doesn’t
  work. We’re seeing this bug[3] affect real users in research.

1. We inhereted our buttons from Digital Marketplace, here is me making
   that change in their code:  8df7e2e79e (diff-b1420f7b7a25657d849edf90a70ef541)
2. 24e1906c0d (diff-ef0e4eb6f1e90b44b0c3fe39dce274a4R79)

3. https://github.com/alphagov/govuk_elements/issues/545
2018-02-01 13:53:45 +00:00
Rebecca Law
6cc83b903d Merge pull request #1833 from alphagov/inbox-page-performance
Inbox page performance fix
2018-02-01 13:50:27 +00:00
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
chrisw
82302626ad Include letters on monthly messages sent 2018-01-30 12:08:46 +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