17101 Commits
Author SHA1 Message Date
catherineheywood 0f9174f06e testing links 2016-04-12 13:26:47 +01:00
catherineheywood fd8f166a18 Doc tweaks 2016-04-12 13:21:14 +01:00
catherineheywood b2e7a1db05 Doc tweaks 2016-04-12 13:12:30 +01:00
catherineheywood d11af32f63 Correct alignment in list 2016-04-12 13:09:18 +01:00
Rebecca Law 02687710ae Remove commented code 2016-04-12 12:23:01 +01:00
Chris Hill-Scott 4568c0e5ab Sort template stats by usage
Template stats should show the most-used template first.

This commit:
- re-writes the `aggregate_usage` function to use `itertools.groupby`,
  which can do aggregation, and can return data in a structure that’s
  easy to sort on
- uses generators so that we’re not keeping lots of rows of template
  stats in memory

https://www.pivotaltracker.com/story/show/117348893
2016-04-12 12:03:52 +01:00
catherineheywood 85c996d09a Edit text in image 2016-04-12 10:20:47 +01:00
catherineheywood a7186b43db Doc tweaks 2016-04-12 10:19:25 +01:00
Chris Hill-Scott 975041cbed Merge pull request #428 from alphagov/better-choose-template
Make choose template page clearer
2016-04-12 10:06:40 +01:00
Chris Hill-Scott 42a6e801e4 Merge pull request #426 from alphagov/reword-recent-templates
Reword ‘recent templates’ section of dashboard
2016-04-12 10:06:27 +01:00
Chris Hill-Scott 34f57c1908 Merge pull request #421 from alphagov/banners-no-permissions
Change banners on home page if no permissions
2016-04-12 10:06:20 +01:00
Chris Hill-Scott a2263f959e Merge pull request #422 from alphagov/commas-in-placeholders
Don’t allow commas in placeholders
2016-04-12 10:06:08 +01:00
Chris Hill-Scott 7388214118 Merge pull request #424 from alphagov/cancel-button
Add cancel button to file upload pattern
2016-04-12 10:05:52 +01:00
catherineheywood faedb3d7be Bring sections over from existing doc, to rework 2016-04-12 09:58:09 +01:00
catherineheywood eb2ea7ce92 Add link in doc 2016-04-12 09:21:34 +01:00
catherineheywood 42d83ec36f increase text size in image 2016-04-12 09:09:06 +01:00
Chris Hill-Scott 3a5b76ce2a Truncate previews of email messages to ~3 lines
Emails can get very long.

When you’re trying to do other things on the page this results in a lot
of scrolling.

This commit truncates email messages to about 3 lines, and adds a JS
toggle which reveal the full contents of the email.
2016-04-11 17:24:22 +01:00
Chris Hill-Scott 33e1b2679f Move ‘edit template’ to its own link
It’s probably clearer to have it labelled explicitly, rather than have
people infer that they should click the title of a template to edit it.
2016-04-11 17:20:25 +01:00
Chris Hill-Scott 6bfb7914e2 Respect linebreaks in templates
If a user puts a linebreak in an SMS template then the recipient will
see these linebreaks on their phone. So when we show a preview of an SMS
template, it should have linebreaks in it.
2016-04-11 17:20:25 +01:00
Chris Hill-Scott 30e1e67c17 Make heading sizes more consistent
On:
- the API keys page
- the ‘send’ page

There are some inconsistently small heading sizes. This commit makes them
consistent with the heading sizes on other pages.
2016-04-11 17:20:24 +01:00
Chris Hill-Scott e526852f53 Remove keylines from nav
We have lots of keylines in our pages, eg tables, email message previews

This makes the pages look quite cluttered, especially because the
keylines don’t always align.

I think it looks much cleaner without the keylines in the nav, and we
have few enough nav items that we don’t need to chunk them up.
2016-04-11 17:20:24 +01:00
Chris Hill-Scott 91565afa6b Change display of placeholder columns
On the send page, it should hightlight the placeholders so they match
what you need to put in the CSV file.

