Commit Graph

3108 Commits

Author SHA1 Message Date
Pete Herlihy
79912166d7 117-119 for Cash Service MK and HMCTS Small Claims Mediation
50 - 51 orgs too
2017-12-11 10:25:23 +00:00
Chris Hill-Scott
bef8e8887b Strip spaces from email addresses when signing in
If you copy and paste an email address into the sign in box, there’s a
chance you’ll also copy some leading or trailing spaces. This is
especially likely to happen if you’re doing this while using your
computer upside down.

If this happens, it never even gets as far as looking up the user,
because the form validation doesn’t consider a string with a leading
space to be a valid email address.

This commit makes sure that accidental spaces are handled, by removing
them before doing any validation or hitting the API to look up the user.
2017-12-08 16:17:45 +00:00
Pete Herlihy
25600e3363 115-117 and 48-50
West Suffolk
Marine Management Organisation

Woo Hoo.
2017-12-07 10:26:12 +00:00
Leo Hemsted
2a28278cb8 make sure service api client doesnt expect free sms fragment 2017-12-04 16:57:00 +00:00
Leo Hemsted
eb3d4acb45 update free sms fragment limit to go via billing client instead of service 2017-12-04 16:03:11 +00:00
Chris Hill-Scott
fc45acb2d4 Remove features from top nav when signed in
Features is a sales tool. Once you’re using the product already there’s
less of a need to see it. The pages are still accessible from the
footer, and for users who aren’t signed in.
2017-12-04 14:58:10 +00:00
Leo Hemsted
9c412a7f4e Merge pull request #1679 from alphagov/ken-add-send_letters_as_pdf-setting
Add send letters as PDF service setting
2017-12-04 11:59:41 +00:00
Leo Hemsted
cab61a3d0a Merge pull request #1665 from alphagov/change-csrf-token-status
Change the CSRF error from 400 to 403
2017-12-04 11:59:29 +00:00
Ken Tsang
8fb7f79e5e Add send letters as PDF service setting 2017-12-01 19:12:22 +00:00
Pete Herlihy
212ac7c0ef 114-115 and 47-48 for CareCERT NHS Digital 2017-12-01 15:28:18 +00:00
Chris Hill-Scott
c7c1559697 Fix order of nav when signed out
Got this wrong in a previous commit. Now it matches the footer (which
is the right order).
2017-12-01 14:15:19 +00:00
Chris Hill-Scott
3c057a5131 Merge pull request #1673 from alphagov/rationalise-top-nav
Rationalise top navigation and footer
2017-12-01 10:44:01 +00:00
Chris Hill-Scott
4cc455a7cc Rename Slack link
It was quite long, and Thom wasn’t a fan of the wording.
2017-12-01 10:28:51 +00:00
Chris Hill-Scott
7c643b7ff3 Remove headings from footer
It doesn’t make sense to have a section called ‘Support’ which has a
link called ‘Support’ in it.

And by splitting up, and reducing the number of links in the footer,
they don’t _need_ headers – hopefully they’re self explanatory.
2017-12-01 10:28:51 +00:00
Chris Hill-Scott
e64ca206cb Make pricing its own column in footer
This makes the footer match the order and grouping of links in the top
navigation.
2017-12-01 10:28:51 +00:00
Chris Hill-Scott
2369187f18 Make order of About links match features sidebar
The links in the footer should be in the same order as those in the
sidebar of the features page. That’s the order that’s been thought about
more.
2017-12-01 10:28:50 +00:00
Chris Hill-Scott
1817d3f091 Remove external link support in sub navigation
This navigation will only have internal links in it.
2017-12-01 10:28:50 +00:00
Chris Hill-Scott
b6096dbe06 Remove performance link from features nav
The features nav is supposed to navigate your between pages in the app.
It’s very unexpected to have it open an external link.

Performance isn’t strictly a part of Support, but it’s worked having it
there for long enough that it’s probably not a bother.
2017-12-01 10:16:40 +00:00
Chris Hill-Scott
49aa42464a Make features and documentation always visible
These links should always appear in the header, because they’re useful
to both signed in and signed out users.
2017-12-01 10:16:40 +00:00
Chris Hill-Scott
fd908671b0 Make page titles match <h1> tags on static pages
This commit fixes pages where this isn’t the case, and modifies the test
to use the `client_request` fixture, which checks for this mismatch.
2017-12-01 09:52:23 +00:00
Pete Herlihy
4285991640 113-114 for IAC Judiciary (HMCTS) 2017-11-30 16:41:03 +00:00
Chris Hill-Scott
4b77ef0533 Merge pull request #1667 from alphagov/email-auth-pword-reset
ensure that email auth users don't get 2fa codes when resetting passwords
2017-11-30 15:50:24 +00:00
Chris Hill-Scott
87b58afdb0 Merge pull request #1671 from alphagov/auth-type-by-request
Invite users to choose how team members sign in
2017-11-30 15:49:47 +00:00
Chris Hill-Scott
ba1c98ed49 Invite users to choose how team members sign in
Email auth is a new feature that currently we’ve only given to teams
who have contact us with a problem.

