Skip to content

fix: keep Show hidden properties on hide-empty tagged pages - #13425

Merged
tiensonqin merged 4 commits into
masterfrom
logseq/show-hidden-properties-tagged-page-a741
Nov 5, 2026
Merged

tiensonqin merged 4 commits into
masterfrom
logseq/show-hidden-properties-tagged-page-a741

Conversation

@tiensonqin

@tiensonqin tiensonqin commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes logseq/db-test#1288

When a page's tag declares properties that are all logseq.property/hide-empty-value and unset, display-properties correctly puts them in hidden-properties — but properties-area early-returned nil whenever full-properties was empty and hidden-properties was non-empty (non-root, non-sidebar, non-class, not currently revealed). The "Show hidden properties" toggle only exists in the later :else branch, so on a tagged page the whole area never mounted: hidden tag properties could never be revealed or filled.

Fix

  • Extract 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.
  • Extract properties-area-hidden-only-early-nil?: same early nil as before, but now also gated on (not show-hidden-properties-toggle-button?), so surfaces that would render the toggle fall through to :else instead of returning nil. Nested outliner blocks with only hidden properties still collapse (no toggle there).

Tests

  • Retain the headless E2E 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.
  • Remove duplicate worker classification and mocked static component tests; the real E2E protects the regression across the worker and renderer.

Verification

  • Rebased onto master 0232648eb4.
  • The same headless E2E fails on master because the reveal toggle is absent, and passes on this branch.
  • After test cleanup, the retained headless E2E, 15 component tests, and 9 worker tests pass. Unit tests use LOGSEQ_STABLE_IDENTS=1.
  • Test compilation and git diff --check pass.

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

@devin-ai-integration
devin-ai-integration Bot force-pushed the logseq/show-hidden-properties-tagged-page-a741 branch from f81123f to 9f6b20e Compare October 2, 2026 13:45
@devin-ai-integration devin-ai-integration Bot changed the title Keep Show hidden properties on hide-empty tagged pages fix: keep Show hidden properties on hide-empty tagged pages Oct 2, 2026
@devin-ai-integration
devin-ai-integration Bot marked this pull request as ready for review October 2, 2026 13:54

@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: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@megayu
megayu force-pushed the logseq/show-hidden-properties-tagged-page-a741 branch from 4639064 to 575fca9 Compare October 29, 2026 07:27
cursoragent and others added 4 commits November 5, 2026 08:47
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]>
…boundary

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@tiensonqin
tiensonqin force-pushed the logseq/show-hidden-properties-tagged-page-a741 branch from 575fca9 to 1dd869c Compare November 5, 2026 08:47
@tiensonqin
tiensonqin merged commit 2fadc06 into master Nov 5, 2026
@tiensonqin
tiensonqin deleted the logseq/show-hidden-properties-tagged-page-a741 branch November 5, 2026 08:47
@CLAassistant

CLAassistant commented Nov 5, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

UX/UI: "Show hidden properties" link missing on tagged page when all of the tag's properties have "Hide empty value" enabled

4 participants