Commit Graph

10714 Commits

Author SHA1 Message Date
David McDonald
657bd72d73 make freeze 2020-10-26 14:00:12 +00:00
pyup-bot
5e7d3b1d07 Update eventlet from 0.28.0 to 0.29.1 2020-10-26 13:53:04 +00:00
pyup-bot
bd2f6e7cd1 Update humanize from 3.0.1 to 3.1.0 2020-10-26 13:53:03 +00:00
karlchillmaid
5424f511f9 Merge pull request #3697 from alphagov/update-roadmap
Remove July to September section from roadmap
2020-10-26 12:57:04 +00:00
Chris Hill-Scott
b02ebe34b4 Merge pull request #3682 from alphagov/broadcast-highlighted-navigation
Make sure the correct navigation item is highlighted when viewing broadcasts
2020-10-26 12:25:36 +00:00
Chris Hill-Scott
f3cf080a5c Rename variable to be more precise 2020-10-26 11:09:13 +00:00
Chris Hill-Scott
725df2e7fa Add test for back link on view broadcast page 2020-10-26 11:06:27 +00:00
Chris Hill-Scott
eec4602efc Redirect to correct endpoint based on state
If you refresh the page on a current broadcast while someone has
cancelled it you’ll see the wrong navigation item selected. This commit
adds redirects to take you to the correct endpoint in these edge cases.
2020-10-26 10:50:09 +00:00
Chris Hill-Scott
d793d08ae7 Fix back links when viewing a broadcast
Where you go back to from a broadcast can now depend on whether it’s
a current or previous broadcast.
2020-10-26 10:50:09 +00:00
Chris Hill-Scott
b54d49196b Ensure correct selected nav item on broadcast page
Once a broadcast has been submitted for approval it either lives on the
‘Current alerts’ or ‘Previous alerts’ page, depending on where it is
in its lifecycle.

Therefore when clicking into a broadcast from one of those pages the
same navigation item should remain selected.

Because we select the navigation items based on the request endpoint,
this means we need an endpoint for each navigation page, even if the
content of the pages will be the same in both cases.

This commit adds the two new end points, removes the old, single
endpoint and updates links to point to the new endpoint.
2020-10-26 10:50:09 +00:00
karlchillmaid
7975c62d60 Update order of roadmap items 2020-10-23 15:28:41 +01:00
karlchillmaid
8d391e7761 Update roadmap 2020-10-23 15:25:38 +01:00
karlchillmaid
d884d11e1a Update app/templates/views/roadmap.html
Co-authored-by: Chris Hill-Scott <me@quis.cc>
2020-10-23 13:43:47 +01:00
Tom Byers
92b735f6e4 Merge pull request #3694 from alphagov/remove-issue-from-accessibility-statement
Remove issue from accessibility statement
2020-10-23 13:37:41 +01:00
Chris Hill-Scott
e65f910f87 Merge pull request #3699 from alphagov/allow-update-rate-limit
Allow rate limit to be updated
2020-10-23 13:15:23 +01:00
Chris Hill-Scott
d930c885e7 Allow rate limit to be updated
This bit of code is just a safety check to make sure we don’t
inadvertently updating something we shouldn’t (see
0cfe10639a for context).

`rate_limit` is something we allow the admin app to update now (as of
939029a9be).
2020-10-23 13:00:28 +01:00
Chris Hill-Scott
57fc209f44 Merge pull request #3690 from alphagov/set-message-limit
Remove the `upload_letters` permission
2020-10-23 12:27:28 +01:00
Chris Hill-Scott
7231f8a168 Merge pull request #3695 from alphagov/back-link-conversation
Add a back link to the conversation page
2020-10-23 12:21:40 +01:00
Chris Hill-Scott
c0518bfb78 Merge pull request #3696 from alphagov/fix-typo-letter-spec
Fix typo on letter specification page
2020-10-23 12:20:48 +01:00
Chris Hill-Scott
939029a9be Merge pull request #3692 from alphagov/set-rate-limit
Allow platform admins to change rate limit
2020-10-23 12:19:07 +01:00
Chris Hill-Scott
43b4acf1f9 Allow platform admins to change rate limit
One less thing we have to go into the database to do, and remember to
manually clear the cache for after.
2020-10-23 12:05:45 +01:00
Tom Byers
1d7e4aa942 Add test for accessibility statement last review
This is a proposal of a way to test that changes
to this page include updates to the 'last
reviewed' date, if needed.
2020-10-23 11:23:41 +01:00
Tom Byers
a217fd6b05 Remove issue with CSV table for low vision users
The following issues were raised with the table
that replays CSV data to users:
1. the table could not be located by low vision
   users using the reflow technique
2. the content should be presented in a single
   column when the reflow technique is used

Number 2. came from the Web Content Accessibility
guidelines (WCAG) success criteria 1.4.10 Reflow.

I wasn't able to reproduce number 1. so asked the
Digital Accessibility Centre (DAC), who tested it
originally, for help. Tom Shaw from DAC kindly
retested it and found the problem was gone so I am
considering it fixed.

I am treating number 2. as a misinterpretation of
the success criteria as it lists data tables as an
exception to the rule:

"Except for parts of the content which require
two-dimensional layout for usage or meaning.

...Examples of content which requires
two-dimensional layout are images, maps, diagrams,
video, games, presentations, data tables, and
interfaces where it is necessary to keep toolbars
in view while manipulating content."

The full page is here:

