Skip to content

Conversation

@sherif-olaboye
Copy link
Contributor

@sherif-olaboye sherif-olaboye commented Dec 1, 2025

JIRA link

https://hee-tis.atlassian.net/browse/TD-5401

Description

  1. Interface and Workflow Updates
    Renamed Action: The SupervisorRoles action method was renamed to Manage supervision settings on the competency assessment task list.

Added New Views/Pages and Functionality:

Supervised Self-Assessment: Introduced the Supervised self assessment view with an associated sign-off action method and logic.

Supervisor Sign-Off: Created the Supervisor sign off declaration view with its corresponding sign-off action method and logic.

Learner Sign-Off: Implemented the Learner sign off declaration view with its corresponding sign-off action method and logic.

Supervision Settings Management: Added the Manage supervision settings view with an associated sign-off action method and logic.

  1. Backend Model/Data Updates (View Models)
    You introduced several new classes to support the data structure and interaction logic for the new sign-off pages:

Base Model: Added the abstract or base class BaseSignoffDeclarationViewModel.

Specific Sign-Off Models:

SupervisedSelfAssessmentSignoffViewModel

LearnerSignoffDeclarationViewModel

SupervisorSignoffDeclarationViewModel

Management Model: Added the view model ManagesupervisionViewModel.

  1. Configuration Update
    Application Settings: Updated the appsettings configuration file to include default statements for both the learner and supervisor sign-off declarations.

Screenshots

Supervised self assessment and sign-off page
image

Supervisor sign off declaration page
image

Learner sign off declaration page
image

Manage supervision settings page
image

Task list
image


Developer checks

(Leave tasks unticked if they haven't been appropriate for your ticket.)

I have:

  • Run the IDE auto formatter on all files I’ve worked on and made sure there are no IDE errors relating to them
  • Written or updated tests for the changes (accessibility ui tests for views, tests for controller, data services, services, view models created or modified) and made sure all tests are passing
  • Manually tested my work with and without JavaScript (adding notes where functionality requires JavaScript)
  • Tested any Views or partials created or changed with Wave Chrome plugin. Addressed any valid accessibility issues and documented any invalid errors
  • Updated my Jira ticket with testing notes, including information about other parts of the system that were touched as part of the MR and need to be tested to ensure nothing is broken
  • Scanned over my pull request in GitHub and addressed any warnings from the GitHub Build and Test checks in the GitHub PR ‘Files Changed’ tab
    Either:
  • Documented my work in Confluence, updating any business rules applied or modified. Updated GitHub readme/documentation for the repository if appropriate. List of documentation links added/changed:
  • Confirmed that none of the work that I have undertaken requires any updates to documentation

Copy link
Contributor

@kevwhitt-hee kevwhitt-hee left a comment

Choose a reason for hiding this comment

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

Thanks @sherif-olaboye. I have made a couple of inline comments. In addition, if we are moving the default declaration text values to appsettings, then we should read them from appsettings into the view where they are presented to learners and supervisors. Please could we make this change?

"ReadOnlyConnection": "Data Source=localhost;Initial Catalog=mbdbx101_uar;Integrated Security=True;encrypt=false;TrustServerCertificate=true;",
"UnitTestConnection": "Data Source=localhost;Initial Catalog=mbdbx101_uar_test;Integrated Security=True;encrypt=false;TrustServerCertificate=true;"
},
"LearnerDefaultText": "<p>I confirm that I have completed the required pathway and achieved the necessary {{CompetencyAssessmentName}}. I understand that:</p><ul> <li>I am responsible and accountable for my practice</li><li>my skills and achievements are recorded for future reference</li><li>if I move to a new role or area, I may need to review or expand my skills</li><li>I must follow organisational policies and guidance</li><li>I should speak to a senior colleague if I am unsure about any aspect of my practice,</li></ul><p>my {{CompetencyAssessmentName}} will be reviewed as part of personal development and revalidation</p>",
Copy link
Contributor

Choose a reason for hiding this comment

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

Since the value is the same for all environments. This should only be set here, in this file - the other environment appsettings files where it is set are unnecessary - they would only be used to override this with environment-specific values.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since the value is the same for all environments. This should only be set here, in this file - the other environment appsettings files where it is set are unnecessary - they would only be used to override this with environment-specific values.

Done

</label>
<nhs-form-group nhs-validation-for="CustomText">

<textarea class="nhsuk-textarea" id="custom-declaration-text" name="CustomText" rows="5" aria-describedby="custom-declaration-hint">@Model.CustomText</textarea>
Copy link
Contributor

Choose a reason for hiding this comment

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

We should use Jodit to turn this into a html input and then sanitise before storing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should use Jodit to turn this into a html input and then sanitise before storing.

Done

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

Successfully merging this pull request may close these issues.

3 participants