Commit graph

7 commits

Author SHA1 Message Date
vicky469
3b70785b89 refactor: drop legacy comment storage
Remove runtime support for old plugin names, URI protocols, inline note blocks, and legacy sidecar paths. Users who still need inline migration must upgrade through the previous release first.
2026-06-12 11:07:00 +08:00
vicky469
0cdc6ca29d refactor(comments): remove resolved feature
Removes the resolved/unresolve comment feature entirely. Comments are
now always visible — there is no archived state or toggle.

- Removes `resolved?: boolean` from CommentThread, Comment, and all
  storage/normalization paths
- Removes resolveComment/unresolveComment from CommentManager,
  CommentMutationController, and public plugin API
- Removes shouldShowResolvedComments/setShowResolvedComments from
  session, mutation, and persistence controllers
- Removes sidebar resolve button, toolbar chip, and resolved empty
  states from AsideView
- Removes setThreadResolved sync event generation; keeps the op in the
  union type as a backward-compatible no-op so old stored events parse
  without error
- Deletes resolvedCommentVisibility.ts, commentSelectionVisibility.ts,
  and resolve-note-comment.mjs scripts
- Updates README to remove resolved feature mentions
- Updates all tests accordingly

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-06 18:11:45 +08:00
vicky
bfa1ab4dae fix(storage): ignore missing sidecars 2026-05-15 16:47:09 -04:00
vicky
8eec589e2e fix(comments): keep reload responsive
Register the UI before startup maintenance so Aside is visible while persistence cleanup runs in the background.

Cancel long persistence scans on unload, skip generated markdown paths, and prune deleted sidecar/source records before rebuilding the index.
2026-05-14 23:33:45 -04:00
vicky
0effcefe06 refactor: rename SideNote2 to Aside 2026-05-13 14:44:11 -04:00
vicky
ebdb6d36ac Improve SideNote2 sync recovery and index folding 2026-05-02 00:00:29 -04:00
vicky
10bf163a9f Implement per-note sidecar storage for side comments
Move canonical thread data from inline <!-- SideNote2 comments --> blocks
to per-note JSON sidecars under .obsidian/plugins/side-note2/sidenotes/by-note/.

- Add SidecarCommentStorage with atomic write (temp + rename), read, rename, remove
- Shard sidecar paths by 2-character hash prefix
- Startup auto-migration reads legacy inline blocks, writes sidecars, strips blocks
- Persist migration version in plugin data to avoid re-running
- Rename and delete lifecycle handlers now move/remove sidecars
- Sidebar, index, and comment persistence all read sidecar-first
- Update README with new storage layout
- Add FAQ to docs/reflect/storage-layout-options.md
- Ignore dev vault sidenotes/ artifacts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-26 03:15:25 -04:00