Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users need to schedule a time to send a batch of messages #17

Open
quis opened this issue Oct 6, 2023 · 5 comments
Open

Users need to schedule a time to send a batch of messages #17

quis opened this issue Oct 6, 2023 · 5 comments

Comments

@quis
Copy link
Member

quis commented Oct 6, 2023

First design (2016): alphagov/notifications-admin#903
4 days (2016): alphagov/notifications-admin#979
New radios (2017): alphagov/notifications-admin#1222
Buttons not links (2019): alphagov/notifications-admin#2938
New design (2023): alphagov/notifications-admin#4847

Live: https://www.gov.uk/notify

Prototypes: https://time-and-day-pickers.glitch.me
Alice Bartlett – Burn your <select> tags: https://www.youtube.com/watch?v=CUkMCQR4TpY

IMG_0201-(1)

@tombye
Copy link

tombye commented Oct 18, 2023

The first design (2016)

This just asked the user to chose whether to send the batch now or on the hour for any hour in the next 24 hours.

First design shown working. All options are radio buttons and either 'Now' or an hour in the future. All except 'Now' are hidden initially but can be shown by a 'Later' button. When a hour is chosen, 'Now' is still shown and you can go back to the other hours using a 'Choose a different time' button. All radios are the native styled ones with large, grey click areas around them and their label

Screengrab from alphagov/notifications-admin#903.

This initial design already contains a few features that carried through into future iterations:

  • having all options as radio buttons but hiding all except the one for 'Now' initally, because most jobs will send immediately
  • keeping 'Now' visible when an hour in the future is chosen
  • hiding all other options by default, or when a hour in the future is chosen, and using a button to show them again

@tombye
Copy link

tombye commented Oct 18, 2023

4 days (2016)

Increases the number of hourly timeslots to include any hour in the next 4 days.

Design to allow any hour in the next 4 days, shown working. Starts with a single 'Now' radio and buttons for each of the next 4 days. Clicking 'Tomorrow' shows all the hours then as radios. Selecting one just shows that radio and 'Now' plus a 'Choose a different time' button, which returns to the initial state

Screengrab from alphagov/notifications-admin#979.

Incorporates the following changes:

  • 'Later' button is replaced with a button for each of the next 4 days
  • pressing the 'Choose another time' button reverts to the initial state, showing 'Now' and buttons for the 4 days

@tombye
Copy link

tombye commented Oct 18, 2023

New radios (2017)

Screenshot showing the initial state of this design. The 'Now' radio is just a black circle with a solid black dot in the middle and its text alongside. Next to it are links for each of the next 4 days

Screenshot from alphagov/notifications-admin#1222.

Incorporates the following changes:

  • plugs in the new style of radios from GOVUK Elements which uses CSS to create a single colour, high contrast, design
  • changes the style of the buttons for each of the next 4 days to look like links
  • adds a 'Back' button (which also looks like a link) to the bottom of the radios for hours

@tombye
Copy link

tombye commented Oct 18, 2023

Buttons not links (2019)

Screenshot showing the initial state of this design. The 'Now' radio is just a black circle with a solid black dot in the middle and its text alongside. Next to it are buttons for each of the next 4 days

Screenshot showing the state where the radios for each hour today, past the current time. It only shows the last 3 radios and a button below with the text 'Back' on it

Screenshot showing 2 radios: One is for 'Now', the other 'Today at 11am', alongside a grey button with the text 'Choose a different time'. The 'Today at 11am' radio is focused

Screenshots from alphagov/notifications-admin#2938.

Changes the styling of the following buttons from links to the secondary button style from design system:

  • the buttons to show radios for each hour in a day
  • the 'Back' button below the radios which returns things to the inital state

@tombye
Copy link

tombye commented Jan 2, 2024

Update to solve accessibility problems (2023)

The component was audited for accessibility issues by the Digital Accessibility Centre (DAC) in February 2021. They reported:

  • having a single, preselected, radio in the default state was confusing
  • use of a button to expand another section (the buttons for each day) without semantics to communicate this is confusing

We also needed to allow users to choose an hour in the next 7 days, not 4.

We redesigned the component to look, and work, like this:

Closed by default Open (choose day to send)
date_time_picker_default date_time_picker_choose_day
Open (choose time to send) Closed with date and time chosen
date_time_picker_choose_hour_tomorrow date_time_picker_tomorrow_at_4pm_chosen

Notes on redesign

We did a lot of prototyping before we chose the design shown here: https://time-and-day-pickers.glitch.me/.

Other usability features we put into this design:

  • you now have to confirm your choice of timeslot by clicking a button or pressing enter instead of just clicking it, to make it easier to change your mind
  • to reduce the amount of times we change what is focused, we now only do it when moving between the 'views' for days or timeslots and only focus:
    • the previously selected day or timeslot, or
    • the first one, if none was selected
  • changing focus to a button (for a day) or radio (for a timeslot) causes its containing fieldset to be announced when using a screen reader which gives useful context on the new content we introduced
  • the new visual design makes it easier to add support for more days, as evidenced by us extending them to 7 shortly after releasing the redesign
  • the visual design of the expanding button borrows from GOV.UK's new navigation menus, adding consistency

The redesigned component was tested by DAC on Oct 9th 2023 and produced no issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants