Update react-table to v8 (#2131)

Updating react-table to v8. 
- Migrating the existing table to v8
- Preserving the visuals and logic

What's done?
- Cell components are moved under `Cells` folder
- Old styles for react-table-6 is removed.
- Old types are removed
- All logic was preserved
- Some cell components are removed for simplicity


Fixes: https://github.com/grafana/oss-big-tent-squad/issues/125
This commit is contained in:
ismail simsek
2025-12-10 19:25:04 +01:00
committed by GitHub
parent e073382983
commit cc492b916d
20 changed files with 931 additions and 745 deletions

View File

@@ -3059,6 +3059,18 @@ __metadata:
languageName: node
linkType: hard
"@tanstack/react-table@npm:^8.21.3":
version: 8.21.3
resolution: "@tanstack/react-table@npm:8.21.3"
dependencies:
"@tanstack/table-core": "npm:8.21.3"
peerDependencies:
react: ">=16.8"
react-dom: ">=16.8"
checksum: 10c0/85d1d0fcb690ecc011f68a5a61c96f82142e31a0270dcf9cbc699a6f36715b1653fe6ff1518302a6d08b7093351fc4cabefd055a7db3cd8ac01e068956b0f944
languageName: node
linkType: hard
"@tanstack/react-virtual@npm:^3.5.1":
version: 3.13.12
resolution: "@tanstack/react-virtual@npm:3.13.12"
@@ -3071,6 +3083,13 @@ __metadata:
languageName: node
linkType: hard
"@tanstack/table-core@npm:8.21.3":
version: 8.21.3
resolution: "@tanstack/table-core@npm:8.21.3"
checksum: 10c0/40e3560e6d55e07cc047024aa7f83bd47a9323d21920d4adabba8071fd2d21230c48460b26cedf392588f8265b9edc133abb1b0d6d0adf4dae0970032900a8c9
languageName: node
linkType: hard
"@tanstack/virtual-core@npm:3.13.12":
version: 3.13.12
resolution: "@tanstack/virtual-core@npm:3.13.12"
@@ -7389,6 +7408,7 @@ __metadata:
"@swc/core": "npm:^1.3.90"
"@swc/helpers": "npm:^0.5.0"
"@swc/jest": "npm:^0.2.26"
"@tanstack/react-table": "npm:^8.21.3"
"@testing-library/jest-dom": "npm:6.1.4"
"@testing-library/react": "npm:14.0.0"
"@types/glob": "npm:^8.0.0"
@@ -7432,7 +7452,6 @@ __metadata:
react: "npm:18.3.1"
react-dom: "npm:18.3.1"
react-router-dom: "npm:^6.22.0"
react-table-6: "npm:6.11.0"
react-use: "npm:17.4.0"
replace-in-file-webpack-plugin: "npm:^1.0.6"
rxjs: "npm:7.8.2"
@@ -11372,19 +11391,6 @@ __metadata:
languageName: node
linkType: hard
"react-table-6@npm:6.11.0":
version: 6.11.0
resolution: "react-table-6@npm:6.11.0"
dependencies:
classnames: "npm:^2.2.5"
peerDependencies:
prop-types: ^15.5.0
react: ^16.x.x
react-dom: ^16.x.x
checksum: 10c0/4b65f88320f00bcbf4782cb95a4413c549330dbdbc79d6432f9d6800453f9db376a086a162e464b4d1cddf9e1b9a692b0a777d79a85aa4b1e1661bf2caaad7e1
languageName: node
linkType: hard
"react-table@npm:7.8.0":
version: 7.8.0
resolution: "react-table@npm:7.8.0"