Repository navigation
fix: keep Show hidden properties on hide-empty tagged pages - #13425
Merged
tiensonqin merged 4 commits intoNov 5, 2026
Merged
Conversation
devin-ai-integration
Bot
force-pushed
the
logseq/show-hidden-properties-tagged-page-a741
branch
from
October 2, 2026 13:45
f81123f to
9f6b20e
Compare
megayu
force-pushed
the
logseq/show-hidden-properties-tagged-page-a741
branch
from
October 29, 2026 07:27
4639064 to
575fca9
Compare
megayu
approved these changes
Oct 29, 2026
Properties-area returned nil when every tag property was hide-empty and empty, so the Show hidden properties control never mounted. Keep the toggle on page-title surfaces whenever hidden properties exist. Co-authored-by: Tienson Qin <[email protected]>
Co-authored-by: Tienson Qin <[email protected]>
…boundary Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
tiensonqin
force-pushed
the
logseq/show-hidden-properties-tagged-page-a741
branch
from
November 5, 2026 08:47
575fca9 to
1dd869c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes logseq/db-test#1288
When a page's tag declares properties that are all
logseq.property/hide-empty-valueand unset,display-propertiescorrectly puts them inhidden-properties— butproperties-areaearly-returnednilwheneverfull-propertieswas empty andhidden-propertieswas non-empty (non-root, non-sidebar, non-class, not currently revealed). The "Show hidden properties" toggle only exists in the later:elsebranch, so on a tagged page the whole area never mounted: hidden tag properties could never be revealed or filled.Fix
show-hidden-properties-toggle?: renders on page-title surfaces (page-title?/sidebar-properties?/tag-dialog?), the current route page, or a zoom-in root, whenever hidden properties exist — extended from route-page/zoom-in only.properties-area-hidden-only-early-nil?: same earlynilas before, but now also gated on(not show-hidden-properties-toggle-button?), so surfaces that would render the toggle fall through to:elseinstead of returningnil. Nested outliner blocks with only hidden properties still collapse (no toggle there).Tests
tagged-page-show-hidden-when-all-tag-props-hide-empty-test: create a tagged page whose only tag property is hide-empty and unset, verify the reveal toggle appears, and click it to reveal the property.Verification
0232648eb4.LOGSEQ_STABLE_IDENTS=1.git diff --checkpass.Link to Devin session: https://app.devin.ai/sessions/3600c82660bc4a5583cc0e8f2b89ac2a
Open in Devin Desktop: https://app.devin.ai/desktop/session/3600c82660bc4a5583cc0e8f2b89ac2a?variant=devin
Requested by: @megayu