Commit Graph

7170 Commits

Author SHA1 Message Date
karlchillmaid
93a957bb1f Updated inconsistent use of - in double-sided
Updated inconsistent use of - in double-sided
2018-07-12 15:50:22 +01:00
Katie Smith
a5124f4af1 Sanitise csv filenames before saving to S3
Commit 58cc1604a7 sanitises any non-ascii
characters in the headers. CSV filenames get used as a header value, so
this fixed a bug that occurred when non-ascii characters were used.

The CSV filename also gets used as part of the metadata when uploading
the file to S3. Since the S3 metadata can only contain ASII characters,
we also need to sanitise the filename before uploading it to S3.
2018-07-12 15:19:45 +01:00
Chris Hill-Scott
03b6bbdfc6 Merge pull request #2160 from karlchillmaid/patch-1
Update roadmap – remove June 2018
2018-07-12 14:59:23 +01:00
karlchillmaid
07ae0ec658 Updated roadmap – removed June 2018
Removed June 2018 from roadmap as these features have been released.
2018-07-12 14:22:57 +01:00
Chris Hill-Scott
9ef6da4ef9 Merge pull request #2159 from alphagov/grey-tick-cancelled-basic
Untick ‘basic view’ if invite is cancelled
2018-07-11 16:25:57 +01:00
Chris Hill-Scott
bc13ab6bdb Untick ‘basic view’ if invite is cancelled
If an invite is cancelled then the user no longer has permission to do
anything, so we shouldn’t show the green tick. We already do this for
other permissions; this makes the ‘basic view’ row consistent.
2018-07-11 16:19:59 +01:00
Chris Hill-Scott
7f0a13e9aa Merge pull request #2136 from alphagov/guess-name
Guess people’s names when they’re invited
2018-07-11 16:11:58 +01:00
Chris Hill-Scott
660fadbce7 Make the guessing a bit more sophisticated
Things we’ve noticed from looking at real data that we could handle in a
smarter way:
- removing numbers (there might be a tom.smith2@dept.gov.uk if tom.smith
  is already taken)
- removing middle initials (again, these tend to be used for
  disambiguation and aren’t included when we ask people for their names)
- ignoring email addresses which only have someone’s initial, not their
  first name (because we can’t make a decent guess in this case)
2018-07-11 13:31:38 +01:00
Katie Smith
3f117bd7b1 Merge pull request #2152 from alphagov/remove-old-platform-stats
Use new platform-admin page
2018-07-11 11:15:59 +01:00
Chris Hill-Scott
5c5e0bac02 Stop email address wrapping 2018-07-11 10:35:25 +01:00
Chris Hill-Scott
3683f99c3b Guess people’s names when they’re invited
Most people’s names, especially in government are in the format
firstname.lastname@department.gov.uk. This means that you can pretty
reliably guess that their name is ‘Firstname Lastname’.

When users are invited to Notify we know their email address already.

So this commit pre-populates the registration form based on this guess.

This is a nice little detail, but it should also stop the browser
pre-filling the name field with someone’s email address (which I think
happens because the browser assumes a registration form will have an
email field).
2018-07-11 10:35:25 +01:00
Chris Hill-Scott
d08e2b7ee3 Merge pull request #2156 from alphagov/hide-7-days-bsic
Hide ‘7 days’ paragraph from basic view
2018-07-10 17:24:48 +01:00
Chris Hill-Scott
6eb548a403 Merge pull request #2157 from alphagov/fix-branding-request-org-info
Fix org info in branding requests with known orgs
2018-07-10 17:24:42 +01:00
Chris Hill-Scott
ed9444b436 Fix org info in branding requests with known orgs
This wasn’t looking quite right in the case where an organisation is in
our list of domains.
2018-07-10 17:18:50 +01:00
Chris Hill-Scott
3902d0a05c Hide ‘7 days’ paragraph from basic view
It looks too prominent as a paragraph on the page. This commit moves
the info about how long we keep data for into the ‘empty’ message we
show when there are no results (ie the message people will see if they
search for something that was sent more than 7 days ago).
2018-07-10 17:08:02 +01:00
Chris Hill-Scott
47e83c6922 Merge pull request #2155 from alphagov/add-org-info-to-branding-requests
Add organisation info to branding requests
2018-07-10 16:56:34 +01:00
Chris Hill-Scott
0fa378e26e Merge pull request #2154 from alphagov/hide-download-caseworking
Hide download all link in basic view
2018-07-10 16:56:28 +01:00
Chris Hill-Scott
949bf6feea Add organisation info to branding requests
This will let us know which organisation the person asking for the
branding is from. This should reduce how often we have to go back to
them and ask.
2018-07-10 16:34:44 +01:00
Chris Hill-Scott
199c699e11 Hide download all link in basic view
Can’t think of a good reason why someone who is only sending messages
would need a download of all the messages their entire team has sent.

