Skip to content

Commit

Permalink
refactor: Forms 1121 composition api forms manage (bcgov#1386)
Browse files Browse the repository at this point in the history
* AddTeamMember updated

AddTeamMember has been updated to the composition API. An issue with debounce has been fixes as it wasn't actually working. Tests now cover 100% of the script.

* ApiKey updated

ApiKey updated to the composition API with tests for full coverage

* DocumentTemplate updated

DocumentTemplate has been updated to the composition API. Some functions were moved to a composable. Tests were added for the composable, and tests are updated for DocumentTemplate.

* Update EmailManagement.vue

EmailManagement updated to the composition API

* EmailTemplate updated

EmailTemplate has been updated to the composition API and tests have been created for it

* Update ManageForm

ManageForm has been updated to the composition API and tests have been added.

* Update ManageFormActions

ManageFormActions is updated to the composition API and has added test coverage

* Update ManageLayout

ManageLayout updated to the composition API with added coverage

* Update ManageVersions

ManageVersions has been upgraded to the composition API and coverage has been added completely for it except for the template.

* Update ShareForm

ShareForm has been updated to the composition API and tests have been created for full coverage. Added the package vitest-canvas-mock so that we can mock the canvas required for the qr code generation.

* Update Subscription

Subscription.vue has been updated to the composition API and tests have been created for full coverage.

* Update TeamManagement

TeamManagement has been updated to the composition API and has full test coverage

* fixed Design.spec.js

removed console.log from identityProviders store
added BaseSecure stub to Design.spec.js

* Update ShareForm

The shared URL did not have the full URL.
  • Loading branch information
jasonchung1871 committed Jun 26, 2024
1 parent 50d2370 commit 8e2cc9f
Show file tree
Hide file tree
Showing 37 changed files with 7,042 additions and 1,778 deletions.
40 changes: 39 additions & 1 deletion app/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion app/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"vite": "^5.2.6",
"vite-plugin-eslint": "^1.8.1",
"vite-plugin-vuetify": "^2.0.3",
"vitest": "^0.32.2"
"vitest": "^0.32.2",
"vitest-canvas-mock": "^0.3.3"
}
}
2 changes: 1 addition & 1 deletion app/frontend/src/components/designer/FloatButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ export default {
<router-link
v-slot="{ navigate }"
:to="{
name: 'PublishForm',
name: 'FormManage',
query: { f: formId, fd: false, d: draftId },
}"
custom
Expand Down
Loading

0 comments on commit 8e2cc9f

Please sign in to comment.