At the moment, we’re aware of all the teams that are sharing phone
numbers when they sign in. We think that in the future there will be
other teams who encounter this problem. So we should let them know that
they should contact us if they are having the problem.

At the moment we want to talk to teams before giving them access to the
feature, so that we’re confident it’s only going to teams from whom it’s
more secure than using a text message code.
2017-11-30 15:32:12 +00:00
chrisw
1e15262dd3 Updated top navigation 2017-11-29 13:59:26 +00:00
chrisw
2c884a0246 Refactored redirects into seperate method 2017-11-29 13:59:01 +00:00
chrisw
90e18e04ee Updated support views to represent new url structure 2017-11-29 13:58:12 +00:00
Leo Hemsted
f7e2a12aba ensure that email auth users dont get 2fa codes when resetting passwords 2017-11-28 15:25:29 +00:00
Leo Hemsted
18b50ddfde error handlers should not raise. Not even abort(400)s.
Refactor csrf handler into the normal error handler area, and then add
some tests to make sure it does the right thing. Also, change it back
to a 400, because the 403 err page talks about being in the wrong
place, but this is about sending the wrong data through, even though
it's technically a 403. Will need to think about wording but this is a
fine first pass
2017-11-28 12:28:16 +00:00
chrisw
6b98e62f4c Updated support logic to represent new urls structure 2017-11-28 11:59:11 +00:00
chrisw
e67ee2b579 Updated views to represent new content and url structure 2017-11-28 11:58:15 +00:00
chrisw
ed33e03d82 Adjusted and added static page views logic 2017-11-28 11:56:30 +00:00
chrisw
1c41845ddc Added new sub navigation component 2017-11-28 11:54:36 +00:00
chrisw
ebb7275158 Added styling for sub-navigation 2017-11-28 11:53:24 +00:00
Athanasios Voutsadakis
c38d10d773 Change the CSRF error from 400 to 403
All 400s are handled by a generic errorhandler which logs them and
converts them to 500.

We don't need to be alerted for CSRF problems.
2017-11-28 11:44:59 +00:00
Richard Chapman
629593291c Used url_for and redirect
- url_for instead of constructing the url manually
- Used redirect instead of RequestRedirect to be more consistent with
other code
2017-11-24 16:34:45 +00:00
Richard Chapman
155e432aa6 Disabled the template_history endpoint
- Updated tests and added a new mock_get_monthly_template_usage
- Deleted get_monthly_template_statistics_for_service
- Added new test to test the redirection of the old endpoint
2017-11-24 15:20:40 +00:00
Richard Chapman
1681b17fab Disabled the template_history endpoint
- Removed the code for the template_history endpoint and replaced with a
redirect to the new page so that anyone is forwarded on
- Updated the template to point to the new template_usage page
2017-11-24 14:36:36 +00:00
Pete Herlihy
3749c733a8 Merge pull request #1659 from alphagov/109-111
109-111 and 46-47
2017-11-22 16:47:10 +00:00
Pete Herlihy
56b1f98d90 Merge pull request #1658 from alphagov/roadmap
Updated the Roadmap
2017-11-22 16:35:47 +00:00
Pete Herlihy
ec2cd75a14 109-111 and 46-47 2017-11-22 16:26:28 +00:00
Pete Herlihy
86d2cb2f4c Updated the Roadmap 2017-11-22 16:19:35 +00:00
Richard Chapman
cce1f1fd73 Merge pull request #1654 from alphagov/rc-update-template-usage-to-use-new-end-point
Updated link to for browsing to financial years
2017-11-22 16:05:19 +00:00
Richard Chapman
9dbb14c9e1 Refactored to be more pythonic
Removed the nested for loops and refactored to be pythonic so it is more
maintainable in future.
2017-11-22 15:50:31 +00:00
Richard Chapman
dd2bd2f80a Removed import
An import was not required so removed it.
2017-11-22 14:38:47 +00:00
Richard Chapman
f97fa2cebc Reused the months array instead of redefining it
Re-organised the code to re-use the months array which also was not
displaying a month where there was no stats. This now gets the months,
enumerates that array updating the templates used when there are stats
items so the users sees each month of the financial year (even if there
are no stats) when there are stats they are displayed.
2017-11-22 10:37:53 +00:00
Richard Chapman
5937842ca4 Fixes to the template usage page
- When a year contains no data ensure a default set of months is
returned so that all months can be seen in the UI
- Add the template id so the user can click through to the template
2017-11-21 16:48:37 +00:00
Pete Herlihy
33dc83083e Added big lottery fund to approved domains 2017-11-21 13:57:11 +00:00
Richard Chapman
0d36a0ef16 Updated link to for browsing to financial years
The link which when clicked allows the user to view different financial
years was pointing to the template_activity page. Updated to the link
to point to the new page.
2017-11-21 11:09:35 +00:00
Athanasios Voutsadakis
0dfd1d61f7 Merge branch 'master' into add_proxy_header_check 2017-11-20 17:41:12 +00:00