Skip to content

fix: CCP-1585 Refactor ExternalAPIs.vue to use <script setup> and add unit tests#1797

Open
jasonchung1871 wants to merge 6 commits intobcgov:mainfrom
jasonchung1871:CCP-1585-external-api-to-composition
Open

fix: CCP-1585 Refactor ExternalAPIs.vue to use <script setup> and add unit tests#1797
jasonchung1871 wants to merge 6 commits intobcgov:mainfrom
jasonchung1871:CCP-1585-external-api-to-composition

Conversation

@jasonchung1871
Copy link
Contributor

Description

Migrates ExternalAPIs.vue from Options API to Composition API with <script setup>, improving code clarity and reactivity. Updates language handling to use the i18n composable and refactors form validation and dialog logic. Adds a comprehensive unit test suite for ExternalAPIs.vue to ensure correct behavior of API calls, notifications, and form actions.

Type of Change

This is just some technical debt

Checklist

  • I have read the CONTRIBUTING doc
  • I have checked that unit tests pass locally with my changes
  • I have run the npm script lint on the frontend and backend
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • I have approval from the product owner for the contribution in this pull request

Further comments

Migrates ExternalAPIs.vue from Options API to Composition API with <script setup>, improving code clarity and reactivity. Updates language handling to use the i18n composable and refactors form validation and dialog logic. Adds a comprehensive unit test suite for ExternalAPIs.vue to ensure correct behavior of API calls, notifications, and form actions.
@jasonchung1871 jasonchung1871 changed the title Refactor ExternalAPIs.vue to use <script setup> and add unit tests fix: CCP-1585 Refactor ExternalAPIs.vue to use <script setup> and add unit tests Dec 31, 2025
jasonchung1871 and others added 4 commits December 31, 2025 14:10
Added error messages to appease SonarQube
Replaced inline Vuetify component stubs with a shared vuetifyStub import in the ExternalAPIs.spec.js test file to reduce duplication and improve maintainability.
@sonarqubecloud
Copy link

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.

1 participant