Commit 8627b55
feat: use clientLoader + localStorage for resizable panel persistence
Replace server-side cookie reading (getResizableSnapshot) with client-side
localStorage for persisting resizable panel sizes. Cookies were hitting the
~4KB size limit; localStorage supports 5-10MB.
- Run detail route: uses Remix clientLoader with hydrate=true to read panel
snapshots from localStorage before first render
- Prompts route: returns undefined for snapshots, letting the
react-window-splitter library read from localStorage natively via
autosaveStrategy="localStorage"
Co-Authored-By: Eric Allam <eallam@icloud.com>1 parent 7d82041 commit 8627b55
2 files changed
+34
-19
lines changedLines changed: 4 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
| |||
271 | 270 | | |
272 | 271 | | |
273 | 272 | | |
274 | | - | |
| 273 | + | |
275 | 274 | | |
276 | 275 | | |
277 | 276 | | |
| |||
281 | 280 | | |
282 | 281 | | |
283 | 282 | | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | 283 | | |
288 | 284 | | |
289 | 285 | | |
290 | 286 | | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | 287 | | |
295 | 288 | | |
296 | 289 | | |
| |||
302 | 295 | | |
303 | 296 | | |
304 | 297 | | |
305 | | - | |
306 | | - | |
307 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
308 | 301 | | |
309 | 302 | | |
310 | 303 | | |
| |||
Lines changed: 30 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
| |||
279 | 278 | | |
280 | 279 | | |
281 | 280 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | 281 | | |
287 | 282 | | |
288 | 283 | | |
| |||
297 | 292 | | |
298 | 293 | | |
299 | 294 | | |
300 | | - | |
301 | | - | |
| 295 | + | |
| 296 | + | |
302 | 297 | | |
303 | 298 | | |
304 | 299 | | |
305 | 300 | | |
306 | 301 | | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
307 | 329 | | |
308 | 330 | | |
309 | 331 | | |
| |||
0 commit comments