Skip to content

TypeScript: Convert ConfirmStep.jsx to TSX and remove any types in Import flow #52

@andrejvysny

Description

@andrejvysny

Context
Issue #38 calls for TypeScript strictness and comprehensive types. The repo has strict: true, but there is a JavaScript file: resources/js/components/Import/ConfirmStep.jsx, and many any usages in Import types and FieldMappingService.

Scope

  • Convert resources/js/components/Import/ConfirmStep.jsx to ConfirmStep.tsx with proper props interfaces
  • Replace any in FieldMappingService signatures and internals with typed structures using existing types (ImportFailure, Import) and new helper types where needed
  • Add/extend types in resources/js/types/index.ts for import mapping and field definitions if gaps exist

Affected files

  • resources/js/components/Import/ConfirmStep.jsx -> ConfirmStep.tsx
  • resources/js/pages/import/FieldMappingService.ts (reduce any usage)
  • resources/js/types/index.ts (add missing types)

Acceptance criteria

Labels
area:frontend, area:types, type:refactor

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontendrefactorRefactoring code with keeping same functionality.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions