Commit Graph

10729 Commits

Author SHA1 Message Date
Tom Byers
0aa1dd89e9 Make hint text focus colour match link 2020-10-27 17:15:58 +00:00
Tom Byers
ae24f7b707 Remove backslash from choose-reply page
Looks like it was missed out from when they were
all changed to chevrons:

e731dd70d1
2020-10-27 17:15:58 +00:00
Tom Byers
a5c87367ee Fix class names of copy template links 2020-10-27 15:55:57 +00:00
Tom Byers
91faa1a874 Fix class names of choose-reply links
The links for templates without ancestors didn't
have a `.template-list-template` class so miss out
on styling given to the other links in the list.
2020-10-27 15:55:57 +00:00
Tom Byers
43d7d0a034 Fix hint text colour contrast when focused
Uses a colour that will be added to the core
palette in GOVUK Frontend.

See: https://design-system.service.gov.uk/styles/colour/#main-colours
2020-10-27 15:55:57 +00:00
Tom Byers
744d76e8d9 Replace old focus CSS for message-name/-type
Template list items without checkboxes use the
`.message-name` and `.message-type` classes for
their links and hints.

This means styles used to expand the focus area
previously are clashing with the new approach.

This removes the old ones and gives
`.message-type` paragraphs a non-static position
to give them a z-position and so raise them above
the expanded link area.
2020-10-27 15:55:57 +00:00
Tom Byers
5058727587 Tweak template-list items on mobile
The font-size goes down to 16px on mobile. This
changes the line-height too which makes it too
small. This bumps it back up the be the same as on
desktop which makes space for the icon (if a
folder) and gives the link more space.

Also reduces the horizontal space between the icon
and its link by the same amount the font-size
changes.
2020-10-27 15:55:57 +00:00
Tom Byers
3263706fcd Reset click size of template list link
Was previously larger for links at the root level
but this was lost when the HTML for these items
was changed.

See
https://github.com/alphagov/notifications-admin/pull/2750
for details on the previous style.
2020-10-27 15:55:57 +00:00
Chris Hill-Scott
340d66246a Merge pull request #3702 from alphagov/combine-pending-current
Combine pending and live alerts
2020-10-27 15:15:55 +00:00
Chris Hill-Scott
e2e04b51fc Sort broadcasts by start time
For emails and text messages we sort by the time the user (or API) sent
them.

This makes sense for broadcasts too, since most users will receive the
alert within seconds of it being broadcast.

For alerts that haven’t started yet we can sort by `updated_at`, which
is when the user preparing the broadcast submitted it for approval.
2020-10-27 13:12:46 +00:00
Chris Hill-Scott
74e92e708e Add status to alerts pending approval
Now that pending alerts aren’t in their own section there’s nothing to
label them as pending. So this commit replaces the extra metadata we
show for a pending alert (the name of the person who created it, which
was only ever a reckon) with an explicit label that says it’s waiting
for approval.
2020-10-27 13:12:36 +00:00
Chris Hill-Scott
24bafba29c Combine current and pending broadcasts
Splitting the dashboard into multiple sections was confusing, and people
sometimes mistook the headings as labels, especially when a section was
empty. It just wasn’t clear what the hierarchy of the page was.

This commit combines the current and pending broadcasts into one list
on the dashboard. Previous broadcasts have already moved to their own
page.
2020-10-27 13:12:25 +00:00
Katie Smith
0ff0807853 Merge pull request #3704 from alphagov/letters-optional-content
Document optional content in letters
2020-10-27 11:36:40 +00:00
Katie Smith
b98f817903 Document optional content in letters 2020-10-27 09:19:19 +00:00
David McDonald
ef68970a8d Merge pull request #3703 from alphagov/pyup-scheduled-update-2020-10-26
Scheduled weekly dependency update for week 43
2020-10-26 14:37:53 +00:00
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