Repository navigation
fix(ui): property panel alignment, pill clipping, preview popup actions, Comment class dates, EDN import validation - #13899
Open
yuxi-liu-wired wants to merge 6 commits into
Open
yuxi-liu-wired wants to merge 6 commits into
yuxi-liu-wired wants to merge 6 commits into
Conversation
| (def ^:private built-in-sync-repair-timestamp 0) | ||
| ;; Not 0: the repaired classes would show 1970-01-01 as their created/updated date. | ||
| ;; 2026-05-20T00:00:00Z, the day the repair was introduced. | ||
| (def ^:private built-in-sync-repair-timestamp 1779235200000) |
Contributor
There was a problem hiding this comment.
yuxi-liu-wired
force-pushed
the
fix/dbtest-ui2
branch
from
October 28, 2026 04:57
a278b61 to
b08f48e
Compare
Contributor
Author
|
db_core.cljs:649 (mixed-version repair payloads). Right to flag. The built-in repair is uploaded under one fixed transaction id, so an older client would send |
yuxi-liu-wired
force-pushed
the
fix/dbtest-ui2
branch
from
October 29, 2026 16:00
b08f48e to
ab2a2a5
Compare
yuxi-liu-wired
pushed a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 30, 2026
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 30, 2026
…w popup actions, Comment class dates, EDN import validation (squashed: its commits conflicted one by one with the stack)
yuxi-liu-wired
force-pushed
the
fix/dbtest-ui2
branch
from
October 31, 2026 11:02
81598dd to
982d5ca
Compare
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Oct 31, 2026
…w popup actions, Comment class dates, EDN import validation (squashed: its commits conflicted one by one with the stack)
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Nov 1, 2026
…w popup actions, Comment class dates, EDN import validation (squashed: its commits conflicted one by one with the stack)
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Nov 2, 2026
…w popup actions, Comment class dates, EDN import validation (squashed: its commits conflicted one by one with the stack)
yuxi-liu-wired
force-pushed
the
fix/dbtest-ui2
branch
from
November 3, 2026 12:02
982d5ca to
8907f5d
Compare
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Nov 3, 2026
…w popup actions, Comment class dates, EDN import validation (squashed: its commits conflicted one by one with the stack)
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Nov 4, 2026
…w popup actions, Comment class dates, EDN import validation (squashed: its commits conflicted one by one with the stack)
yuxi-liu-wired
force-pushed
the
fix/dbtest-ui2
branch
from
November 11, 2026 17:19
8907f5d to
689b4a0
Compare
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Nov 11, 2026
…w popup actions, Comment class dates, EDN import validation (squashed: its commits conflicted one by one with the stack)
2 tasks done
yuxi-liu-wired
force-pushed
the
fix/dbtest-ui2
branch
from
November 12, 2026 12:01
08e31ba to
3e36be9
Compare
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Nov 12, 2026
…w popup actions, Comment class dates, EDN import validation (squashed: its commits conflicted one by one with the stack)
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Nov 13, 2026
…w popup actions, Comment class dates, EDN import validation (squashed: its commits conflicted one by one with the stack)
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Nov 14, 2026
…w popup actions, Comment class dates, EDN import validation (squashed: its commits conflicted one by one with the stack)
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Nov 15, 2026
…w popup actions, Comment class dates, EDN import validation (squashed: its commits conflicted one by one with the stack)
yuxi-liu-wired
force-pushed
the
fix/dbtest-ui2
branch
from
November 16, 2026 12:02
3e36be9 to
379241c
Compare
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Nov 16, 2026
…w popup actions, Comment class dates, EDN import validation (squashed: its commits conflicted one by one with the stack)
yuxi-liu-wired
force-pushed
the
fix/dbtest-ui2
branch
from
November 17, 2026 12:02
379241c to
56fe6b0
Compare
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Nov 17, 2026
…w popup actions, Comment class dates, EDN import validation (squashed: its commits conflicted one by one with the stack)
yuxi-liu-wired
force-pushed
the
fix/dbtest-ui2
branch
2 times, most recently
from
November 18, 2026 14:01
b430fae to
0491fce
Compare
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Nov 18, 2026
…w popup actions, Comment class dates, EDN import validation (squashed: its commits conflicted one by one with the stack)
yuxi-liu-wired
force-pushed
the
fix/dbtest-ui2
branch
from
November 18, 2026 14:39
0491fce to
a6400a4
Compare
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Nov 18, 2026
…w popup actions, Comment class dates, EDN import validation (squashed: its commits conflicted one by one with the stack)
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Nov 18, 2026
…w popup actions, Comment class dates, EDN import validation (squashed: its commits conflicted one by one with the stack)
yuxi-liu-wired
force-pushed
the
fix/dbtest-ui2
branch
2 times, most recently
from
November 19, 2026 07:41
9c9c663 to
0f85ce7
Compare
In the page property panel, the text of a text, number or date value sat about 4px higher than its key on the same row. The key cell centres its 20px line in a 28px box, but the value container was `items-start`, so the 20px value line sat at the top of the same 28px. Only empty, node and checkbox rows had an `items-center` override. The value container is now `items-center` for every row, which makes the per-type container overrides redundant, so the empty-row rule and the container half of the node and checkbox rules are removed. Checked in headless Chromium by rendering the panel row markup against the built style.css and comparing the vertical centre of the key text and the value text: the value is 4px higher on master for default, number and date rows, 0px with this change. Fixes logseq/db-test#1044
Expanding a block's bottom property pill with several lines of content cut off the top left of the key ("link:" lost its left edge).
The pill is `rounded-full` with `overflow: hidden`, and its `::after` ring has a 9999px radius. A radius larger than half the box is scaled down to half the box height, so a tall expanded pill gets a very large elliptical corner that clips the key at the top left.
An expanded pill now has a 12px radius, on the pill and on its `::after` ring. Collapsed pills keep the fully rounded shape.
Checked in headless Chromium by rendering the expanded pill markup against the built style.css and testing whether the key's top-left corner lies inside the rounded corner: cut off with an effective radius of 32px on master, inside with 12px with this change.
Fixes logseq/db-test#968
Hovering a page link opened a preview popup whose title showed a half-visible "Add icon" / "Set property" row. `page-inner` knows it is rendered in a preview (`:preview? true`), but did not pass that on to `db-page-title`, so the title got its hover action row. The row is positioned 20px above the title and the popup's scroll box clips it. `page-inner` now passes `:preview?` to `db-page-title`, which leaves the action row out in a preview. Test: `frontend.components.page-title-test` renders `db-page-title` and checks that the action row is given to the block container on a full page and not in a preview. This does not address the other two points of the issue (the popup closing quickly, the title not rendered as a heading). Fixes logseq/db-test#1376
…ialog
Importing a one-page EDN through "Import EDN data" took about 11 seconds on a large graph.
The dialog called `batch-import-edn!` without a `:validate-scope`, so the import ran `validate-local-db!` over every entity of the graph. The MCP/CLI upsert path already passes `{:validate-scope :tx}` (logseq#13388) and the dialog was not changed with it.
The dialog now passes `{:validate-scope :tx}`, which validates the entities the import touched. The whole-graph EDN import keeps the full validation.
Test: `import-edn-data-dialog-validates-only-touched-entities-test` submits the dialog's EDN for a page with a tag and checks that `validate-local-db!` is called with `:entity-ids`.
The "Go to page" notification and the progress bar asked for in the issue are not part of this change.
Fixes logseq/db-test#994
…ace, so it merges cleanly with logseq#13886 The test this PR added to import_test.cljs sat at the same place as the ones logseq#13886 adds there, so the two PRs conflicted and the nightly merge left one of them out. The test is unchanged; it now lives in frontend.handler.db-based.import-edn-dialog-test, which carries the requires and the sample EDN it needs, and import_test.cljs is back to master's.
In the web build on a phone in portrait, a block showed only its pill properties (those positioned below the block); its other properties, such as the fields of a tag, and the hidden properties revealed by "Show hidden properties" did not appear, even on a zoomed-in block. Rotating to landscape showed them.
Every `.ls-block` is a size container named `ls-block`, and block.css hid `.ls-properties-area` in any block narrower than 430px. The mobile app undoes that for its page view in mobile/components/app.css (`.ls-mobile-page .ls-properties-area { display: initial }`), but that stylesheet and class exist only in the mobile app, so the web build got the hiding rule without the exception.
The hiding rule moves from block.css (built into both the web and the mobile stylesheet) into mobile/components/app.css, next to the mobile app's page-view exception. The mobile app's stylesheet keeps the same rules in the same order; the web stylesheet no longer hides the properties area at any width.
Checked with the built CSS (`pnpm css:build`, `pnpm css:mobile-build`) and a headless page with a 390px-wide block: before, the web stylesheet gives the properties area `display: none` (height 0); after, `display: block` (height 112px), the same as at 600px. The mobile stylesheet gives the same result before and after (hidden outside `.ls-mobile-page`, `display: inline` inside it).
Fixes logseq/db-test#1507
yuxi-liu-wired
force-pushed
the
fix/dbtest-ui2
branch
from
November 19, 2026 12:01
0f85ce7 to
d612626
Compare
yuxi-liu-wired
added a commit
to yuxi-liu-wired/logseq
that referenced
this pull request
Nov 19, 2026
…w popup actions, Comment class dates, EDN import validation (squashed: its commits conflicted one by one with the stack)
This branch has not been deployed
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.
Five UI fixes from logseq/db-test, one commit each:
.ls-properties-areaisdisplay: nonebelow 430px, the mobile app's override doesn't apply) db-test#1507: the web build shows block properties in blocks narrower than 430px (a phone in portrait).79309a9529fix(ui): align property panel values with their keysrc/main/frontend/components/property.css51ff57095bfix(ui): stop the expanded property pill from clipping its keysrc/main/frontend/components/block.css8d6c78f27efix(ui): hide the page title action row in the page preview popupsrc/main/frontend/components/page.cljs, newsrc/test/frontend/components/page_title_test.cljsb08f48e1c3perf(import): validate only the imported entities in the EDN import dialogsrc/main/frontend/handler/db_based/import.cljs,src/test/frontend/handler/db_based/import_test.cljs08e31ba15bfix(ui): show block properties in narrow blocks in the web buildsrc/main/frontend/components/block.css,src/main/mobile/components/app.cssNot done: #1301 (did not reproduce, see the last section). Not fixed in #1376: the popup closing quickly and the title not rendered as a heading. #1040 (Comment/Comments classes dated 1970) is not in this PR: the repair that stamps those classes is synced under one fixed transaction id, so changing its constant would let clients of different versions write different timestamps under the same id; that is a sync design choice for the maintainers.
logseq/db-test#1044
What the user sees
In the page property panel the text of a text, number or date value sits about 4px higher than its key on the same row.
Cause
.property-key-panelcentres its 20px line in a 28px box, while.property-value-panel.ls-block.property-value-containerwasitems-start, so the 20px value line sat at the top of the same 28px. Only the empty, node and checkbox rows had anitems-centeroverride.Change
The value container is
items-centerfor every row. That makes the empty-row rule and the container half of the node and checkbox rules redundant, so they are removed (the node and checkbox rules for the inner element stay). Multi-line values are not centred, because the container is as tall as its content.Tests
CSS only, so the proof is a computed-layout check in headless Chromium (pattern of
scripts/pdf-toolbar-check.mjs):scripts/dui2-css-check.mjs 1044 <style.css>renders the panel row markup (keya.property-k, value.property-value-innerwith text) against a builtstatic/css/style.cssand compares the vertical centre of the key text and of the value text for a default, a number and a date row.The markup of the fixture is copied from
property-cpandproperty-key-cp, not from a running app. The script lives in/home/deadscholar/workspace/logseq-perf/scripts, not in the repo.logseq/db-test#968
What the user sees
Expanding a block's bottom property pill with several lines of content cuts off the top left of the key: "link:" in the issue's screenshot loses the left edge of the "l".
Cause
.bottom-property-pillisrounded-fullwithoverflow: hidden, and its::afterring hasborder-radius: 9999px. The expanded rule only seth-auto items-start. A radius larger than half the box is scaled down to half the box height, so a tall pill gets a large elliptical corner that clips the key.Change
.bottom-properties-row[data-expanded="true"] .bottom-property-pilland its::aftergetborder-radius: 12px. Collapsed pills keep the fully rounded shape.Tests
scripts/dui2-css-check.mjs 968 <style.css>renders the expanded pill markup (key and three-line content) against a builtstyle.css, resolves the effective corner radius (the computed radius clamped to half the box) and tests whether the key's top-left corner lies inside the rounded corner.logseq/db-test#1376 (the action row only)
What the user sees
Hovering a
[[page]]link opens a preview popup whose title shows a half-visible "Add icon" / "Set property" row above it.Cause
page-inneris rendered with:preview? truein the popup but calleddb-page-titlewithout it, so the title gotdb-page-title-actions. That row isabsolute -top-5 opacity-0, 20px above the title, and the popup's scroll box clips it.Change
page-innerpasses:preview?todb-page-title, which does not attach the action row in a preview.Tests
frontend.components.page-title-test:page-title-shows-hover-actions-outside-the-preview-popup-test(a full page still gets the action row),page-title-hides-hover-actions-in-the-preview-popup-test(a preview does not).Both render
db-page-titlewithrenderToStaticMarkupand a block container stub that shows whether it was given:page-title-actions-cp.Proof: with
page.cljsat HEAD the second test fails (1 failure, 2 assertions); with the fix both pass.Not covered by this change: the popup that "only shows very briefly" (not reproduced; the triage suspected
*timer1not being reset on popup enter,block.cljs:1010-1013) and the title "not rendered as a heading" (no cause found in.ls-preview-popuprules).logseq/db-test#994
What the user sees
"Import EDN data" with a one-page EDN (an empty page with one tag) takes about 11 seconds on a large graph.
Cause
import-edn-data-from-form(src/main/frontend/handler/db_based/import.cljs) calledbatch-import-edn!without:validate-scope, soimport-edn-datavalidated every entity of the graph (:graphis the default ofvalidate-import-txs). The MCP/CLI path passes{:validate-scope :tx}since #13388; the dialog was not changed with it.Change
The dialog passes
{:validate-scope :tx}(together with:current-blockwhen importing into a block). The whole-graph EDN import (import-from-edn-file!) keeps the default.import-edninsrc/main/logseq/api/db_based/cli.cljs(the CLIimportEdnroute) also passes{}and is left alone: it is not the dialog.Tests
frontend.handler.db-based.import-test/import-edn-data-dialog-validates-only-touched-entities-test: submits the issue's EDN through the dialog handler against a test graph and checks that everyvalidate-local-db!call carries:entity-ids.Proof: with
import.cljsat HEAD the test fails (a call without:entity-ids); with the fixfrontend.handler.db-based.import-testpasses (2 tests, 13 assertions).The "Go to page" notification and the progress bar from the issue are features and not part of this change.
logseq/db-test#1507
What the user sees
In the web build on a phone in portrait, a block shows only its pill properties (those positioned below the block). Its other properties, such as the fields of a tag, are missing, and "Show hidden properties" changes its label but shows nothing, also on a zoomed-in block. In landscape everything shows.
Cause
Every
.ls-blockis a size container namedls-block, andblock.csshid.ls-properties-areain any block narrower than 430px (@container ls-block (max-width: 430px)). The mobile app undoes that for its page view insrc/main/mobile/components/app.css(.ls-mobile-page .ls-properties-area { display: initial }), but that stylesheet and the.ls-mobile-pagewrapper (src/main/mobile/routes.cljs) exist only in the mobile app (tailwind.mobile.cssimportssrc/main/mobile/**,tailwind.all.cssdoes not), so the web build got the hiding rule without the exception.Change
The hiding rule moves from
block.css(in both stylesheets) intomobile/components/app.css, in the same container query as the mobile app's page-view exception. The mobile stylesheet keeps the same rules in the same order; the web stylesheet no longer hides the properties area at any width. This also applies to narrow blocks on desktop (a narrow right sidebar), which hid their properties the same way.Tests
CSS only, no unit test.
pnpm css:buildandpnpm css:mobile-buildbefore and after, each loaded into headless Chromium with a block markup (.ls-block>.ls-properties-area.ls-block-propertieswith a properties panel) 390px wide, once on its own and once inside.ls-mobile-page(scripts/block-properties-narrow-check.mjsin my workspace):.ls-mobile-pagedisplay: none, height 0display: none, height 0display: block, height 112px (same as at 600px)display: block, height 112pxdisplay: none, height 0display: inline, height 100pxdisplay: none, height 0display: inline, height 100pxNot done: logseq/db-test#1301
The icon/text misalignment does not reproduce. I rendered the real markup and the real built
style.cssplustabler-icons.min.cssin headless Chromium with Noto Sans CJK and measured the offset between the icon's centre and the centre of the CJK text's em box (~/tmp/dui2/probe.mjs): the favorites and recent items (a.link-item), the main-menu dropdown item and the settings left panel button are all at the same offset (0.7px, a constant of the metric) as the left-nava.itemthat #13326 fixed, and the graph switcher items use the same dropdown item markup. Every row isflex items-center, so a 20px line box and a 16px icon share one centre, and setting the line height (leading-4) does not move the glyphs. Reverting #13326'sleading-4andh-4ona.itemin the same fixture also gives the same offset, so this method cannot show the original bug either. The offset in the issue screenshots probably comes from the Windows CJK font's ascent/descent, which I do not have, and the plugins page was not examined. I did not apply theleadingchange without a failing check. A comment can say: "Does not reproduce with Chromium and Noto Sans CJK: icon and text share one centre in the favorites/recent items, the main menu, the graph switcher and the settings panel (allflex items-center); need the font (Windows build 2.0.1-alpha+nightly.20260924) or a screenshot with the zoom to fix it."Validation
bash ~/tmp/dui2/prove-all.sh(build without the three code fixes, run the three new namespaces, build with them, whole suite), then, with the final versions of the tests (the db-core test filters on:block/uuidto skip the ident-only maps of the repair data, and the page-title test gives its page a:db/idsodb-page-titledoes not treat it as being edited),bash ~/tmp/dui2/prove-page-title.sh(build without thepage.cljsfix:page-title-testfails; build with all fixes:page-title-test,db-core-testandimport-testpass), and a finalpnpm cljs:run-testwith all fixes: exit 0.clojure -M:clj-kondo --linton the six changed cljs files: 0 errors, 0 warnings.scripts/typos-check.sh: clean.search-build-blocks-indice-in-worker-completes-before-vector-embedding-test(a timeout, passes alone and in the final run)..ls-properties-areaisdisplay: nonebelow 430px, the mobile app's override doesn't apply) db-test#1507 (CSS only): the computed-style check above;scripts/typos-check.sh: clean;pr-conflicts.sh 13899after the push: 0 conflicting pairs.