Skip to content

Conversation

thomasleese
Copy link
Contributor

@thomasleese thomasleese commented Aug 23, 2024

Description

The Registration number, also known as the license number for Ghanaian specific applicants is a 3 part alphanumeric which has a specific format. To make it easier for applicants to not make mistakes when entering this number, we have decided to change the UI with additional validations in place to guide users.

Additionally, the application form status updater has also been updated with regards to the status of the registration form. If a Ghanaian applicant, submits their teacher license/registration number and it is not valid, the status should be "in_progress", meanwhile if it is empty, it should be "not_started". If it is valid then only then it will move to "completed"

Important Design Note:
As part of this work a new grouped input had to be introduced with inspiration taken from the GOV design systems date field. Since, this is a custom group of inputs, there are no helpers available and as a result of this, custom input fields with GOV design system classes have been used to replicate the desired design.

Ghana Specific Form:
Screenshot 2024-09-03 at 08 43 09

Ghana Specific Form with Errors:
Screenshot 2024-09-03 at 08 43 30

Other:
Screenshot 2024-09-03 at 08 42 28

Copy link

thomasleese and others added 8 commits September 4, 2024 16:00
This adds a form for capturing the registration number for Ghana which
follows a very specific format.
We want a different title for Ghanian applicants.
We need a separate view as the interface will be different.
The Registration number, also known as the
license number for Ghanaian specific applicants
is a 3 part alphanumeric which has a specific
format. To make it easier for applicants to not
make mistakes when entering this number, we
have decided to change the UI with additional
validations in place to guide users.

Note: As part of this work a new grouped input
had to be introduced with inspiration taken from
the GOV design systems date field. Since, this
is a custom group of inputs, there are no helpers
available and as a result of this, custom input fields with GOV design system classes have been used to replicate the desired design.
…tion number status

Based on new rules, if a Ghanaian applicant,
submits their teacher license/registration number
and it is not valid, the status should be "in_progress",
meanwhile if it is empty, it should be "not_started". If it is valid then only then it will
move to "completed"
teacher_interface_further_information_request_item_text_form:
response: Enter your response
teacher_interface_ghana_registration_number_form:
registration_number: "Enter your teacher license number"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that the brackets are used in this section. It might be more consistent to remove them in this section.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actioned: 3800373


<% if @application_form.region.status_check_online? %>
<% if @application_form.region.status_information.present? %>
<%= raw GovukMarkdown.render(@application_form.region.status_information) %>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this code get's replaced later on but could we go through how status_information and sanction_information work and how they're used in the edit view and website in general.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of course. Lets maybe jump on a call and go through it?

Copy link
Contributor

@syed87 syed87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@Hassanmir92 Hassanmir92 merged commit bbd3b39 into main Sep 5, 2024
12 checks passed
@Hassanmir92 Hassanmir92 deleted the ghana-validation-number branch September 5, 2024 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants