Commit Graph

3987 Commits

Author SHA1 Message Date
Chris Hill-Scott
4ff674158c Ensure trial mode error overrides too many rows
Telling users that they can’t send to more than 50 recipients in trial
mode doesn’t apply for letters (they can’t send to _any_ recipients).

So we should make sure that the error message about not being able to
send to any recipients always comes up instead of the 50 recipients one,
whether you’re trying to upload a file with 1 or 111 rows.
2017-08-08 11:13:48 +01:00
Chris Hill-Scott
8f40cbd2bb Don’t let users in trial mode send letters
Users in trial mode haven’t signed the MOU. This means that they haven’t
agreed to pay for any costs they incur.

Unlike text messages and emails, we don’t give you any free allowance of
letters. Sending _any_ letters will cost the user money.

Therefore we shouldn’t let users who haven’t agreed that they will pay
for the service to incur costs by sending letters.

The pattern used for this is roughly the same as other trial mode errors
that we have already, ie a red box that says you’re not allowed. Not
sure if this is exactly right because it’s not exactly an error so the
pattern might feel too heavy-handed.

Getting this in place means we can turn letters on for users in trial
mode without worrying that they’ll accidentally send real letters, which
would result in:
- us having to absorb those costs
- some awkward conversations
2017-08-08 10:10:06 +01:00
Chris Hill-Scott
f90bab8e0c Add whitespace to code for consistency
It’s harder to scan over all the different possible errors if some of
them are bunched up together with no line breaks between them.
2017-08-08 10:08:52 +01:00
Chris Hill-Scott
2fbf0acb08 Merge pull request #1405 from alphagov/new-video
Updated the video to the new one
2017-08-07 09:49:47 +01:00
Pete Herlihy
d5bc6743d8 Updated the video to the new one 2017-08-04 14:31:08 +01:00
kentsanggds
8b313ed8d1 Merge pull request #1404 from alphagov/ken-bump-utils-17.8
Bump utils version to fix dashes issue
2017-08-03 16:17:34 +01:00
Ken Tsang
75575db602 Bump utils version to fix dashes issue 2017-08-03 14:54:16 +01:00
Chris Hill-Scott
2a0cc082a5 Merge pull request #1401 from alphagov/pyup-update-pyexcel-0.5.2-to-0.5.3
Update pyexcel to 0.5.3
2017-08-02 10:55:57 +01:00
Chris Hill-Scott
4344669fe3 Merge pull request #1402 from alphagov/pyup-update-pytest-3.1.3-to-3.2.0
Update pytest to 3.2.0
2017-08-02 10:41:06 +01:00
pyup-bot
e5d692c436 Update pytest from 3.1.3 to 3.2.0 2017-08-01 23:39:08 +01:00
pyup-bot
7b10ca8a3e Update pyexcel from 0.5.2 to 0.5.3 2017-08-01 18:45:08 +01:00
Chris Hill-Scott
220d2fd9fb Merge pull request #1400 from alphagov/bump-utils-quotes-and-linebreaks
Bump utils to 17.7.0
2017-08-01 16:52:42 +01:00
Chris Hill-Scott
61bc10fd3e Bump utils to 17.7.0
Changes:
https://github.com/alphagov/notifications-utils/compare/17.5.7...17.7.0
2017-08-01 16:16:20 +01:00
Imdad Ahad
4adb4f2828 Merge pull request #1389 from alphagov/imdad-feat-show-last-used-message-delete-template
Update last used message when deleting a template
2017-08-01 14:39:50 +01:00
Imdad Ahad
5a81064f07 Update message for last used template on delete:
* API now returns an empty response if a template was last used more than seven
* days ago
* Handle the empty response appropriately
2017-08-01 13:51:27 +01:00
Chris Hill-Scott
21c8b6a8bf Merge pull request #1399 from alphagov/68-69
68-69 for Power of Attorney refunds
2017-08-01 11:54:21 +01:00
Chris Hill-Scott
f761214380 Merge pull request #1398 from alphagov/pyup-update-boto3-1.4.4-to-1.4.5
Update boto3 to 1.4.5
2017-08-01 11:54:13 +01:00
Chris Hill-Scott
3ecbbb459a Merge pull request #1396 from alphagov/pyup-update-pyexcel-io-0.4.2-to-0.4.3
Update pyexcel-io to 0.4.3
2017-08-01 11:54:09 +01:00
Pete Herlihy
3c91ef4c9b 68-69 for Power of Attorney refunds 2017-08-01 11:27:37 +01:00
pyup-bot
acd8afe402 Update boto3 from 1.4.4 to 1.4.5 2017-08-01 01:45:07 +01:00
Chris Hill-Scott
e37c5f50ec Merge pull request #1395 from alphagov/pricing-update
Update pricing page with letters and international
2017-07-31 11:38:04 +01:00
Chris Hill-Scott
3132056266 Merge pull request #1397 from alphagov/fix-big-number-platform-admin
Fix big numbers on new platform admin page
2017-07-31 11:37:58 +01:00
Chris Hill-Scott
97e0af86e4 Add title to platform admin homepage 2017-07-31 11:33:39 +01:00
Chris Hill-Scott
1e1dd49312 Fix big numbers on new platform admin page
Turns out the counts were all showing as zero because the generator had
already been consumed by the time we were trying to do the stats. Making
it a list comprehension means it can’t get exhausted.
2017-07-31 11:29:04 +01:00
Chris Hill-Scott
ec6e028a9a Merge pull request #1390 from alphagov/remove-deprecation-warnings
Rename imports to get rid of deprecation warnings
2017-07-31 09:37:26 +01:00
Chris Hill-Scott
41ee0ba9c8 Merge pull request #1382 from alphagov/break-up-platform-admin
Break up platform admin
2017-07-31 09:37:20 +01:00
Chris Hill-Scott
432db3180b Merge pull request #1379 from alphagov/consistent-banners
Make banners more consistent
2017-07-31 09:37:13 +01:00
pyup-bot
c495c7abab Update pyexcel-io from 0.4.2 to 0.4.3 2017-07-29 08:15:02 +01:00
Chris Hill-Scott
cd69003531 Merge pull request #1394 from alphagov/pyup-update-pytest-xdist-1.18.1-to-1.18.2
Update pytest-xdist to 1.18.2
2017-07-28 16:18:13 +01:00
kentsanggds
08ee08760a Merge pull request #1392 from alphagov/ken-update-org-logos-use-s3
Update org logos to use logo CDN
2017-07-28 15:27:10 +01:00
Ken Tsang
796fe0472f Renamed test 2017-07-28 15:19:20 +01:00
Chris Hill-Scott
f3d7eea43e Hide international pricing by default
It’s really big.
2017-07-28 15:16:40 +01:00
Chris Hill-Scott
10f81d5d16 Make pricing table searchable
uses the same pattern as searching templates by name.
2017-07-28 15:16:17 +01:00
Chris Hill-Scott
10b87e433b Add international pricing table 2017-07-28 15:16:07 +01:00
Chris Hill-Scott
a1880bddda Add letter pricing table 2017-07-28 15:15:36 +01:00
Chris Hill-Scott
6d9434d968 Re-order page ready for new stuff 2017-07-28 15:15:02 +01:00
pyup-bot
c593cb4a8d Update pytest-xdist from 1.18.1 to 1.18.2 2017-07-28 12:33:04 +01:00
Pete Herlihy
3cbb7d1bcd Merge pull request #1393 from alphagov/features---local
Added some service level stuff
2017-07-28 11:35:54 +01:00
Pete Herlihy
506439431b Added some service level stuff 2017-07-28 11:17:04 +01:00
Chris Hill-Scott
a2107a7d6b Merge pull request #1391 from alphagov/fix-trial-mode-error
Fix error messages on one off sending
2017-07-27 16:37:38 +01:00
Chris Hill-Scott
5c9572805e Fix error messages on one off sending
This was causing a 500 in production.

