Loading
refactor(frontend): convert IssuesPage and platformIssues to TypeScript
What does this MR do and why?
Convert IssuesPage.vue, platformIssues.ts, and their unit test suites to TypeScript as part of the frontend TypeScript migration (&33).
This is the second and final merge request for #925 (closed), building on !3068 (merged):
- Converted
IssuesPage.vueto<script setup lang="ts">, typing reactive refs and GraphQL queries. - Converted
platformIssues.tsto TypeScript, exportingFinderIssue. - Converted
IssuesPage.spec.tsandplatformIssues.spec.tsusing typed mocks conforming to ADR 005 and real router navigation per ADR 006.
Behaviour changes
- In
IssuesPage.vue,loadIssuesForskipsnullnodes andnulllabels from GraphQL responses instead of throwing. - In
IssuesPage.vue,:total-rowspassesundefinedinstead ofnullwhen the source is GitLab to align with Vue prop types.DisplaySectiondefaultstotalRowstonull.
Related issues
Closes #925 (closed)
Validation steps
- Verify TypeScript compilation and ESLint rules in CI pipeline.
- Verify unit tests pass in
IssuesPage.spec.tsandplatformIssues.spec.ts.
Implemented with AI assistance; I reviewed and tested the changes.
Edited by Abdelrahman Megahed