Most of the ‘caseworking’ teams have been getting on fine without this
link; it’s only recently we brought it back.
2018-07-10 15:59:24 +01:00
Katie Smith
3bbc73dfd2 Use new platform-admin page
We had kept the original platform-admin page at `/platform-admin` and
created a new page, `/platform-admin-new` for the new platform admin
page. Now that the numbers on both pages look ok we no longer need both
pages, so can replace the original page.
2018-07-10 14:39:54 +01:00
Chris Hill-Scott
ce9c5ca892 Merge pull request #2151 from alphagov/add-basic-preview
Add a preview of basic view
2018-07-10 14:38:02 +01:00
Chris Hill-Scott
95d138b638 Add a preview of basic view
One of the big things we found in user research was that people were
uncertain what the effect of giving someone basic view was.

So in the spirit of ‘show don’t tell’, this commit adds a way for users
to preview basic view. They can go into the preview and click around as
much as they like, just as if they really had the basic view assigned to
them.

Once they have seen enough they can return to the settings page where
they can decide whether or not to switch basic view on for real.
2018-07-10 14:24:02 +01:00
Katie Smith
db42bb9291 Merge pull request #2143 from alphagov/5-letter-pages
Update documentation to refer 5 sheets of letters
2018-07-10 13:27:54 +01:00
Chris Hill-Scott
5b60620197 Merge pull request #2150 from alphagov/basic-view-2
Rename ‘caseworker’ to ‘basic view’ on team members
2018-07-10 12:33:05 +01:00
Chris Hill-Scott
0008d7cda7 Rename ‘caseworker’ to basic view on team members
Missed this in https://github.com/alphagov/notifications-admin/pull/2146
2018-07-10 12:17:22 +01:00
Chris Hill-Scott
70ba1bb7f2 Merge pull request #2148 from alphagov/add-basic-setting
Add a service setting to switch basic view on and off
2018-07-10 12:04:02 +01:00
Chris Hill-Scott
2f40ddae20 Remove platform admin toggle for basic view
Since platform admins can use the new settings page, this commit:
- links to that page
- removes the platform-admin-only endpoint that switches basic view on
  and off
2018-07-10 11:45:50 +01:00
Chris Hill-Scott
4d3a4ef9af Add form to let users switch basic view on and off
This commit adds radio buttons to the ‘basic view’ page. This will let
users choose whether basic view is on or off for their service.

As before, this page will only be linked to if a service already has
basic view, so this commit does not launch the new feature.
2018-07-10 11:44:40 +01:00
Chris Hill-Scott
a6662b3f59 Add basic view to the settings page
This commit adds:
- a row to the settings page…
- …which links to a page explaining what basic view is

The new row (and link) will only appear for services who already have
the feature switched on. This is because we are not launching the
feature yet, so it shouldn’t be available to just anyone.
2018-07-10 11:44:40 +01:00
Chris Hill-Scott
a35ce8eb89 Add Jinja macro for a row on the settings page
Often we show/hide these rows based on what permissions a service has.
This commits refactors that check into a reusable macro, rather than
having to write the same `if` statements all the time.
2018-07-10 11:44:40 +01:00
Chris Hill-Scott
c30b86714e Merge pull request #2147 from alphagov/manage-not-modify
Relabel ‘modify service’ to ‘manage service’
2018-07-10 11:42:20 +01:00
Chris Hill-Scott
1d1dc02203 Merge pull request #2149 from alphagov/hants.gov.uk
Mark agreement signed by Hampshire County Council
2018-07-10 11:00:12 +01:00
Chris Hill-Scott
112098096b Merge pull request #2146 from alphagov/basic-view
Rename ‘caseworker’ to ‘basic view’
2018-07-10 10:59:53 +01:00
Chris Hill-Scott
8571cc9389 Mark agreement signed by Hampshire County Council 2018-07-10 10:38:35 +01:00
Chris Hill-Scott
08dc248abc Relabel ‘modify service’ to ‘manage service’
We are not consistent about this. We use ‘manage service’ on:
- the page listing all the users
- the request to go live checklist

