Migrate away from bootstrap table
Problem to solve
The library react-bootstrap-table-next
has not been updated for a couple of years, we cannot have the front rely on abandonware.
This lib is also blocking any updates to the front deps since bootstrap-table
is not compatible with React > 16.
Intended users
ASM devs
Proposal
Let's phase out react-bootstrap-table in favor of https://tanstack.com/table/v8
-
Install @tanstack/react-table -
Add a PoC table component -
Apply styles to the table component -
Add support for sorting -
Add support for pagination -
Add support for page size selection -
Add support for search bar (basic) -
Add support for CSV export -
Add support for row expansion -
Add support for row click callback -
Add support for cell formatters -
Add support for column toggling (hide/show columns) -
Add support for responsive view (horizontal scrolling) -
Add support for insertion of JSX elements -
Add support for row selection -
Add support for initial state -
Replace usage of the old table component -
Rename component -
Remove react-bootstrap-table dependency
Test plan
https://gitlab.com/fluidattacks/universe/-/quality/test_cases/7528
What does success look like, and how can we measure that?
-
react-bootstrap-table-next
is removed as a dependency