Skip to content

Commit bc582e5

Browse files
authored
refactor(cubesql): Improve EGraph debugger, part 1: initial state, JSON for data, eslint, prettier, hooks deps, (#8855)
* Extract writing debug for rewrite iteration to function * Add initial egraph state to debug data * Store states data as JSON in debugger * Move debug data from iterations to analysis * Pin react-scripts version in debugger * Reformat debugger Tried to match existing style with quotes and tab width * Wrap navigate with a useCallback * Replace a with span in ChildrenNode It's not a proper link, just inline piece of text with click handler * Add missing dependencies for layout hook * Fix dependencies for nodeTypes memo * Enable eslint for debugger
1 parent 15f5a12 commit bc582e5

File tree

5 files changed

+425
-210
lines changed

5 files changed

+425
-210
lines changed

.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ insert_final_newline = true
1111

1212
[*.rs]
1313
indent_size = 4
14+
15+
[rust/cubesql/cubesql/egraph-debug-template/**/*.{js,jsx,ts,tsx}]
16+
indent_size = 4

rust/cubesql/cubesql/egraph-debug-template/package.json

+12-1
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,22 @@
1111
"scripts": {
1212
"start": "GENERATE_SOURCEMAP=false && react-scripts start",
1313
"build": "react-scripts build",
14+
"reformat": "prettier --write \"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}\"",
1415
"test": "react-scripts test --env=jsdom",
1516
"eject": "react-scripts eject"
1617
},
1718
"devDependencies": {
18-
"react-scripts": "latest"
19+
"prettier": "3.3.3",
20+
"react-scripts": "5.0.1"
21+
},
22+
"eslintConfig": {
23+
"extends": [
24+
"react-app"
25+
]
26+
},
27+
"prettier": {
28+
"singleQuote": true,
29+
"tabWidth": 4
1930
},
2031
"browserslist": {
2132
"production": [

0 commit comments

Comments
 (0)