Commit 03e7eba
authored
Separate and collapse CSV column selector card (#123)
### Motivation
- Improve the CSV Row Viewer UI by separating column selection from row browsing so the controls are clearer and less crowded.
- Make the column selector collapsible and collapsed by default to reduce visual noise for users who only want to view rows.
- Display column checkboxes in a single vertical list with the checkbox on the left for clear, accessible selection.
### Description
- Moved the column selection UI out of the `#viewer` card into a new `#column-selector` card that contains a `<details>` block with a `summary` titled "Column selection" so it is collapsed by default.
- Removed the inline column-filter markup from `#viewer` and added `#column-filter-card` and `#column-checkboxes` inside the new `#column-selector` markup.
- Adjusted CSS to make the checkbox list vertical (`.column-checkboxes { grid-template-columns: 1fr; }`) and added `.column-filter-details>summary` styles to indicate the collapsible header.
- Updated JavaScript to reference the new `columnSelector` element and show/hide `columnSelector` together with `columnFilterCard` during CSV load and on parse errors, preserving existing checkbox and "select all" behavior.
------
[Codex Task](https://chatgpt.com/codex/tasks/task_e_69c3c3f0a4f08325a4678927023530b4)1 parent 3b3d7b6 commit 03e7eba
1 file changed
Lines changed: 26 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 69 | | |
75 | 70 | | |
76 | 71 | | |
| |||
84 | 79 | | |
85 | 80 | | |
86 | 81 | | |
87 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
129 | 145 | | |
130 | 146 | | |
131 | 147 | | |
132 | 148 | | |
133 | 149 | | |
134 | 150 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | 151 | | |
147 | 152 | | |
148 | 153 | | |
| |||
183 | 188 | | |
184 | 189 | | |
185 | 190 | | |
| 191 | + | |
186 | 192 | | |
187 | 193 | | |
188 | 194 | | |
| |||
285 | 291 | | |
286 | 292 | | |
287 | 293 | | |
| 294 | + | |
288 | 295 | | |
289 | 296 | | |
290 | 297 | | |
291 | 298 | | |
| 299 | + | |
292 | 300 | | |
293 | 301 | | |
294 | 302 | | |
| |||
342 | 350 | | |
343 | 351 | | |
344 | 352 | | |
| 353 | + | |
345 | 354 | | |
346 | 355 | | |
347 | 356 | | |
| |||
0 commit comments