Skip to content

Chore/pending fixes tree auth sidebar#1325

Merged
perber merged 7 commits into
mainfrom
chore/pending-fixes-tree-auth-sidebar
Jul 22, 2026
Merged

Chore/pending fixes tree auth sidebar#1325
perber merged 7 commits into
mainfrom
chore/pending-fixes-tree-auth-sidebar

Conversation

@perber

@perber perber commented Jul 22, 2026

Copy link
Copy Markdown
Owner

No description provided.

perber added 7 commits July 22, 2026 19:35
Extend the shared RetryOnCorruption wipe-and-retry policy (already used by
tags/links/properties/search/favorites) to the user and session SQLite
stores, so a corrupted users.db/sessions.db self-heals on next start
instead of leaving the store permanently broken.
Flip the --snapshot flag default from false to true now that the
feature has been verified end-to-end.
Pressing the search hotkey while the search panel is already active now
refocuses the input instead of doing nothing, via a searchFocusRequestId
counter in the sidebar store since sidebarVisible/sidebarMode don't
change value in that case.
…ions

Replace display:none <-> flex toggling on the toc-pane with an
always-mounted, always-flex 0-width box that only animates its width.
Previously the pane's first appearance (mount) had no prior width to
transition from, so <main> snapped to its narrower width in one frame
while the subheader's padding-right (animated on an always-mounted
node) still eased in over 200ms, causing a visible desync.
…on read-only

- Replace the TreeDndContext React context with a treeDndStore zustand
  store so drag state updates (activeId/dropTarget) don't force a
  re-render of every TreeNode via context propagation.
- Move the favorite toggle out of the always-visible tree row
  (FavoriteToggleButton) into TreeNodeActionsMenu as a dropdown item,
  available to any logged-in user regardless of read-only mode.
- Wrap the mutating actions in TreeNodeActionsMenu (add/edit/rename/
  copy/sort/move/convert/delete) behind useIsReadOnly(), matching the
  read-only guard already applied to the inline add-page button.
- transition-colors instead of transition-all on .tree-node, since only
  color properties are animated there now.
The DELETE /api/pages/:id endpoint now requires a version query param
for optimistic-concurrency checking; the perf test's cleanup helper
was still calling it without one.
@perber
perber merged commit 3d6ce25 into main Jul 22, 2026
9 checks passed
@perber
perber deleted the chore/pending-fixes-tree-auth-sidebar branch July 22, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant