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: Complaint details performance improvements #879

Merged
merged 26 commits into from
Jan 23, 2025

Conversation

mikevespi
Copy link
Contributor

@mikevespi mikevespi commented Jan 17, 2025

Improve load time of Complaint Details page.

Description

The complaint details page has several sections, each its own component. Each of these components was calling the case management API to fetch the case_file details, and setting them in the state. The responsibility of making that CM call was moved to the wrapping component so that it can be made once per page rather than once per section. This was done for the complaint-details-edit and the quick close modal.

Refactored selectComplaintDetails to use createSelector so it's not instantiating a new object every time triggering component effects.
Memoized a couple dynamically created objects.

Fixes # 1332
https://env-ceds.atlassian.net/jira/software/c/projects/CE/boards/4?selectedIssue=CE-1332

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Adding an assessment to a complaint that does not have a case file in CM yet and verifying that one is created with the correct information. That Component should then become the the read version with the correct information in the UI.
  • Ensured that quick close modals still follow validation on the complaint being actioned in both the list and complaint details pages

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Further comments


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:

@mikevespi mikevespi changed the base branch from main to release/1.0.1 January 17, 2025 22:33
@mikevespi mikevespi marked this pull request as ready for review January 17, 2025 22:35
@mikevespi mikevespi changed the title WIP perfomance updates for complaint details feat: Complaint details performance improvements Jan 20, 2025
@nayr974 nayr974 closed this Jan 21, 2025
@nayr974 nayr974 reopened this Jan 21, 2025
@nayr974 nayr974 merged commit 8cd4ddd into release/1.0.1 Jan 23, 2025
18 checks passed
@nayr974 nayr974 deleted the CE-1332-comp-details-opt branch January 23, 2025 05:06
github-merge-queue bot pushed a commit that referenced this pull request Jan 27, 2025
Co-authored-by: Ryan Rondeau <[email protected]>
Co-authored-by: Ryan Rondeau <[email protected]>
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.

2 participants