We use modify service on:
- the page where you edit a team member’s permissions
- the page where you invite a new team member

This commit changes the latter to be consistent with the former.
2018-07-09 10:58:35 +01:00
Chris Hill-Scott
5794a54385 Rename ‘caseworker’ to ‘basic view’
‘Caseworker’ was a bad name because it:
- suggested that Notify might be expanding into case management
- may or may not map to someone’s actual role, in a confusing way (this
  is why ‘manager’ is also a bad name)

‘Basic view’ is the best name we could come up with because:
- it describes the purpose of feature, not the user
- a ‘view’ changes what you can _see_ as much as it changes what you can
  do

Admin remains a good word – in research users self-describe their use
of Notify in using it. This commit makes the name ‘admin view’ to match
‘basic view’.

This also means we can hide the legend for this fieldset because the
choices are self-explanatory.
2018-07-09 10:39:09 +01:00
Chris Hill-Scott
b1aac841f4 Merge pull request #2042 from alphagov/allow-remove-callback
Allow callbacks to be removed
2018-07-06 14:52:07 +01:00
Pete Herlihy
93cb98eadd Merge pull request #2145 from alphagov/276-292
Services up to 292 and Orgs up to 96
2018-07-06 13:53:54 +01:00
Leo Hemsted
f10794e8cf Merge pull request #2144 from alphagov/leohemsted-patch-2
Pin wtforms==2.1
2018-07-06 13:38:14 +01:00
Pete Herlihy
e9f77777ae Services up to 292 and Orgs up to 96 2018-07-06 13:37:27 +01:00
Leo Hemsted
4d4424657f allow you to remove URL without removing bearer token 2018-07-06 11:47:35 +01:00
Leo Hemsted
0566e89aee Pin wtforms==2.1
Tests fail with `wtforms==2.2.1`.  We're not sure of the reason but on
production this version is used and locally it's not, because we only
require flask-wtforms, which doesn't pin its requirements at all. We
should probably pin all requirements from jenkins onwards to prevent
this kind of thing happening again.
2018-07-05 17:44:23 +01:00
Chris Hill-Scott
cb434db663 Merge pull request #2114 from alphagov/caseworking-one-off
Let caseworkers send one off messages and see sent messages
2018-07-05 17:05:43 +01:00
Katie Smith
23a313b79c Update documentation to refer 5 sheets of letters
Letters can now be 4 or 5 sheets -
* Updated the pricing page with the new prices
* Updated the using Notify page with the new letter length
2018-07-05 15:48:42 +01:00
Chris Hill-Scott
b21c0da683 Make sure caseworking users clear their invite
There was a bug where caseworking users skipped the part of the invite
flow where their invite was cleared from the session. This caused
a 500 if they later tried to create another service.

This commit makes sure that both types of user have the invite cleared
from the session after accepting it.
2018-07-05 13:40:40 +01:00
Chris Hill-Scott
9da9e85293 Remove letters from caseworking view
Because one-off letters aren’t a thing yet there’s no way for
caseworkers to send letters. So showing them letter templates will just
confuse them.
2018-07-05 11:53:42 +01:00
Chris Hill-Scott
0018ecd765 Hide ‘Use my email address/phone number link’
This link is useful for people who are setting up templates and want to
test out how they look/how Notify works.

‘Caseworker’ users shouldn’t need to send themselves messages on a
regular basis, so this link is another thing we can take away.
2018-07-05 11:53:42 +01:00
Chris Hill-Scott
883f51b823 Fix page title on sent messages 2018-07-05 11:53:42 +01:00
Chris Hill-Scott
5b14ca45a5 Remove inbound from caseworking for now 2018-07-05 11:53:42 +01:00
Chris Hill-Scott
e3e9333840 Remove counts from sent
Counts of sending/failed/delivered are ‘management information’ or
‘reporting’. We don’t think that caseworkers need to see this
information.

The idea of the caseworking view is to remove stuff that caseworkers
don’t need to see.
2018-07-05 11:53:42 +01:00