On the check page, they should not be highlighted, to match what’s in
the (rendered) template.
2016-04-11 17:20:24 +01:00
catherineheywood b0dc5b5d5f Add section from existing doc, to add more details 2016-04-11 16:27:23 +01:00
catherineheywood ffe47201a5 Doc tweaks 2016-04-11 16:16:38 +01:00
catherineheywood 565a414ece Added files via upload 2016-04-11 15:58:14 +01:00
catherineheywood c297c98e66 Rework API section in doc 2016-04-11 15:33:56 +01:00
catherineheywood de4874ee2c Link to image 2016-04-11 12:15:38 +01:00
catherineheywood 4976441096 Resize image file 2016-04-11 12:05:50 +01:00
catherineheywood 12440f95c5 Added files via upload 2016-04-11 12:00:09 +01:00
catherineheywood 78697eb88c Added files via upload 2016-04-11 11:56:47 +01:00
Chris Hill-Scott 7e54703e2f Reword ‘recent templates’ section of dashboard 2016-04-11 10:08:03 +01:00
Rebecca Law 9620d91330 Removed unused files and directory. 2016-04-11 09:35:50 +01:00
catherineheywood e49687b8b0 reworking doc (in progress) 2016-04-11 09:31:24 +01:00
Chris Hill-Scott 82ecaa3628 Add cancel button to file upload pattern
We’ve seen users try to click the upload again when their file doesn’t
upload in time. This is because we’re giving them no feedback that
something is happening.

I reckon that changing the button to a cancel button is the easiest way
to show that something is happening, and also means that (unlike
disabling the send button) the user can’t get stuck if the connection
drops completely.
2016-04-08 16:46:25 +01:00
Chris Hill-Scott ae203dfe53 Merge branch 'register-page-wording' 2016-04-08 10:55:30 +01:00
Chris Hill-Scott be49fb73b0 Change wording of form hints on register page
We’ve seen in research that people can be reticent to give their real
phone number. Telling them that it will be used for something should
help (ie we’re not just collecting it for marketing).

This also rewords the other form hints on this page to be less computery
because we haven’t looked at them in aaaages.
2016-04-08 10:55:30 +01:00
Chris Hill-Scott d7685bae84 Merge branch 'more-rows-wording' 2016-04-08 10:55:25 +01:00
Chris Hill-Scott 2912ea1806 Increase number of rows shown
We probably shouldn’t hide the contents of the CSV when people are just
testing the app, or if they’re starting off with small jobs.

A limit of 15 rows displayed was awkwardly on the cusp between just
testing and sending a small batch.

This commit increases the limit to 50; I reckon that over 50 recipients
no-one will be wanting to check them all individually.
2016-04-08 10:55:24 +01:00
Chris Hill-Scott dd9548da67 Change wording when there are hidden rows
This caused some anxiety about why the rows were being hidden. Were
there problems with them?

This commit reframes the wording to talk about the rows that are shown
instead.
2016-04-08 10:55:24 +01:00
Chris Hill-Scott 2465398e48 Merge branch 'revert-169-tabluar-big-number' 2016-04-08 10:55:22 +01:00
Chris Hill-Scott 32cd312451 Revert "Use tablular numbers for ‘big number’ pattern" 2016-04-08 10:55:21 +01:00
Chris Hill-Scott 814470d7db Merge branch 'better-error-message-if-accept-invite-but-signed-in' 2016-04-08 10:55:20 +01:00
Chris Hill-Scott 25079464b0 More helpful error when signed in an accept invite 2016-04-08 10:55:20 +01:00
Chris Hill-Scott f2109b6150 Merge branch 'links-on-trial-mode-page' 2016-04-08 10:55:16 +01:00
Chris Hill-Scott e560969e34 Add service-specific links to trial mode page
> Trial mode page – if signed in, make your team into a link to the Team
> members page for the last-used service.

> Trial mode – if signed in, make remove these restrictions into a link to
> the Request to go live page for the last-used service.
2016-04-08 10:55:16 +01:00
Chris Hill-Scott 0cc67205c7 Merge branch 'rename-history' 2016-04-08 10:55:08 +01:00
Chris Hill-Scott 2b9e016d14 ‘History’/‘Notifications activity’ → ‘Activity’ 2016-04-08 10:55:08 +01:00
Chris Hill-Scott 732109889e Make border width of field layers match textbox
We put a border on text boxes that have errors. This means that they
take up more space than the layers above them which don’t have borders.

This makes the layers that highlight the fields in a template misalign.

This commit adds a line to make the borders match, which fixes this.
2016-04-08 07:46:15 +01:00
Chris Hill-Scott dfd8540b54 Don’t allow commas in placeholders
> If a user tries to save a template containing something like
> ((name,date)) we should give a validation error.

This is because it causes havoc with the column headers in CSV files.

https://www.pivotaltracker.com/story/show/117043389
2016-04-08 07:46:14 +01:00
NIcholas Staples ab8a5c561f Merge pull request #423 from alphagov/fix_environ_config
Update config. All tests passing.
2016-04-07 17:37:39 +01:00