-
Couldn't load subscription status.
- Fork 1
HEEDLS-546 All delegates - register delegate - Page 3,4,5 #475
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
HEEDLS-546 All delegates - register delegate - Page 3,4,5 #475
Conversation
…lds and errors correctly on page
Apparently you need an empty constructor for model binding to work? Took way too long to figure that one out
…page; wording change; return OK on Summary submit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few questions/comments but overall looks good.
DigitalLearningSolutions.Web/ViewModels/RegisterDelegateByCentre/WelcomeEmailViewModel.cs
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Views/RegisterDelegateByCentre/WelcomeEmail.cshtml
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Views/RegisterDelegateByCentre/WelcomeEmail.cshtml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one minor thing to change
DigitalLearningSolutions.Web/Views/RegisterDelegateByCentre/WelcomeEmail.cshtml
Show resolved
Hide resolved
…egistrationByCentreData tests
…gates-register-3-4-5
DigitalLearningSolutions.Web/Views/RegisterDelegateByCentre/WelcomeEmail.cshtml
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Views/RegisterDelegateByCentre/WelcomeEmail.cshtml
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Web/Views/RegisterDelegateByCentre/WelcomeEmail.cshtml
Outdated
Show resolved
Hide resolved
| </label> | ||
| </div> | ||
|
|
||
| <div class="@emailDateCss @errorCss" id="conditional-welcome-email-date"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be worth putting the form error in the VC, like we do with text-inputs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alex suggested this too, but can't see a way to do it nicely. The error message is in the VC, but the red border styling is not. The reason being that the css for that is affected by the conditional.
DigitalLearningSolutions.Web/Views/RegisterDelegateByCentre/Summary.cshtml
Outdated
Show resolved
Hide resolved
| private IJobGroupsDataService jobGroupsDataService = null!; | ||
| private IUserDataService userDataService = null!; | ||
| private IUserService userService = null!; | ||
| private ICryptoService cryptoService = null!; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to add any tests about temp data being updated appropriately?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've already written tests for populating DelegtateRegistrationbyCentreData from viewmodels. Is that enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if someone refactors this file and forgets to update TempData? I guess we could catch that in the AutomatedUI tests, when we do accessibility scans of the pages (which I'm happy for you to add as part of whichever subtask)
DigitalLearningSolutions.Web/Controllers/Register/RegisterDelegateByCentreController.cs
Outdated
Show resolved
Hide resolved
DigitalLearningSolutions.Web/ViewModels/RegisterDelegateByCentre/SummaryViewModel.cs
Outdated
Show resolved
Hide resolved
…elds as appropriate
…om RDbyC to Common; update references
...lLearningSolutions.Web/ViewModels/Register/RegisterDelegateByCentre/WelcomeEmailViewModel.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - can we rename one of the methods, then merge this without rereview. Let's add accessibility tests as part of your second review. 🙏
Welcome Email page


Password page

Summary page (if welcome email set)

Summary page (if welcome email not set)
