Commit 1fef292
authored
perf: optimize table rendering with virtualization (#5)
* perf: optimize table rendering with virtualization
- Replace HeroUI Table with custom virtualized table using @tanstack/react-virtual
- Remove useMemo/useCallback optimizations in favor of direct virtualization
- Implement fixed column widths and sticky row number column
- Add destroyInactiveTabPanel prop to Tabs component
- Add "export" translation key for Chinese and English
- Simplify query status logic and remove unnecessary memoization
- Improve table performance for large datasets by rendering
* feat: improve empty state UI and reposition total rows counter
- Add table header with row number column to empty state
- Update empty state styling with better colors and spacing
- Move total rows counter to bottom-left as floating badge
- Only show total counter when data exists
- Adjust toolbar padding from top to right
- Improve visual consistency between empty and populated states
* refactor: replace div-based table with semantic HTML table
* refactor: change row number column alignment from center to left
* refactor: adjust z-index values for table header and total counter
* feat: add column resizing support to data result table1 parent 8066aed commit 1fef292
File tree
6 files changed
+2915
-3036
lines changed- src
- i18n
- pages/notebook/notebook-middle
6 files changed
+2915
-3036
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | | - | |
| 57 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
| 211 | + | |
210 | 212 | | |
211 | 213 | | |
212 | 214 | | |
| |||
385 | 387 | | |
386 | 388 | | |
387 | 389 | | |
| 390 | + | |
388 | 391 | | |
389 | 392 | | |
390 | 393 | | |
| |||
Lines changed: 46 additions & 72 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 30 | + | |
35 | 31 | | |
36 | 32 | | |
37 | 33 | | |
38 | | - | |
39 | | - | |
| 34 | + | |
40 | 35 | | |
41 | 36 | | |
42 | 37 | | |
| |||
50 | 45 | | |
51 | 46 | | |
52 | 47 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 48 | + | |
78 | 49 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
84 | 53 | | |
| 54 | + | |
85 | 55 | | |
86 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
87 | 59 | | |
88 | 60 | | |
89 | 61 | | |
90 | | - | |
91 | | - | |
| 62 | + | |
92 | 63 | | |
93 | 64 | | |
94 | 65 | | |
95 | | - | |
96 | | - | |
97 | 66 | | |
98 | | - | |
| 67 | + | |
99 | 68 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
127 | 100 | | |
128 | 101 | | |
129 | 102 | | |
130 | 103 | | |
131 | 104 | | |
132 | 105 | | |
133 | 106 | | |
| 107 | + | |
134 | 108 | | |
135 | 109 | | |
136 | 110 | | |
| |||
147 | 121 | | |
148 | 122 | | |
149 | 123 | | |
150 | | - | |
| 124 | + | |
151 | 125 | | |
152 | 126 | | |
153 | 127 | | |
| |||
0 commit comments