Commit Graph

2856 Commits

Author SHA1 Message Date
catherineheywood
81c2f81457 Doc tweaks 2016-04-25 13:11:55 +01:00
catherineheywood
f143f767df Doc tweaks 2016-04-25 11:45:39 +01:00
Chris Hill-Scott
b5ed12421a Merge pull request #497 from alphagov/api-keys-page-improvements
API keys page improvements
2016-04-25 11:39:49 +01:00
Chris Hill-Scott
96cc03dc9e Merge pull request #490 from alphagov/contact-link-signup
Updated the contact us link for non gov.uk domains trying to register.
2016-04-25 11:38:30 +01:00
Chris Hill-Scott
683baa0003 Separate thousands with comma for big numbers
Makes it easier to see just how big the numbers are.
2016-04-25 11:37:34 +01:00
Chris Hill-Scott
0cc499bce4 Make sure the stats client passes params through
This was the cause of the dashboard showing statistics from all time.
2016-04-25 11:30:09 +01:00
Chris Hill-Scott
22ebc2ece5 Make permissions for AJAX dashboard backend match
If you don’t have permission to see the HTML dashboard, you shouldn’t be
able to see the JSON one.
2016-04-25 11:23:45 +01:00
Chris Hill-Scott
d0c4509761 Fix missing request context in validators tests 2016-04-25 11:20:43 +01:00
Chris Hill-Scott
63995e7273 Make wording around multiple API keys clearer 2016-04-25 11:16:00 +01:00
Chris Hill-Scott
cdedad6cc2 Merge pull request #493 from alphagov/reword-homepage
Reword homepage
2016-04-25 11:02:55 +01:00
Pete Herlihy
2a6af4ffad Merge pull request #489 from alphagov/terms-of-use
Updated terms of use in line with feedback received via security assu…
2016-04-25 10:54:28 +01:00
Chris Hill-Scott
71035ab96e Use the same pattern as elsewhere for ‘new thing’
On the team and templates pages we have a pattern for adding a new
‘thing’, which is a green button in the top right.

This commit changes the API key page to follow the same pattern.
2016-04-25 10:52:07 +01:00
catherineheywood
84c9f4de97 indents 2016-04-25 10:49:47 +01:00
Pete Herlihy
31bc602d0f Explained the SIRO acronym 2016-04-25 10:49:17 +01:00
Chris Hill-Scott
5f8a5edff0 Only talk about trial mode when you’re in it
Services have a daily limit whether or not they’re in trial mode. So it
only makes sense to tell you that the limit is because of trial mode
when you are in it.
2016-04-25 10:48:52 +01:00
Pete Herlihy
5ae45a810d Fixed typos on terms of use 2016-04-25 10:48:07 +01:00
Chris Hill-Scott
a6be0d0612 Show error if you try to send too many messages
https://www.pivotaltracker.com/story/show/117630691

There is a limit of 50 messages per day in trial mode. Right now, we
don’t tell you this, we just start failing your messages.

This commit adds an error message if you upload a CSV file that has too
many rows in it.
2016-04-25 10:46:38 +01:00
Pete Herlihy
06d289be1e Merge pull request #491 from alphagov/deskpro-department
Update the department id so tickets for Deskpro hit the right bucket
2016-04-25 10:45:10 +01:00
catherineheywood
994736e650 typo correction 2016-04-25 10:22:51 +01:00
catherineheywood
33acb59d20 correct typo 2016-04-25 10:21:39 +01:00
catherineheywood
4144eaaf69 nest lists 2016-04-25 10:20:55 +01:00
Pete Herlihy
636facb71c Updated the contact us link for non gov.uk domains trying to register. 2016-04-25 10:18:33 +01:00
Chris Hill-Scott
83b456095e Upgrade GOV.UK template to 0.17.1
Makes the size of the HTML file slightly smaller

Full changelog:

> # 0.17.1
>
> - Reduce file size of template: removes HTML comments, `type` attributes
>   on scripts, and uses HTML5 charset declaration. #208
> - Switch external link media query to be mobile first #205
> - Sass file cleanups
> - Replace old grid mixins with newer grid from frontend toolkit #134
> - Remove duplicate grey variables #201
>
> # 0.17.0
>
> - Add CSS hook (`.js-hidden`) for hiding content when JS is  enabled.
>   Some apps have an equivalent hook, which can be removed once
>   upgraded to this version
2016-04-25 09:58:35 +01:00
catherineheywood
614f0f7fb3 Client libraries in plural throughout 2016-04-25 09:56:22 +01:00
Chris Hill-Scott
e049e691fd Use the API key pattern for showing service ID
When we show an identifier, like an ID or a key, we have a pattern which
adds a ‘copy to clipboard’ button. We weren’t using this pattern for
service ID.

