Skip to content

refactor(ui): fix the unsafe-assignment findings of the dashboard, repository and settings tests - #1275

Merged
TheMeinerLP merged 1 commit into
mainfrom
refactor/ts-unsafe-assignment-dashboard-tests
Nov 23, 2026
Merged

TheMeinerLP merged 1 commit into
mainfrom
refactor/ts-unsafe-assignment-dashboard-tests

Conversation

@TheMeinerLP

Copy link
Copy Markdown

Description

Part of task 4.3.2 of migrate-dashboard-to-typescript. The tests of the dashboard, header, overview, repositories, settings and pages folders still carried 38 suppressed no-unsafe-assignment findings. They came from mounted components, route components and renderer lists whose imports the linter sees as untyped. The specs now state the types those values really have, so the findings are fixed instead of hidden, and the matching entries are gone from eslint-suppressions.json. Only test files change; no production code and no behaviour.

Type of change

  • refactor - internal change without behaviour change

How was this tested?

In reposilite-frontend, through the slot runner:

  • npm run eslint over the whole frontend: clean, no new suppressions
  • npm run typecheck: clean
  • vitest on the touched folders plus src/anchors and src/style-gate: 112 files, 1779 tests passed

Checklist

  • Commit messages follow the Conventional Commits convention documented in CLAUDE.md
  • Tests cover the change, or the change is not testable and I explained why above
  • ./gradlew build passes locally (frontend only change, not run)
  • Documentation and configuration samples are updated if the change is user-facing (not user-facing)
  • Existing copyright headers are preserved; new files carry the appropriate header
  • No credentials, tokens or personal data are included in the diff

@TheMeinerLP
TheMeinerLP added this pull request to the merge queue Nov 23, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 23, 2026
@TheMeinerLP
TheMeinerLP added this pull request to the merge queue Nov 23, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 23, 2026
…pository and settings tests

The mounted wrappers, the route components and the JSON Forms renderer
lists of these specs came from untyped imports, so the linter could not
follow what they were assigned. Cast them to the types they really have
(VueWrapper, Component, RankedTester, the renderer registry entry) and
drop the 38 matching suppressions. No production code is touched.

Signed-off-by: TheMeinerLP <github@themeinerlp.dev>
@TheMeinerLP
TheMeinerLP force-pushed the refactor/ts-unsafe-assignment-dashboard-tests branch from 34a6e2e to 65844b2 Compare November 23, 2026 09:49
@TheMeinerLP
TheMeinerLP added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit f6c2f67 Nov 23, 2026
39 checks passed
@TheMeinerLP
TheMeinerLP deleted the refactor/ts-unsafe-assignment-dashboard-tests branch November 23, 2026 10:05
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