jac-uk / qt

Online testing tools
MIT License
0 stars 0 forks source link

Display urgent messages to candidates #7

Closed warrensearle closed 1 year ago

warrensearle commented 1 year ago

Here we are enabling the display of urgent/outage messages to candidates taking a Qualifying Test.

QT

On each of the following pages the current location should be used to query whether there are any messages to display for the relevant page / test / user.

If a message is found then we should display the message using the Banner component. The Banner component is part of JAC Kit components and based on MoJ Banner.

Note: messages should display in real-time (so use query snapshot listener)

e.g. Sign In pageqt-banner.png

QT Admin

We will need a new area to create, edit and delete messages.

Each message will be a single paragraph of text and could be one of two types: Information or Warning. See MoJ Banner component for more info. Note: we have our own implementation of the MoJ Banner component

Each message should only display on certain pages in the QT so we will need to work out an efficient way to match where a user is on the QT site and whether there are any relevant messages.

Examples

Display a message to anyone signing in to any test (ie prior to sign in) Anyone visiting the sign in page will see this.

Display a message to anyone signing in to test 'ABC123' Only those on the sign in page for test ID 'ABC123' will see this

Display a message to anyone with access to test 'ABC123' Only those on the Qualifying Tests and Information pages for test ID 'ABC123' will see this

Display a message to anyone taking test 'ABC123' Only those on the Qualifying Test Question page taking test ID 'ABC123' will see this

Display a message to candidate taking test 'MyTest5678' Only the candidate taking qualifying test response ID 'MyTest5678' will see this

nickaddy commented 1 year ago

@warrensearle Who has the authority to create the banner and how is it implemented?