Skip to content

Commit 14c0dd5

Browse files
authored
feat: migrate to glide-data-grid canvas table (#420)
1 parent 58f8662 commit 14c0dd5

18 files changed

Lines changed: 1737 additions & 760 deletions

.circleci/config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@ jobs:
8080
- run: sudo corepack enable
8181
- run: yarn check-types
8282

83+
test:
84+
docker: *docker-node-image
85+
steps:
86+
- checkout
87+
- restore_cache: *restore-node-modules-cache
88+
- attach_workspace: { at: "." }
89+
- run: sudo corepack enable
90+
- run: yarn test
91+
8392
dist:
8493
docker: *docker-node-image
8594
environment:
@@ -118,5 +127,7 @@ workflows:
118127
requires: [build]
119128
- check-types:
120129
requires: [build]
130+
- test:
131+
requires: [build]
121132
- dist:
122133
requires: [build]

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ bin
55
lib
66
node_modules
77
out
8+
dist

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"check-format": "prettier --check \"./**/*.{js,json,md,scss,ts,tsx,yaml,yml}\"",
1212
"check-lint": "nx run-many -t check-lint",
1313
"check-types": "nx run-many -t check-types",
14+
"test": "nx run-many -t test",
1415
"clean": "nx run-many -t clean",
1516
"dev:web": "yarn workspace @adahiya/raga-web-app dev",
1617
"dev:electron": "yarn workspace @adahiya/raga-app dev",

packages/raga-web-app/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,11 @@
1414
<body>
1515
<div id="root"></div>
1616
<script type="module" src="/src/main.tsx"></script>
17+
18+
<!--
19+
Portal element for glide-data-grid.
20+
See https://github.com/glideapps/glide-data-grid/blob/96d1830be921db97d0e8a50139fea3b3ead24536/packages/core/API.md#htmlcss-prerequisites
21+
-->
22+
<div id="portal" style="position: fixed; left: 0; top: 0; z-index: 9999" />
1723
</body>
1824
</html>

packages/raga-web-app/package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@
1212
"check-lint": "eslint .",
1313
"check-types": "tsc --noEmit",
1414
"lint-fix": "eslint --fix .",
15+
"test": "vitest run",
1516
"clean": "rm -rf dist .vite"
1617
},
1718
"dependencies": {
1819
"@adahiya/raga-types": "workspace:*",
1920
"@emotion/react": "^11.14.0",
2021
"@faker-js/faker": "^9.8.0",
22+
"@glideapps/glide-data-grid": "^6.0.3",
2123
"@mantine/colors-generator": "^8.3.10",
2224
"@mantine/core": "^8.3.10",
2325
"@mantine/dates": "^8.3.10",
@@ -30,15 +32,16 @@
3032
"@mantine/spotlight": "^8.3.10",
3133
"@number-flow/react": "^0.5.10",
3234
"@roarr/browser-log-writer": "^1.3.0",
33-
"@table-library/react-table-library": "^4.1.15",
3435
"ansis": "^4.2.0",
3536
"chroma-js": "^3.2.0",
3637
"classnames": "^2.5.1",
3738
"clsx": "^2.1.1",
3839
"date-fns": "^4.1.0",
3940
"dayjs": "^1.11.19",
4041
"immer": "^10.2.0",
42+
"lodash": "^4.17.21",
4143
"mantine-contextmenu": "^8.3.11",
44+
"marked": "^15.0.12",
4245
"motion": "^12.23.26",
4346
"pluralize": "^8.0.0",
4447
"radash": "^12.1.1",
@@ -47,6 +50,7 @@
4750
"react-dropzone": "^14.3.8",
4851
"react-icons": "^5.5.0",
4952
"react-resizable-panels": "^3.0.3",
53+
"react-responsive-carousel": "^3.2.23",
5054
"react-scan": "^0.4.3",
5155
"roarr": "^7.21.2",
5256
"serialize-error": "^12.0.0",
@@ -58,6 +62,7 @@
5862
},
5963
"devDependencies": {
6064
"@types/chroma-js": "^3.1.2",
65+
"@types/lodash": "^4",
6166
"@types/node": "^24.10.4",
6267
"@types/pluralize": "^0.0.33",
6368
"@types/react": "^19.2.7",
@@ -70,6 +75,7 @@
7075
"sass": "^1.97.1",
7176
"typescript": "^5.9.3",
7277
"vite": "^7.3.0",
73-
"vite-plugin-html-config": "^2.0.2"
78+
"vite-plugin-html-config": "^2.0.2",
79+
"vitest": "^3.2.4"
7480
}
7581
}

packages/raga-web-app/src/components/trackTable/audioFileTypeTag.tsx

Lines changed: 0 additions & 32 deletions
This file was deleted.

packages/raga-web-app/src/components/trackTable/editableTrackTagValue.module.scss

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/raga-web-app/src/components/trackTable/editableTrackTagValue.tsx

Lines changed: 0 additions & 58 deletions
This file was deleted.

packages/raga-web-app/src/components/trackTable/fetchDiscogsGenreButton.tsx

Lines changed: 0 additions & 38 deletions
This file was deleted.

packages/raga-web-app/src/components/trackTable/trackDateAddedText.tsx

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)