Refactor ModEditSubmissionForm.vue
to use the broken out sections
#1036
Labels
code quality
enhancement
New feature or request
moderation panel
pair programming
This is a ticket that is good to pair with someone on
Problem
Our
ModEditSubmissionForm.Vue
is really long and very hard to read. It also isn't DRY as we are rewriting the same logic and inputs where the data matches the Healthcare Professional Data and the Facility Data. We now have these sections of the form broken out into two sections that can contain logic to conditionally render inputs and do different logic based on themoderationStore.activeScreen
. We need to refactor this form to use the existing sections, while preserving the functionality to update the submission. We also will need to refactor tests and possibly test files betweenmoderationDashboard
and themoderationEditSubmissionForm
Success
The
ModEditSubmissionForm.vue
is refactored using theModEditFacilitySection.vue
and theModEditHealthcareProfessionalSection.vue
. It conditionally renders DOM elements based on the active screen as well as conditionally rendering logic for functionality. The sections should maintain their functionality and the Submission Form itself should maintain functionality. Tests are refactored or written where necessary in order to test the conditional rendering of the DOM elements.Requirements
ModEditSubmissionForm.vue
to use the two sections ofModEditHealthcareProfessionalSection.vue
andModEditFacilitySection.vue
healthcareProfessionalsStore.ts
andfacilitiesStore.ts
and autofill them with the selected submission data from themoderationsSubmissionStore.ts
Implementation notes
This can be broken down into multiple PRs
Relevant files as of now that I can think of are as follows:
The text was updated successfully, but these errors were encountered: