-
Notifications
You must be signed in to change notification settings - Fork 5
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
Pidp 1002/1098 add user notification for reasons cards are inaccessible #611
base: develop
Are you sure you want to change the base?
Pidp 1002/1098 add user notification for reasons cards are inaccessible #611
Conversation
…ns-cards-are-inaccessible-
this.heading === 'Driver Fitness Practitioner Portal' | ||
) { | ||
this.toastService.openInfoToast( | ||
'Insufficient college licensing to request enrolment.', |
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 think we can keep these error messages in constants and use them here.
this.toastService.openInfoToast( | ||
'Insufficient college licensing to request enrolment.', | ||
'close', | ||
{ duration: 100000, panelClass: 'close-icon' }, |
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.
Same as previous. duration can be kept in constants.
…ns-cards-are-inaccessible-
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.
functionality seems working fine.
{ duration: Constants.dialogDuration, panelClass: 'close-icon' }, | ||
); | ||
} else { | ||
this.toastService.closeToast(); |
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.
In which case it will be called ?
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 am a bit confused by the scoring and the description on this ticket. I understand that the idea of this ticket was to provide more information to the user however the notification messages are not entirely correct. We need to perform certain calculations to inform the user more accurately of why they don't have access to a card. Luckily we already perform these calculations in the the backend in ProfileStatus.Model
, so we could inform the frontend of the appropriate message to display.
…ns-cards-are-inaccessible-
…naccessible-' of https://github.com/bcgov/moh-pidp into Pidp-1002-Add-user-notification-for-reasons-cards-are-inaccessible-
…ns-cards-are-inaccessible-
…-1002-Add-user-notification-for-reasons-cards-are-inaccessible-
@@ -251,6 +264,7 @@ public class PrescriptionRefillEformsSection : ProfileSection | |||
{ | |||
internal override string SectionName => "prescriptionRefillEforms"; | |||
public override string[] KeyWords => ["pharmacists", "rx"]; | |||
public override string ErrorReason => "Incorrect credential type being used to request enrolment."; |
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.
As the same value is being used in multiple places can we define in constants and re-use in multiple places.
…ns-cards-are-inaccessible-
…naccessible-' of https://github.com/bcgov/moh-pidp into Pidp-1002-Add-user-notification-for-reasons-cards-are-inaccessible-
Quality Gate passedIssues Measures |
No description provided.