This commit also moves it under the table, so hopefully people will be
less likely to confuse the service ID for an API key when scanning down
the page.
2016-04-25 09:50:36 +01:00
Chris Hill-Scott
19662d8329 Fix bug with large file uploads
Depending on the size of the uploaded file, Flask will temporarily store
it in different ways. This means that it comes back as a `TempFile` if
the file is roughly <500k and as `BytesIO` if the file is larger.

`TempFile` supports the `.getvalue()` method, but `BytesIO` does not.
Both support the `.read()` method, so this commit changes to use that
instead.
2016-04-25 09:26:25 +01:00
Chris Hill-Scott
116b4f96c8 Add context to trial mode link for screen readers
Screen reader users have the option to navigate by jumping between
anchor tags and reading out the content. "Find out more" does not
provide a lot of context about what the link does.

This commit adds some visually hidden text which screen readers will
still read that makes the link work without the visual context.
2016-04-25 08:35:40 +01:00
Chris Hill-Scott
41fa6c61ee Add test for redirecting to service in session
If you click GOV.UK and have:
- multiple services
- a service in your session

…we take you to the dashboard for that service. This worked great, but
wasn’t tested. This commit adds a test for it.
2016-04-24 09:51:06 +01:00
Chris Hill-Scott
ba7d9cd486 If not logged in, go home when clicking GOV.UK
It’s a bit of a weird experience to be taken to the sign in screen when
you click GOV.UK in the header. It’s doubly weird if you take the tour
before creating an account, and at the end of the tour you get prompted
to sign in.

This commit adds some extra logic to take you to the homepage instead,
which I think is more what you’d expect.
2016-04-24 09:48:13 +01:00
Chris Hill-Scott
1458a1afc9 Don’t talk about letters on the homepage
We don’t have letters yet. No point in someone setting up an account
hoping they can send letters.
2016-04-23 16:39:54 +01:00
Chris Hill-Scott
af017817b0 Remove some words from the home page
So that the proposition is clearer.
2016-04-23 16:37:20 +01:00
Chris Hill-Scott
c551fd43e0 Reword 2FA page to match email confirmation 2016-04-23 16:24:48 +01:00
Rebecca Law
9ae6e18ad2 Fix unit tests, change agent_team_id to department_id 2016-04-22 16:28:33 +01:00
Rebecca Law
7b540fe10b Merge pull request #487 from alphagov/temp-history-view
This is intended to be a temporary solution to allow product
2016-04-22 16:10:50 +01:00
Pete Herlihy
2a042f75de Update the department id so tickets for Deskpro hit the right bucket 2016-04-22 16:04:54 +01:00
Pete Herlihy
c473697883 Updated terms of use in line with feedback received via security assurance team 2016-04-22 15:45:40 +01:00
Adam Shimali
786ce0e071 This is intended to be a temporary solution to allow product
owner to see history records until proper design is done for
viewing histiry.
2016-04-21 18:25:18 +01:00
Rebecca Law
b8774a8ce9 Merge pull request #485 from alphagov/update-requirements
Fix order of imports on wsgi
2016-04-21 11:23:21 +01:00
Rebecca Law
5c3683ae86 Fix order of imports on wsgi 2016-04-21 11:19:22 +01:00
Rebecca Law
49db4e85ad Merge pull request #482 from alphagov/update-requirements
Update requirements
2016-04-21 10:28:45 +01:00
Rebecca Law
87704c3166 Remove Procfile, we don't deploy to heroku 2016-04-21 10:07:58 +01:00
Chris Hill-Scott
d48f0f6a9d Merge pull request #481 from alphagov/show-replaced-subject-if-in-CSV
Show subject line with placeholders replaced
2016-04-21 09:39:38 +01:00
Rebecca Law
009c117452 Upgrade requirements.
With the upgrade of pep8 to 1.7.0 module imports are required to be at the top of the file,
meaning I had to add a noqa line to some of the init files. Are those init files wrong or is pep8 too strict.
2016-04-21 09:30:33 +01:00
Chris Hill-Scott
71cb100e08 Show subject line with placeholders replaced
On the check page, we show what the message will look like with the data
from the first row of the CSV, if the CSV contains all the required
data.

We should do the same for the subject line.
2016-04-21 09:28:31 +01:00
Rebecca Law
2afbbd6423 Removed unused requirements and modules. 2016-04-21 09:11:00 +01:00
Chris Hill-Scott
5a39acb3c3 Merge pull request #477 from alphagov/all-time-greatest-templates
Show template usage for all time on it’s own page
2016-04-21 09:08:49 +01:00
Chris Hill-Scott
3bbf2e3205 Merge pull request #478 from alphagov/pricing
Updated the pricing page to clarify multi-part messages
2016-04-20 16:29:20 +01:00
Chris Hill-Scott
fc24c93c7f Add style for nested bullets 2016-04-20 15:48:35 +01:00
Pete Herlihy
2160eb35d8 Fixed the list nesting on pricing page 2016-04-20 15:42:11 +01:00
Pete Herlihy
1a8dac7bd4 Updated the pricing page to clarify multi-part messages 2016-04-20 15:39:07 +01:00