This commit:
- reverts the code the working state it was before 68a1426e58
- figures out a way to make the tests pass without breaking the actual
  app
- confirms that mocking things is hard
2017-07-27 16:34:15 +01:00
Ken Tsang
9c99381650 Remove logo bucket from config 2017-07-27 16:33:56 +01:00
Ken Tsang
123247a178 Refactor test 2017-07-27 16:30:26 +01:00
Ken Tsang
35f66cae23 Update emails to use logos cdn 2017-07-27 16:10:59 +01:00
Chris Hill-Scott
5c49c08db7 Rename imports to get rid of deprecation warnings
These imports have moved. One day importing them by the old name will
stop working. For now they just leave a warning in our logs. But better
not to have those warnings in our logs.
2017-07-27 15:17:17 +01:00
Leo Hemsted
a60b3b4bc2 Merge pull request #1381 from alphagov/remove-credstash
remove credstash
2017-07-27 13:11:40 +01:00
Leo Hemsted
5d70b0edb0 remove credstash 2017-07-27 12:43:08 +01:00
Chris Hill-Scott
17a7f5f2c6 Remove last used message if key’s never been used
I don’t think it adds anything to tell you that a key’s never been used.
The value of the ‘key was used 3 minutes ago’ message is in stopping you
accidentally revoking something you shouldn’t have.
2017-07-27 11:52:55 +01:00
Chris Hill-Scott
e2bd2e0439 Ensure only one <h1> per page, even with errors
A page should have only one `<h1>` element. So if there’s an error
message, which contains a `<h1>`, it should replace the page’s normal
`<h1>` element, rather than sit above it.
2017-07-27 11:52:54 +01:00
Chris Hill-Scott
befe93ec0b Make sure confirmation/danger banners have a H1
This makes errors on all pages have a `<h1>` element, which is important
for accessibility. It means a bit of rewriting the messages, but I think
they’re better for it.
2017-07-27 11:52:54 +01:00