Commit Graph

5293 Commits

Author SHA1 Message Date
Chris Hill-Scott
0d6d4e461a Add wording to download page 2018-03-27 11:35:17 +01:00
Chris Hill-Scott
68292d2299 Add endpoints to serve the agreement
Rather than making users contact us to get the agreement, we should just
let them download it, when we know which version to send them.

This commit adds two endpoints:
- one to serve a page which links to the agreement
- one to serve the agreement itself

These pages are not linked to anywhere because the underlying files
don’t exist yet. So I haven’t bothered putting real content on the page
yet either. I imagine the deploy sequence will be:

1. Upload the files to the buckets in each environment
2. Deploy this code through each enviroment, checking the links work
3. Make another PR to start linking to the endpoints added by this
   commit
2018-03-27 11:35:17 +01:00
Chris Hill-Scott
d1ae9cc1a6 Merge pull request #1984 from alphagov/pyup-update-pytest-3.4.2-to-3.5.0
Update pytest to 3.5.0
2018-03-23 10:55:15 +00:00
pyup-bot
3b1a57174d Update pytest from 3.4.2 to 3.5.0 2018-03-23 00:54:53 +00:00
Chris Hill-Scott
1b09c80eaf Merge pull request #1982 from alphagov/gov-scot
Add Scottish Government to list of domains
2018-03-22 16:06:00 +00:00
Chris Hill-Scott
b27021fe49 Add Scottish Government to list of domains 2018-03-22 15:55:58 +00:00
Chris Hill-Scott
2a0b706720 Merge pull request #1981 from alphagov/pins
Add The Planning Inspectorate to list of domains
2018-03-22 13:28:21 +00:00
Chris Hill-Scott
1afae28ae6 Add The Planning Inspectorate to list of domains 2018-03-22 11:54:11 +00:00
Chris Hill-Scott
ba11912a04 Merge pull request #1980 from alphagov/f-no-sa
Add alternative Food Standards Agency domain
2018-03-22 11:10:39 +00:00
Chris Hill-Scott
de6f2da2e7 Merge pull request #1978 from alphagov/richmond-wandsworth
Add Richmond and Wandsworth London boroughs
2018-03-22 11:10:33 +00:00
Chris Hill-Scott
ea5b95a175 Add alternative Food Standards Agency domain 2018-03-22 10:47:19 +00:00
Chris Hill-Scott
37392fb1da Add Richmond and Wandsworth London boroughs
Their IT is managed jointly, so they’ve signed the agreement for both.
2018-03-22 09:38:36 +00:00
Leo Hemsted
0c88556d17 Merge pull request #1977 from alphagov/human-readable-day
fix relative datetime function to handle dates correctly
2018-03-21 16:21:43 +00:00
Chris Waszczuk
59803348a4 Merge pull request #1974 from alphagov/org-links-dont-show-if-user-doesnt-have-permissions
Org links don't show if user doesn't have permissions
2018-03-21 16:15:42 +00:00
Leo Hemsted
df30562216 fix relative datetime function to handle dates correctly
Previously, we were looking at the day of the week - so messages sent
six days ago would show up as "tomorrow". We now look at the actual
date, so that won't happen again.

We were also subtracting an hour to make 00:00 this evening show up as
"midnight today", despite it technically being tomorrow. However, this
means that 00:59 tomorrow morning would show up as "00:59 today", a
full day out. So reduce that to just a minute, so it doesn't affect
other times of day.
2018-03-21 16:08:09 +00:00
chrisw
c47a4ab830 org links don't show if user doesn't have permissions 2018-03-21 15:23:01 +00:00
Chris Hill-Scott
cabd99d69a Merge pull request #1976 from alphagov/quis-patch-1
Fix untypographic apostrophe
2018-03-21 14:46:24 +00:00
Chris Hill-Scott
3d7422a8f6 Fix untypographic apostrophe
😱
2018-03-21 14:42:24 +00:00
Chris Hill-Scott
7e96a897b1 Merge pull request #1975 from alphagov/hmcts-gsi
Add canonical HMCTS domain
2018-03-21 14:34:35 +00:00
Chris Hill-Scott
4b2641d977 Merge pull request #1962 from alphagov/pyup-update-notifications-python-client-4.7.2-to-4.8.1
Update notifications-python-client to 4.8.1
2018-03-21 14:34:28 +00:00
Chris Hill-Scott
0f8a6ca2fb Merge pull request #1969 from alphagov/no-free-text-from-url
Don’t populate support form with arbitrary text
2018-03-21 14:34:19 +00:00
Chris Hill-Scott
b2c21569ed Merge pull request #1958 from alphagov/pyup-update-pyexcel-xls-0.5.5-to-0.5.6
Update pyexcel-xls to 0.5.6
2018-03-21 14:34:09 +00:00
Chris Hill-Scott
654fe7d97d Add canonical HMCTS domain 2018-03-21 10:27:40 +00:00
Katie Smith
674e66edf3 Merge pull request #1973 from alphagov/display-new-virus-states
Display new virus states
2018-03-21 10:17:12 +00:00
Katie Smith
bc5f4c145a Delete duplicated tests
test_api_keys.py and test_api_integration.py were almost identical
files with only a few lines difference between them. By moving one
test we can now delete test_api_keys.py
2018-03-20 16:10:37 +00:00
Chris Hill-Scott
64b5f03dcd Don’t populate support form with arbitrary text
I don’t think it’s a massive risk (we’re certainly mitigating against
any XSS), but having a page on a GOV.UK domain where you can prefill
text on the page from a query string probably isn’t great.

