Commit 07da623
Persist story order in URL hash fragment (#228)
When stories are reordered via drag-and-drop, the new order is saved
to the URL as #order=id1,id2,id3 using entry IDs. On page load, the
hash is read and applied - invalid IDs (no longer on the page) are
ignored, and valid IDs from the hash are placed first with remaining
stories appended in their default order.
https://claude.ai/code/session_01C19UgCaTpUpdknig1mnMfj
Co-authored-by: Claude <noreply@anthropic.com>1 parent 8d8bac8 commit 07da623
1 file changed
+33
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
426 | 457 | | |
427 | 458 | | |
428 | 459 | | |
| |||
723 | 754 | | |
724 | 755 | | |
725 | 756 | | |
| 757 | + | |
726 | 758 | | |
727 | 759 | | |
728 | 760 | | |
| |||
818 | 850 | | |
819 | 851 | | |
820 | 852 | | |
| 853 | + | |
821 | 854 | | |
822 | 855 | | |
823 | 856 | | |
| |||
0 commit comments