Commit Graph

4854 Commits

Author SHA1 Message Date
Chris Hill-Scott
6531a0c761 Merge pull request #1784 from alphagov/link-each-recipient
Link to previews of each recipient in a spreadsheet
2018-01-16 10:42:48 +00:00
Chris Hill-Scott
784f577c4d Improve redraw performance
It’s noticeable when clicking from row to row in the spreadsheet that
the page jumps around a fair bit on load because there are a couple of
Javascript-powered components.

This commit makes sure:
- the radio select component doesn’t change height when rendering for
  the first time
- the scrollable table doesn’t show parts of the table that should be
  hidden by overflow for a fraction of second before all the JS has
  run
- the right-hand shadow on horizontally scrollable tables doesn’t fade
  in on initial page load but shows at 100% opacity immediately
2018-01-15 14:45:38 +00:00
Chris Hill-Scott
072f8e0f87 Make row in URL match displayed row
Spreadsheets start at row 1 (the header row), and the values don’t start
until row 2. The row numbers in our URLs start at 0, which is a concept
that only makes sense to programmers.

It’s more predictable and consistent to make the number in the URL match
the row number displayed on the page when previewing the spreadsheet.
2018-01-15 14:45:38 +00:00
Chris Hill-Scott
b95a7403b4 Make clickable area of link bigger
Fitt’s law[1] states that bigger click areas are quicker and easier for
people to click. Therefore we should make click areas as big as
possible, without being ambiguous about what the outcome of clicking
will be or increasing the potential for accidental clicks.

The click areas of the row numbers in the table were very small – this
commits makes them as big as the containing table cells.

Uses this technique to achieve the bigger click areas without disrupting
the layout:
http://authenticff.com/journal/css-pro-tip-expanding-clickable-area

1. https://en.wikipedia.org/wiki/Fitts%27s_law
2018-01-15 14:45:37 +00:00
Chris Hill-Scott
ba0a010d64 Link each row in the spreadsheet
We’ve heard from some users, especially those sending letters, that
they’d like to check that a spreadsheet they’ve uploaded has populated
the template correctly.

My reckon is that seeing just one row of the spreadsheet populate the
template isn’t enough to give people confidence that everything’s
working properly.

This commit adds links to all but the currently-previewed row. Clicking
that link will populate the preview with values from that row. These
pages already exist; they were created in this PR:
https://github.com/alphagov/notifications-admin/pull/1696
2018-01-15 14:45:37 +00:00
Chris Hill-Scott
b5c114b66e Remove error handling code when no errors
`ok.html` is only used if the file has no errors. Therefore there will
never been any need to highlight which rows in the file have errors.
2018-01-15 14:45:36 +00:00
Chris Hill-Scott
d8e67102fa Merge pull request #1767 from alphagov/styleguide-l
Simplified to links to guidance in the service manual
2018-01-15 14:23:04 +00:00
Chris Hill-Scott
c68b10590d Merge branch 'master' into styleguide-l 2018-01-15 14:12:07 +00:00
Chris Hill-Scott
36f68b960a Update this file to match the other one 2018-01-15 14:11:57 +00:00
Chris Hill-Scott
27a83f6c97 Treat ‘service manual’ as a proper noun
ie capitalise it to match https://www.gov.uk/service-manual
2018-01-15 14:11:17 +00:00
Chris Hill-Scott
1260dee094 fix typo 2018-01-15 14:10:03 +00:00
Chris Hill-Scott
58d242198e Merge pull request #1785 from alphagov/1771-1770-1769
Pyup updates 1771 1770 1769
2018-01-15 14:03:45 +00:00
pyup-bot
a914c2e783 Update pyexcel from 0.5.6 to 0.5.7 2018-01-15 13:53:10 +00:00
pyup-bot
b79cd42110 Update pyexcel-io from 0.5.5 to 0.5.6 2018-01-15 13:52:39 +00:00
pyup-bot
b4435e5b7f Update pytest-xdist from 1.21.0 to 1.22.0 2018-01-15 13:52:39 +00:00
Chris Hill-Scott
c79a439a05 Merge pull request #1775 from alphagov/link-to-callbacks
Add links to navigate to/from callbacks page
2018-01-15 13:49:04 +00:00
Chris Hill-Scott
67b54d850f Add link back to API integration from callbacks
Matches what we do on the API keys and whitelist pages.
2018-01-15 10:10:12 +00:00
Chris Hill-Scott
b3673a94a2 Link to callbacks from inbound page
If you’ve got an inbound number and are using the API you’ll probably
be interested in this new feature we’ve got. And if you do know about
it, you might not be able to find it because we’ve moved it.
2018-01-15 10:10:11 +00:00
Katie Smith
c45e0cbf05 Merge pull request #1774 from alphagov/500-on-letter-json-page
Fix 500 error from notifications/letter.json page
2018-01-15 10:05:09 +00:00
Katie Smith
7386d5ec1c Fix 500 error from notifications/letter.json page
The letters notification page makes ajax calls to update the status - these
were failing because it's making a POST request without a CSRF token.
(The email and SMS notification pages contain a search form that includes
the hidden CSRF input, so this was only occurring with the letters
page.)

This commit adds a hidden form for the letters page which just contains
the CSRF token.
2018-01-15 09:21:12 +00:00
Chris Hill-Scott
12df43ffb4 Merge pull request #1777 from alphagov/service-name-hint
Correct description of how service name appears
2018-01-12 17:00:54 +00:00
Chris Hill-Scott
ebd5721d42 Correct description of how service name appears
This has changed since we made prefixing text messages its own setting.
2018-01-12 16:55:54 +00:00
Rebecca Law
17573437a9 Merge pull request #1780 from alphagov/revert-download
Revert download link.
2018-01-12 16:21:18 +00:00
Rebecca Law
135b0ad131 Revert download link.
There is some inconsistencies about how it is working, that needs to be solved.
2018-01-12 16:15:53 +00:00
Rebecca Law
b5375d99d9 Merge pull request #1779 from alphagov/download_link-activity-page
Fix bug.
2018-01-12 14:23:43 +00:00
Rebecca Law
81241999fc Merge branch 'master' into download_link-activity-page 2018-01-12 14:05:27 +00:00
Rebecca Law
59ac514655 Fix bug. 2018-01-12 14:03:31 +00:00
Rebecca Law
7957b432bb Merge pull request #1765 from alphagov/download_link-activity-page
Download link activity page
2018-01-12 13:25:35 +00:00
Rebecca Law
b34dd98086 Merge branch 'download_link-activity-page' of github.com:alphagov/notifications-admin into download_link-activity-page 2018-01-12 12:06:52 +00:00
Rebecca Law
08e5f68461 A little refactoring 2018-01-12 12:06:07 +00:00
Pete Herlihy
c616f180c7 Updated go-live page links to email and text message guidance
Now mirrors the terms of use.
2018-01-11 15:51:11 +00:00
Pete Herlihy
7bbd16e78f Simplified to links to guidance in the service manual
Some strange pages to be linking to. Most of the things we are trying to say are now covered on this page https://www.gov.uk/service-manual/design/sending-emails-and-text-messages, so much tidier and more effective to link just to that.
2018-01-11 15:48:05 +00:00
Rebecca Law
c520540790 Merge branch 'master' into download_link-activity-page 2018-01-11 09:49:13 +00:00
Rebecca Law
083d601207 Merge pull request #1762 from alphagov/pyup-update-awscli-1.14.16-to-1.14.22
Update awscli to 1.14.22
2018-01-10 17:04:44 +00:00
Rebecca Law
8242e5723f Merge branch 'master' into pyup-update-awscli-1.14.16-to-1.14.22 2018-01-10 16:54:05 +00:00
Rebecca Law
a7ac272137 Merge pull request #1761 from alphagov/pyup-update-boto3-1.5.6-to-1.5.12
Update boto3 to 1.5.12
2018-01-10 16:44:22 +00:00
Rebecca Law
8911660cb2 Merge branch 'master' into pyup-update-awscli-1.14.16-to-1.14.22 2018-01-10 16:40:16 +00:00
Rebecca Law
aa31d1b5eb Merge branch 'master' into pyup-update-boto3-1.5.6-to-1.5.12 2018-01-10 16:39:34 +00:00
Rebecca Law
6070e2e197 Merge branch 'master' into download_link-activity-page 2018-01-10 16:06:40 +00:00
Chris Waszczuk
c3fe2bb906 Merge pull request #1755 from gov-cjwaszczuk/master
Allow letter templates to select the a default template sender from service senders
2018-01-10 14:56:44 +00:00
chrisw
7271d4fbde Allow letter templates to select the default contact block from the list 2018-01-10 11:20:40 +00:00
Leo Hemsted
db2fad1a75 Merge pull request #1763 from alphagov/leohemsted-patch-1
derry strabane council email whitelist
2018-01-10 11:06:37 +00:00
Leo Hemsted
b27eacb03b oops 2018-01-10 10:56:21 +00:00
Leo Hemsted
224b9e5098 Update test_validators.py 2018-01-10 10:48:58 +00:00
Leo Hemsted
c780c94fb6 derry strabane council email whitelist 2018-01-10 10:47:40 +00:00
pyup-bot
666e1b16db Update awscli from 1.14.16 to 1.14.22 2018-01-09 23:23:30 +00:00
pyup-bot
1bef45ef17 Update boto3 from 1.5.6 to 1.5.12 2018-01-09 23:23:21 +00:00
Leo Hemsted
665c569db2 Merge pull request #1753 from alphagov/session-cookie
Replace cookie implementation with flask builtin secure cookie.
2018-01-09 17:18:43 +00:00
Leo Hemsted
b9f7fa1f6f Replace cookie implementation with flask builtin secure cookie.
However, by default, session cookies don't expire (only cleared out by
the end user's browser).

This is dumb. You'd think, given that there's
`config['PERMANENT_SESSION_LIFETIME']`, that you'd enable permanent
sessions in the config too - but no, you have to declare it for each
request. session.permanent is also, helpfully, a way of saying that the
session isn't permanent - in that, it will expire on its own, as
opposed to being controlled by the browser's session. Because session
is a proxy, it's only accessible from within a request context, so we
need to set this before every request 🙄

http://flask.pocoo.org/docs/0.12/api/#flask.session
https://stackoverflow.com/questions/34118093/flask-permanent-session-where-to-define-them
2018-01-09 16:45:48 +00:00
Alexey Bezhan
08dca5b879 Merge pull request #1758 from alphagov/generate-manifest-env
Add generate_manifest.py script and update deployment tasks
2018-01-09 16:41:25 +00:00