Skip to content

refactor(TaskDetails): replace chart and map callback any usage #1403#1985

Open
NaitikVerma6776 wants to merge 1 commit into
utksh1:mainfrom
NaitikVerma6776:issue-#1403
Open

refactor(TaskDetails): replace chart and map callback any usage #1403#1985
NaitikVerma6776 wants to merge 1 commit into
utksh1:mainfrom
NaitikVerma6776:issue-#1403

Conversation

@NaitikVerma6776

Copy link
Copy Markdown
Contributor

Summary

  • Replaces the four flagged any annotations in TaskDetails.tsx with concrete types.
  • DetailIcon now uses ComponentProps<typeof HugeiconsIcon>['icon'] for icon props.
  • Severity reduction, preview findings map, and discovery table rows now use Finding or Record<string, unknown>.

Closes #1403

Test plan

  • npm run typecheck (frontend)
  • npm run test -- testing/unit/pages/TaskDetails.collapsible.test.tsx
  • No runtime behavior changes

Use concrete HugeiconsIcon, Finding, and row types in TaskDetails so
the flagged callback annotations no longer rely on any.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

[TYPESCRIPT] Replace TaskDetails chart and map callback any usage

1 participant