stable

Clone or download

Read-only

refactor: Convert reading mode to composition API

part of story #38263 Choose my own columns based on field name (numeric,text, dates) How to test: No functional change expected in cross-tracker search widgets. The "reading mode" is when a report (selected trackers + query) is already saved, or modified but not saved yet. It shows a read-only list of trackers and a read-only query and a table listing artifacts that match the query. There is no longer an underline before/after the text in the <a> that links to the project URI, the title link or the users links. Why? Class components are no longer supported in Vue 3. We must switch to composition API to upgrade to Vue 3. Note: Type Wrapper<Vue, Element> is used because in this middle ground between Vue 2 and 3, we cannot use the real type yet. Change-Id: I75d46b05172dbe0aafc269cd325a3836f01e3a3f

Modified Files

Name
M lib/frontend/vue2-gettext-composition-helpers/package.json +8 −8 Go to diff View file
R lib/frontend/vue2-gettext-composition-helpers/src/shims.d.ts Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/jest.config.js +15 −1 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/package.json +4 −2 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/pnpm-lock.yaml +16 −0 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/components/ArtifactTable.test.ts +1 −1 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/components/ArtifactTable.vue +88 −99 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/components/ArtifactTableRow.vue +18 −24 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/components/ExportCSVButton.test.ts +4 −15 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/components/ExportCSVButton.vue +28 −33 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/components/ListBindUser.vue +5 −12 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/reading-mode/ReadingMode.test.ts +11 −14 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/reading-mode/ReadingMode.vue +64 −63 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/reading-mode/TrackerListReadingMode.vue +16 −25 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/reading-mode/reading-cross-tracker-report.ts +2 −6 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/type.ts +3 −3 Go to diff View file