Skip to content
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

feat: update message for enrolment, renewal, error modal when grace period is over #16551

Merged
merged 5 commits into from
Jan 18, 2024

Conversation

arjita-mitra
Copy link
Contributor

Description

update message for enrolment, renewal, error modal when grace period is over

Screenshots/Screencast (for UI changes)

Screenshot 2024-01-18 at 16 08 55 Screenshot 2024-01-18 at 16 09 00 Screenshot 2024-01-18 at 16 09 16 Screenshot 2024-01-18 at 16 09 21 Screenshot 2024-01-18 at 16 09 28
  • PR has been self reviewed by the author;
  • [] Hard-to-understand areas of the code have been commented;
  • If it is a core feature, unit tests have been added;

Copy link

codecov bot commented Jan 18, 2024

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (d4a285f) 45.43% compared to head (8363051) 45.42%.
Report is 2 commits behind head on dev.

❗ Current head 8363051 differs from pull request most recent head 732c427. Consider uploading reports for the commit 732c427 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##              dev   #16551      +/-   ##
==========================================
- Coverage   45.43%   45.42%   -0.01%     
==========================================
  Files         740      740              
  Lines       24239    24243       +4     
  Branches     5506     5509       +3     
==========================================
  Hits        11012    11012              
- Misses      11818    11821       +3     
- Partials     1409     1410       +1     

@@ -365,13 +365,13 @@ export class E2EIHandler extends TypedEventEmitter<Events> {
// Clear the e2e identity progress
this.coreE2EIService.clearAllProgress();

const isSoftLockEnabled = await shouldEnableSoftLock(this.config!);
const disableSnooze = await shouldEnableSoftLock(this.config!);
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 nice renaming

Comment on lines 36 to 49
/**
* Options for configuring a modal.
* @typedef {Object} GetModalOptions
* @property {ModalType} type - The type of modal to display.
* @property {Function} [primaryActionFn] - Function to execute for the primary action.
* @property {Function} [secondaryActionFn] - Function to execute for the secondary action.
* @property {boolean} [hideSecondary=false] - Flag to hide the secondary action button.
* @property {boolean} [hidePrimary=false] - Flag to hide the primary action button.
* @property {boolean} [hideClose=false] - Flag to hide the close button.
* @property {Object} [extraParams] - Additional parameters for the modal.
* @property {string} [extraParams.delayTime] - time left to remind the user again for enroll/renewal.
* @property {boolean} [extraParams.isRenewal] - Flag indicating if this is a renewal action.
* @property {boolean} [extraParams.isGracePeriodOver] - Flag indicating if the grace period is over.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, you did it the hard way. There is actually a super nice jsdoc/typescript feature where you can inline jsdoc directly in the types. I'll show you in a diff comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ahh ok, shall i remove my jsdoc then?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can remove them then :)
Inline jsdoc has the benefit of showing up on the typescript server language :)

@arjita-mitra arjita-mitra enabled auto-merge (squash) January 18, 2024 16:04
@arjita-mitra arjita-mitra merged commit 8863c3c into dev Jan 18, 2024
9 checks passed
@arjita-mitra arjita-mitra deleted the improvements/missing-mock-items branch January 18, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants