Skip to content

Fix page hierarchy search and deletion on mobile - #325

Open
tiensonqin wants to merge 2 commits into
mainfrom
codex/ios-page-hierarchy-search
Open

tiensonqin wants to merge 2 commits into
mainfrom
codex/ios-page-hierarchy-search

Conversation

@tiensonqin

@tiensonqin tiensonqin commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Match page searches across namespace levels. A query like Parent Child finds Parent Page/Child Page, and the result shows its parent path and visible tags. Queries with slashes match the corresponding namespace segments.
  • Reuse namespace roots stored under the built-in Library page by Logseq desktop. Exclude recycled names from live lookups so users can create and link new children.
  • Warn and keep the current page open when it still has child pages. Preserve the text of references to deleted leaf pages and remove their link targets. Rebase offline deletions against the latest note titles so incoming edits survive.
  • Preserve existing references to hidden live pages when saving edits. Render deleted inline tags as literal text so editing the note cannot recreate the tag.

The namespace index, leaf lookup, and result metadata were checked against desktop master at 4f854df485. For graphs already affected by an earlier deletion, restore the original parent from Recycle to recover its subtree.

Verification

  • dune build @shared/native/runtest passed all 1,488 tests, including search ranking and pagination, namespace moves and renames, old index upgrades, desktop graph compatibility, concurrent referrer edits, hidden live references, and deleted tags.
  • Built and tested on an iPhone 18 Pro simulator. Verified page and block search navigation, breadcrumbs and tags, and the parent deletion warning.

iPhone demo

page-hierarchy.mp4

Devin Review

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 4 potential issues.

Devin Review

Comment thread shared/src/logseq/core/graph_read.ml Resolved
Comment thread shared/src/logseq/core/search_index.ml Resolved
Comment thread shared/src/logseq/core/ref_text.ml Resolved
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