stable

Clone or download

Read-only

chore: Migrate rest-querier and store to TypeScript

part of request #35894 Convert timetracking-overview-widget to Vue3 + TS Note: The current strategy is to convert the store and the rest querier to TS first in order to identify things to improve in the future. It allows us to have a first typecheck command on TS files only. The next steps are: - Move to vue 2.7.x and migrate components to composition API step by step. - Once done, bump to vue3. - Move components and their tests to TS + use vue-tsc to typecheck the app. [Bonus steps] - Move from tlp-fetch to fetch-result - Use Option when there are nullable properties - Move from webpack/jest to vite/vitest How to test: --> No functional change expected --> CI is happy Change-Id: Icd10a146fdcadfaec43b3c43d900270df3b8e3f2

Modified Files

Name
M plugins/timetracking/scripts/lib/rest-api-types/src/main.ts +1 −0 Go to diff View file
A plugins/timetracking/scripts/lib/rest-api-types/src/overview.ts +41 −0 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/jest.config.js +4 −1 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/package.json +7 −4 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/pnpm-lock.yaml +18 −12 Go to diff View file
D plugins/timetracking/scripts/timetracking-overview-widget/src/api/rest-querier.test.js +0 −195 Go to diff View file
A plugins/timetracking/scripts/timetracking-overview-widget/src/api/rest-querier.test.ts +165 −0 Go to diff View file
R plugins/timetracking/scripts/timetracking-overview-widget/src/api/rest-querier.js Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/src/components/TimeTrackingOverview.test.js +1 −1 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/src/components/TimeTrackingOverview.vue +1 −1 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/src/components/TimeTrackingOverviewTable.vue +1 −1 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/src/components/TimeTrackingOverviewTableRow.test.js +1 −1 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/src/components/TimeTrackingOverviewTableRow.vue +1 −1 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/src/components/TimeTrackingOverviewUserList.test.js +5 −5 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/src/components/TimeTrackingOverviewUserList.vue +2 −2 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/src/components/TimetrackingOverviewTable.test.js +1 −1 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/src/components/reading-mode/TimeTrackingOverviewReadingDates.vue +1 −1 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/src/components/reading-mode/TimeTrackingOverviewReadingMode.test.js +1 −1 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/src/components/reading-mode/TimeTrackingOverviewReadingMode.vue +1 −1 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/src/components/reading-mode/TimeTrackingOverviewTrackerList.test.js +1 −1 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/src/components/reading-mode/TimeTrackingOverviewTrackerList.vue +1 −1 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/src/components/writing-mode/TimeTrackingOverviewProjectOption.vue +1 −1 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/src/components/writing-mode/TimeTrackingOverviewTrackerList.vue +1 −1 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/src/components/writing-mode/TimeTrackingOverviewTrackersOptions.vue +1 −1 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/src/components/writing-mode/TimeTrackingOverviewWritingDates.vue +1 −1 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/src/components/writing-mode/TimeTrackingOverviewWritingMode.vue +1 −1 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/src/components/writing-mode/TimeTrackingOverviewWritingTrackers.test.js +6 −3 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/src/components/writing-mode/TimeTrackingOverviewWritingTrackers.vue +2 −2 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/src/index.js +1 −1 Go to diff View file
R plugins/timetracking/scripts/timetracking-overview-widget/src/store/actions.test.js Go to diff View file
R plugins/timetracking/scripts/timetracking-overview-widget/src/store/getters.test.js Go to diff View file
R plugins/timetracking/scripts/timetracking-overview-widget/src/store/index.js Go to diff View file
R plugins/timetracking/scripts/timetracking-overview-widget/src/store/mutations.test.js Go to diff View file
R plugins/timetracking/scripts/timetracking-overview-widget/src/store/state.js Go to diff View file
R plugins/timetracking/scripts/timetracking-overview-widget/tests/helpers/local-vue.js Go to diff View file
R plugins/timetracking/scripts/timetracking-overview-widget/tests/helpers/pinia-test-store.js Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/tsconfig.json +2 −1 Go to diff View file
M plugins/timetracking/scripts/timetracking-overview-widget/webpack.common.js +4 −0 Go to diff View file