Commit ab261a2
committed
fix(webapp): serialize preference writes and improve favorite defaults
New favorites now land at the top of the Favorites section, and
favoriting a detail page whose title is generic uses the short id from
the URL (e.g. "Run: 05hrqq9n", matching the id shown in the runs
table). The star tooltip previews that label before you save.
Fix sidebar customizations reappearing after Reset + Confirm: every
preference writer is a read-modify-write over one JSON column, and a
concurrent write (a debounced collapse or width save, a favorite
toggle, a dashboard reorder) could land after the clear and write the
old customization back from its stale read. All preference writes now
re-read the row under a lock inside a transaction, so concurrent
writers serialize instead of clobbering each other.1 parent d4eb604 commit ab261a2
3 files changed
Lines changed: 213 additions & 187 deletions
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
241 | 255 | | |
242 | 256 | | |
243 | | - | |
| 257 | + | |
| 258 | + | |
244 | 259 | | |
245 | 260 | | |
246 | 261 | | |
247 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
248 | 270 | | |
249 | | - | |
250 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
251 | 274 | | |
252 | 275 | | |
253 | | - | |
254 | 276 | | |
255 | 277 | | |
256 | 278 | | |
| |||
281 | 303 | | |
282 | 304 | | |
283 | 305 | | |
| 306 | + | |
284 | 307 | | |
285 | | - | |
286 | 308 | | |
| 309 | + | |
287 | 310 | | |
288 | 311 | | |
289 | 312 | | |
| |||
0 commit comments