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

#3035 - Enable Application Saving on Page Change #4001

Merged
merged 10 commits into from
Dec 2, 2024

Conversation

sh16011993
Copy link
Collaborator

@sh16011993 sh16011993 commented Nov 27, 2024

As a part of this PR, the following is achieved:

  • For draft applications, enabled saving the draft whenever the user navigates between sections of the application. (Next Section/Prev Section/Section Headings). Note: As a part of the discussion with the business, no toast is shown on the UI for the automatic saving of the draft.

Video illustrating the PR work:

2024-12-02.15-18-21.mp4

@sh16011993 sh16011993 self-assigned this Nov 27, 2024
@sh16011993 sh16011993 added Student Student Features Web portal labels Nov 27, 2024
!isFirstPage.value &&
!submittingApplication.value
) {
saveDraft();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Missing await.

@dheepak-aot
Copy link
Collaborator

There is an outstanding question in the ticket to confirm whether the toast notification should be disabled while automatically saving the draft?

- Added the code logic to only save draft application when there is a change to the payload
- Boolean check to not allow the saving happening again while a draft save is in progress
Copy link
Collaborator

@dheepak-aot dheepak-aot left a comment

Choose a reason for hiding this comment

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

Thanks for making the changes. Looks Good.

@@ -300,7 +300,7 @@ export default defineComponent({

const pageChanged = async (
isInFirstPage: boolean,
currentPage: number,
_: number,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would recommend _currentPage

@andrepestana-aot andrepestana-aot self-requested a review December 2, 2024 23:16
const isFirstPage = ref(true);
const isLastPage = ref(false);
const isReadOnly = ref(false);
const notDraft = ref(false);
const existingApplication = ref({} as ApplicationDataAPIOutDTO);
const editApplicationModal = ref({} as ModalDialog<boolean>);
const conditionsAccepted = ref(false);
// automaticDraftSaveInProgress boolean ensures that multiple api calls for save
Copy link
Collaborator

Choose a reason for hiding this comment

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

// automaticDraftSaveInProgress is a boolean...

Copy link
Collaborator

@andrepestana-aot andrepestana-aot left a comment

Choose a reason for hiding this comment

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

LGTM. Just a minor comment.

Copy link

sonarqubecloud bot commented Dec 2, 2024

Copy link

github-actions bot commented Dec 2, 2024

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 21.99% ( 3742 / 17014 )
Methods: 10.08% ( 214 / 2123 )
Lines: 25.33% ( 3250 / 12830 )
Branches: 13.49% ( 278 / 2061 )

Copy link

github-actions bot commented Dec 2, 2024

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 65.43% ( 583 / 891 )
Methods: 59.26% ( 64 / 108 )
Lines: 68.54% ( 464 / 677 )
Branches: 51.89% ( 55 / 106 )

Copy link

github-actions bot commented Dec 2, 2024

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 83.73% ( 1292 / 1543 )
Methods: 81.65% ( 129 / 158 )
Lines: 85.21% ( 1095 / 1285 )
Branches: 68% ( 68 / 100 )

Copy link

github-actions bot commented Dec 2, 2024

E2E SIMS API Coverage Report

Totals Coverage
Statements: 67.09% ( 5837 / 8700 )
Methods: 64.86% ( 720 / 1110 )
Lines: 71.08% ( 4588 / 6455 )
Branches: 46.61% ( 529 / 1135 )

@sh16011993 sh16011993 added this pull request to the merge queue Dec 2, 2024
Merged via the queue into main with commit dfadd3f Dec 2, 2024
21 checks passed
@sh16011993 sh16011993 deleted the 3035_enable_application_saving_on_page_change branch December 2, 2024 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Student Student Features Web portal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants