Repository navigation
Commit 6bfab14
Sync sidebar organization, ordering, and navigation preferences through the server
Add a synced-preference atom that holds each UI preference in memory,
hydrates from the server, and writes through a per-key queue with
revision checks: queued edits compose as operations evaluated against
the server value at the submitted revision, functional updates re-apply
on conflict, cache updates stay revision-monotonic, and the atom
reconciles to the cache when its queue drains. The sidebar waits for
the preferences query alongside the project list instead of painting a
default layout first. A one-shot migration uploads the value found in
the old browser storage once when the server has none, then deletes
that copy. Convert the organization mode, chronological sort, three
section orders, navigation entry order and visibility, and both
provider pickers, and stop persisting normalized orders on mount.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>1 parent 4230713 commit 6bfab14
24 files changed
Lines changed: 1530 additions & 549 deletions
File tree
- apps/app/src
- components
- plugin
- sidebar
- lib
- ui-preferences
- docs
- packages/templates/src/templates
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
364 | 365 | | |
365 | 366 | | |
366 | 367 | | |
| 368 | + | |
367 | 369 | | |
368 | 370 | | |
369 | 371 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
776 | | - | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
777 | 780 | | |
778 | 781 | | |
779 | 782 | | |
| |||
804 | 807 | | |
805 | 808 | | |
806 | 809 | | |
807 | | - | |
808 | | - | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
809 | 813 | | |
810 | 814 | | |
811 | 815 | | |
| |||
821 | 825 | | |
822 | 826 | | |
823 | 827 | | |
824 | | - | |
825 | 828 | | |
826 | 829 | | |
827 | 830 | | |
828 | 831 | | |
829 | 832 | | |
830 | | - | |
831 | 833 | | |
832 | 834 | | |
833 | 835 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | 278 | | |
295 | 279 | | |
296 | 280 | | |
297 | 281 | | |
298 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
299 | 288 | | |
300 | 289 | | |
| 290 | + | |
301 | 291 | | |
302 | 292 | | |
303 | 293 | | |
| |||
306 | 296 | | |
307 | 297 | | |
308 | 298 | | |
309 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
310 | 305 | | |
311 | 306 | | |
312 | 307 | | |
| |||
This file was deleted.
0 commit comments