https://www.w3.org/WAI/WCAG21/Understanding/reflow.html
2020-10-23 11:02:19 +01:00
Chris Hill-Scott
7424cb37a3 Don’t talk about letters if the user can’t send them 2020-10-23 10:57:19 +01:00
Chris Hill-Scott
af79c8c878 Add a back link to the conversation page
We must have missed this when adding back links to all the pages.
2020-10-23 10:53:23 +01:00
karlchillmaid
52d933f62c Remove July to September section from roadmap 2020-10-23 10:44:10 +01:00
karlchillmaid
eac69351bd Fix typo 2020-10-23 10:43:45 +01:00
David McDonald
37187b5757 Merge pull request #3698 from alphagov/py-xls-version
Upgrade pyexcel-xls version
2020-10-23 10:40:21 +01:00
David McDonald
5ed480acf9 Upgrade pyexcel-xls version
version 0.6.0 was accidently removed from pypi, see
https://github.com/pyexcel/pyexcel-xls/issues/40. the solution is to
upgrade to 0.6.1
2020-10-23 10:29:12 +01:00
Tom Byers
c13a7797b4 Merge pull request #3693 from alphagov/fix-update-date-on-accessibility-statement
Fix last date statement was updated
2020-10-21 17:27:08 +01:00
Tom Byers
3bc2fffbb2 Fix last date statement was updated
The accessibility statement was last updated on 9
October 2020 but without the 'last reviewed' date
being updated.

The changes were contained in this pull request
which was merged the same day and reached
production at 2.13pm.

https://github.com/alphagov/notifications-admin/pull/3677
2020-10-21 16:05:47 +01:00
David McDonald
e6c02db470 Merge pull request #3691 from alphagov/redis-bug
Fix incorrect redis key deleting
2020-10-21 11:26:36 +01:00
David McDonald
922d43ea1a Update tests/app/notify_client/test_service_api_client.py
Co-authored-by: Chris Hill-Scott <me@quis.cc>
2020-10-21 11:18:09 +01:00
David McDonald
2921c7302c Fix incorrect redis key deleting
We were trying to delete the old 'template-{template-id}' keys but
should have been deleting the new keys which have the service id as part
of the key name. This was causing the cache to not be correctly purged
when we did things like update sender names or set defaults. This should
fix it.
2020-10-21 11:14:23 +01:00
Chris Hill-Scott
882baadfe3 Merge pull request #3681 from alphagov/adjust-hierarchy-broadcast-page
Re-order hierarchy of information when viewing a single broadcast
2020-10-20 12:06:57 +01:00
Chris Hill-Scott
f549168b5e Remove the upload_letters permission
Every service has it now, and we haven’t had any services ask to toggle
it off again.
2020-10-20 11:30:08 +01:00
Chris Hill-Scott
fcd34ef989 Merge pull request #3689 from alphagov/set-message-limit
Allow platform admins to change daily message limit
2020-10-20 10:34:58 +01:00
Chris Hill-Scott
3735d5d4e1 Merge pull request #3688 from alphagov/display-data-retention-better
Make custom data retention look a bit nicer
2020-10-20 10:34:48 +01:00
Chris Hill-Scott
268929a093 Allow platform admins to change daily message limit
One less thing we have to go into the database to do, and remember to
manually clear the cache for after.
2020-10-19 17:44:32 +01:00
Chris Hill-Scott
9b7357025c Make custom data retention look a bit nicer
This should make it easier to see what’s set without having to click
into the table.
2020-10-19 16:56:36 +01:00
Chris Hill-Scott
e5de00e0ce Merge pull request #3686 from alphagov/pyup-scheduled-update-2020-10-19
Scheduled weekly dependency update for week 42
2020-10-19 15:11:39 +01:00
Chris Hill-Scott
4783ba1466 Freeze requirements 2020-10-19 15:03:07 +01:00
pyup-bot
4d9832de37 Update pyexcel-io from 0.6.2 to 0.6.3 2020-10-19 14:53:02 +01:00
Chris Hill-Scott
0e39208546 Associate start time with live
Start time is much more important than end time.
2020-10-19 14:29:50 +01:00
Chris Hill-Scott
91e74929eb Use live indicator on individual broadcast page
So the view of an individual broadcast feel consistent when coming from
the dashboard.
2020-10-19 14:29:09 +01:00
Chris Hill-Scott
ba535523df Move end time to bottom of page
End time is less important than the status of the broadcast, or when it
was started (eg when it was received by most people in the area).
2020-10-19 14:29:09 +01:00
Chris Hill-Scott
6937e06ad5 Move the ‘who did what’ stuff to the bottom
The most important part of the broadcast is what content was sent where
(and when).

This commit reduces the priority of the ‘meta’ information, like who
prepared and approved the broadcast. I also think that the ‘end’ time is
a lot less important than the start time, since most people will receive
the alert at or near to the start time.
2020-10-19 14:25:42 +01:00
Chris Hill-Scott
a43321cbb3 Swap order of message and areas
This then matches the order in which the message is drafted, first the
content, then the areas. It also matches the order we’re going to have
on the new dashboard.
2020-10-19 14:25:42 +01:00
Chris Hill-Scott
274eff5f25 Merge pull request #3680 from alphagov/show-broadcast-content
Show preview of content for broadcast messages and templates
2020-10-19 14:22:41 +01:00
Chris Hill-Scott
1f90e21354 Merge pull request #3685 from alphagov/remove-styleguide
Remove the styleguide
2020-10-16 11:45:29 +01:00