Commit Graph

1703 Commits

Author SHA1 Message Date
catherineheywood
d20228ea25 Add sentences introducing responses to GET 2016-05-04 11:19:09 +01:00
Chris Hill-Scott
5f1ecb2ae6 Merge pull request #536 from alphagov/case-insensitive-csv-headers
Ignore case and spacing in CSV column headers
2016-05-04 11:12:10 +01:00
Chris Hill-Scott
e385872893 Ignore case and spacing in CSV column headers
Implements:
https://github.com/alphagov/notifications-utils/pull/28
2016-05-04 11:02:27 +01:00
Chris Hill-Scott
cb93e8ada5 Merge pull request #534 from alphagov/footer-changes
Footer links moved around to more sensible groupings
2016-05-03 15:42:00 +01:00
catherineheywood
56b5013873 Indicate if string/array for parameters 2016-05-03 15:31:01 +01:00
Chris Hill-Scott
e8bb0ee889 Merge pull request #533 from alphagov/relabel-usage
Rename ‘this year’
2016-05-03 13:51:30 +01:00
catherineheywood
59ff514f43 Doc tweaks (GDS style guide) 2016-05-03 13:32:51 +01:00
NIcholas Staples
bd0afce745 Merge pull request #527 from alphagov/windows_csv
Only check on csv is the file extension.
2016-05-03 12:50:34 +01:00
Pete Herlihy
061cbfa82d Footer links moved around to more sensible groupings 2016-05-03 12:26:44 +01:00
Chris Hill-Scott
71f7e144a4 Rename ‘this year’
Make it clear that this section is about what you’ve used, ie your usage

Click ‘breakdown’ to see how the maths is done, and what time period it
covers.
2016-05-03 12:25:01 +01:00
catherineheywood
1df23fff90 Doc tweaks, improve readability (GDS style guide) 2016-05-03 11:36:01 +01:00
Chris Hill-Scott
1d0b28f156 Merge pull request #524 from alphagov/usage
Add usage to the dashboard
2016-05-03 11:35:11 +01:00
Chris Hill-Scott
00030bc254 Add usage to the dashboard
Takes the number of emails and SMS fragments sent from:
https://github.com/alphagov/notifications-api/pull/273

Using these numbers it’s possible to show:
- how much of your allowance is left
- or how much you have spent

For now the allowance and rates are hard coded.

Only for users that have manage service.
2016-05-03 11:06:12 +01:00
NIcholas Staples
9e94d2382d Merge pull request #532 from alphagov/british_time
Times from api are now formatted to the british time.
2016-05-03 11:02:21 +01:00
Chris Hill-Scott
f6ba5ec8d0 Merge pull request #528 from alphagov/activity-improvements
Link up the last 7 days
2016-05-03 10:58:51 +01:00
Nicholas Staples
e1f3975c9a Times from api are now formatted to the british time. 2016-05-03 10:55:37 +01:00
catherineheywood
d4c77f3164 Resize image file 2016-05-03 10:42:31 +01:00
catherineheywood
40db98b2c7 Add anchors to titles 2016-05-03 10:28:49 +01:00
catherineheywood
1721139322 Remove image file 2016-05-03 10:23:42 +01:00
catherineheywood
e11879ede7 Change JWT to JSON Web Tokens 2016-05-03 10:20:53 +01:00
Nicholas Staples
f581ff44d0 Only check on csv is the file extension.
Update validator logic

Update message for the validator.
2016-05-03 10:10:58 +01:00
Chris Hill-Scott
d1dec6d5a0 Default aggregate statistics to 0, not None
If they API returns no statistics for a given time period we should
assume that this is equivalent to 0. This means that the template can
always rely on the dictionary having the same keys.
2016-05-03 09:18:24 +01:00
Chris Hill-Scott
1965537f30 Merge pull request #530 from alphagov/non-bold-7-days-text
Make ‘7 days’ text on activity page not bold’
2016-05-03 09:03:13 +01:00
Chris Hill-Scott
127651b894 Make ‘7 days’ text on activity page not bold’ 2016-05-03 08:57:19 +01:00
Chris Hill-Scott
edc49a2870 Merge pull request #525 from alphagov/api-bumpf
Remove bumf from the API keys page
2016-04-29 16:05:00 +01:00
Chris Hill-Scott
744064e840 Remove activity from the nav
We saw lots of people in the lab clicking activity hoping for…
something. But it’s not really where you go to do a thing, so they
weren’t finding what they were looking for.

Since you can now get to the activity from the dashboard, let’s remove
the link in the nav, to make thing less ambiguous.
2016-04-29 16:03:57 +01:00
Chris Hill-Scott
43ef3e86ae Make big numbers on the homepage linkable
The big numbers on the home page relate directly to the notifications on
the notification page. So let’s link them. With a _hyper_ link.

This commit actually adds two links, one of which is semantically
correct, and one of which is visually correct, ie makes the whole black
area of the box clickable/hoverable.
2016-04-29 16:03:56 +01:00
Chris Hill-Scott
d82569f883 Fix page titles on activity page
We were getting some weirdness like ‘Failed both’.

This commit fixes the problem, and adds some tests for the page headings
to make sure they don’t break again.
2016-04-29 16:03:56 +01:00
Chris Hill-Scott
68bc164f91 Merge pull request #526 from alphagov/7days-reminder
Reminder of 7 days data retention on the activity pages
2016-04-29 15:54:16 +01:00
Pete Herlihy
2f418eed65 Reminder of 7 days data retention on the activity pages 2016-04-29 15:30:44 +01:00
Chris Hill-Scott
e6ed2c9ff6 Remove bumf from the API keys page 2016-04-29 14:36:56 +01:00
NIcholas Staples
96297d2989 Merge pull request #522 from alphagov/sms_msg_limit
Sms msg limit
2016-04-29 12:29:45 +01:00
Nicholas Staples
471eac209e Handling template content size error. All tests passing. 2016-04-29 09:38:59 +01:00
Andrew White
8995a86bb6 Merge pull request #520 from alphagov/redirect-to-dashboard-when-existing-service
Redirect to dashboard if this isn't the first service
2016-04-28 17:23:14 +01:00
Andrew White
7812b1cef5 Redirect to dashboard if this isn't the first service
There's no need to show the tour again if the user has previously
created a service so just redirect to the dashboard instead.
2016-04-28 16:44:12 +01:00
Adam Shimali
32dd627260 Merge pull request #519 from alphagov/week-activity
Change activity to view to request a week of data
2016-04-28 16:40:08 +01:00
Adam Shimali
a627cf9002 Change activity to view to request 7 days data.
Cleaned up filters a bit so that if you want both templates
email and sms is passed.

Added mock assertion to test.
2016-04-28 15:52:20 +01:00
Nicholas Staples
fbf30129b0 Update app to the latest notifications_utils. 2016-04-28 14:02:51 +01:00
Chris Hill-Scott
5572058e50 Merge pull request #518 from alphagov/dashboard-stats-all-aligned
Count only requested and failed messages on dashboard
2016-04-28 13:08:29 +01:00
Adam Shimali
1b13837e85 Merge pull request #517 from alphagov/temp-event-view
Add events to temp history page for story sign off
2016-04-28 10:52:22 +01:00
Chris Hill-Scott
876a0781fe Requested, delivered, and failed messages on dash
Requested, delivered and failed are the three states stored in the
notification statistics table. They are not discrete, eg a message can
be counted in delivered and failed.

`requested` is incremented *when a notification is created*, and has no
chance of being incremented twice for the same notification.

The template statistics are incremented *when a notification is created
only*.

Therefore the only way to make the numbers line up is to count:
- messages sent as being `requested`
- failure rate being `failed`/`requested` *not*
  `failed`/`failed`+`delivered`
2016-04-28 08:59:36 +01:00
Adam Shimali
72c1ecc9cb Believe it or not this broke functional tests 2016-04-27 18:00:46 +01:00
Adam Shimali
266a76adec Add events to temp history page for story sign off 2016-04-27 17:24:44 +01:00
Adam Shimali
fa59bd3461 Merge pull request #516 from alphagov/login-events
Login events
2016-04-27 17:20:34 +01:00
Chris Hill-Scott
43b95b0473 Merge pull request #515 from alphagov/align-dashboard-stats
Show sent, not pending numbers on the dashboard
2016-04-27 17:06:28 +01:00
Adam Shimali
7b611faee9 Missing requirement 2016-04-27 16:45:50 +01:00
Adam Shimali
7c1867fde6 Record login including remembered user login events to the api based of flask login
signals.
2016-04-27 16:39:17 +01:00
Nicholas Staples
337eeb60d1 Update requirements version. 2016-04-27 12:52:25 +01:00
Chris Hill-Scott
00507fc7be Show sent, not pending numbers on the dashboard
The dashboard should only talk about notifications that are *successful* or
*failed*. It should not count notifications that are still queued.

This will stop:
- a situation like ‘0 emails, 14.1% failed’
- the big numbers and the template statistics numbers not adding up to
  the same total
2016-04-27 12:31:52 +01:00
Chris Hill-Scott
4da63f2876 Merge pull request #512 from alphagov/ajax-patching
Patch update sections of the page on AJAX
2016-04-27 11:54:30 +01:00