So this commit restricts prefilling the support form to a set of
named questions.
2018-03-20 16:07:23 +00:00
Katie Smith
4db75f6a58 Display the two new virus states for letters
Precompiled letters can now have two additional states:
* pending-virus-check
* virus-scan-failed

Both new states should show in the notifications dashboard, and
virus-scan-failed should appear as an error state, with a descriptive
message. You should not be able to preview a letter in one of the two
new states, so the preview link has been removed for precompiled letters
in these states.
2018-03-20 14:54:29 +00:00
Chris Hill-Scott
6ba4cbc93c Merge pull request #1971 from alphagov/176-183
176-183 services
2018-03-20 14:26:42 +00:00
Chris Hill-Scott
c0ef1e28ee Merge pull request #1970 from alphagov/mcga
Record agreement signed by Maritime and Coastguard Agency
2018-03-20 14:26:32 +00:00
Chris Hill-Scott
235461243e Merge pull request #1972 from alphagov/contrast-logo-backgrounds
Make email branding logo backgrounds higher contrast
2018-03-20 14:26:25 +00:00
Chris Waszczuk
5f65bb5e56 Merge pull request #1968 from alphagov/fixed-session-overriding-while-uploading-csvs-2
Fixed sessions overriding while uploading csvs
2018-03-20 13:45:33 +00:00
Chris Hill-Scott
ca26db14d4 Make email branding logo backgrounds higher contrast
So you can see both white and black foreground on transparent backgrounds.
2018-03-20 13:30:44 +00:00
chrisw
287230acac fixed sessions overriding while uploading csvs 2018-03-20 12:15:17 +00:00
Pete Herlihy
71c0db8e7c 176-183 services
* Ministry of Justice – Apply to court about child arrangements
* The Valuation Office Agency – Valuation Office Agency CCA
* Pembrokeshire County Council – IT Development
* Home Office – HMPO Liverpool
* Department for Work and Pensions – Check  your State Pension
* Home Office – HMPO Newport
* Maritime & Coastguard Agency – MCA messaging service
2018-03-20 12:01:54 +00:00
Chris Hill-Scott
2b236e4827 Record agreement signed by Maritime and Coastguard Agency 2018-03-20 11:39:58 +00:00
kentsanggds
91adca10b5 Merge pull request #1961 from alphagov/ken-show-client-reference
Add client reference to API Integration / message log
2018-03-20 10:54:47 +00:00
Leo Hemsted
a6eeb3cd73 Merge pull request #1967 from alphagov/login-redirect
redirect to show_accounts_or_dashboard on login
2018-03-19 16:57:55 +00:00
Leo Hemsted
e000552e56 redirect to show_accounts_or_dashboard on login
show_accounts_or_dashboard has logic about where you should redirect
to. If we let it do this, then that's nicer than duplicating its
logic. We found that it wasn't accounting for orgs in redirects
properly.
2018-03-19 16:41:16 +00:00
Chris Hill-Scott
19817b03ee Merge pull request #1966 from alphagov/cst-not-c
Remove Council for Science & Technology
2018-03-19 16:26:18 +00:00
Ken Tsang
c3238d8f68 Tests page when client_reference exists in noti 2018-03-19 16:12:14 +00:00
Leo Hemsted
90c40075c8 Merge pull request #1954 from alphagov/choose-accounts
Choose accounts
2018-03-19 15:26:06 +00:00
Chris Hill-Scott
2979fbc5b4 Merge pull request #1965 from alphagov/checkered-logos
Put checkered background behind email branding
2018-03-19 14:11:36 +00:00
Chris Hill-Scott
62abae80fe Remove Council for Science & Technology
They’re not a council in the sense of a local council.
2018-03-19 14:05:33 +00:00
Chris Hill-Scott
290424c4eb Put checkered background behind email branding
This will stop images which are white with a transparent background
being invisible in the admin app (and accidentally getting overwritten).
2018-03-19 13:11:32 +00:00
Chris Hill-Scott
cd3910556c Merge pull request #1960 from alphagov/dont-validate-across-channels
Don’t validate phone numbers when sending emails
2018-03-16 14:59:42 +00:00
Chris Hill-Scott
ee3ef18ebf Merge pull request #1959 from alphagov/pricing-mou-consistency
Make pricing page consistent in talking about MoU
2018-03-16 14:59:35 +00:00
pyup-bot
3b95a52ea4 Update notifications-python-client from 4.7.2 to 4.8.1 2018-03-16 14:54:33 +00:00
Ken Tsang
f4a3ec028e Add client reference to API Integration / message log
- makes it clearer for users and easier to copy
- also updated text in preview message
2018-03-16 14:41:07 +00:00
Chris Hill-Scott
5a2fafb66b Don’t validate phone numbers when sending emails
If you have a placeholder called `((phone number))` in your email
template, and you try to send a one-off message then the form input will
attempt to validate your ‘phone number’.

This is not helpful if you’re trying to put a landline number in your
email, for example.

This only affects messages being sent through the one-off interface.

This commit makes the form be aware of template type, which fixes the
problem.
2018-03-16 14:17:43 +00:00
Chris Hill-Scott
c2bc7eca2c Make pricing page consistent in talking about MoU
We shouldn’t tell people on one page (the terms page) that we know about
their organisations agreement and then on the pricing page tell them to
contact us to find out what we know about the agreement.

So this commit adds the same logic from the terms page to the pricing
page, with wording that makes sense in the pricing context.
2018-03-16 13:10:40 +00:00