Skip to content

Convert table folder to TypeScript#1251

Merged
PhilippWendler merged 26 commits intotypescript-migration/typescript-full-migrationfrom
typescript-migration/migration/table-folder
Feb 20, 2026
Merged

Convert table folder to TypeScript#1251
PhilippWendler merged 26 commits intotypescript-migration/typescript-full-migrationfrom
typescript-migration/migration/table-folder

Conversation

@Simon1375
Copy link
Copy Markdown
Contributor

Summary

This pull request migrates the src/components/Table/ folder from JavaScript to TypeScript, improving type safety and maintainability. It includes file conversions, type annotations, and code refactoring for better readability and stricter type checking.

Changes

  1. File Conversions:

    • FilterInputField.jsFilterInputField.tsx
    • MinMaxFilterInputField.jsMinMaxFilterInputField.tsx
    • StatusFilter.jsStatusFilter.tsx
    • index.jsindex.ts
  2. Refactors and Cleanups:

    • Updated hasSameEntries to use ReadonlyArray for stricter type safety.
    • Cleaned up and optimized FilterInputField.tsx, MinMaxFilterInputField.tsx, and StatusFilter.tsx components.
  3. Documentation:

    • Updated MIGRATION.md to mark the src/components/Table/ migration task as complete.

…able-folder' into typescript-migration/migration/table-folder

# Conflicts:
#	benchexec/tablegenerator/react-table/build/main.min.js
Comment on lines -21 to -25
* @typedef {Object} RelevantFilterParam
* @property {string[]} categoryFilters - The category filters that are currently selected
* @property {string[]} statusFilters - The status filters that are currently selected
* @property {string[]} categoryFilterValues - All selectable category filter values
* @property {string[]} statusFilterValues - All selectable status filter values
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this information still present somewhere?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is now defined as a type:
type RelevantFilterParam = Readonly<{
categoryFilters: ReadonlyArray;
statusFilters: ReadonlyArray;
categoryFilterValues: ReadonlyArray;
statusFilterValues: ReadonlyArray;
}>;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I was not fully clear. I meant the explanations like "The category filters that are currently selected"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah sorry, I overlooked the comments and will add them.

@Simon1375
Copy link
Copy Markdown
Contributor Author

Have you finished the review so I can remove the temporary comments?

@PhilippWendler
Copy link
Copy Markdown
Member

Have you finished the review so I can remove the temporary comments?

Yes, the only thing remaining is re-adding the comments for the filters and removing the migration comments, then we can merge.

@PhilippWendler PhilippWendler merged commit b87dbee into typescript-migration/typescript-full-migration Feb 20, 2026
15 checks passed
@PhilippWendler PhilippWendler deleted the typescript-migration/migration/table-folder branch February 20, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants