Commit Graph

227 Commits

Author SHA1 Message Date
Tienson Qin
3ffc5e431b fix: cmdk can't create a page with multiple words tag
related to
https://linear.app/logseq/issue/LOG-3212/in-search-modal-cant-create-an-object-with-multiple-words
2024-09-05 20:24:27 +08:00
Tienson Qin
c7677c813e refactor: set parent for any page, not just tags (#11494)
* refactor: replace :class/parent with :logseq.property/parent

* replace :class/schema.properties with property.class/properties

* enhance: display schema properties directly in Tag properties

* tag properties style tweaks

* fix: properties view context

* fix: limit parent to be classes or pages depends on the current node

* enhance: display ancestors in Parent

* fix: ancestors

* enhance: display tag properties always for tags

* enhance: display tag block container instead of properties area

* enhance: show add property as popup instead of dialog

* fix: tag parent must be a tag

* enhance: display properties in the right sidebar

* fix: tags style

* fix: icon style

* fix: positioned icons

* fix: lint

* fix: tests

* fix: remove properties from rtc watched attrs

* fix: graph-parser tests

* enhance: style tweaks

* enhance: page/create parses tags from user-input title

* enhance(ux): [[ref]] followed by # (no whitespace) to add tags

* fix: tests

* fix: graph-parser lint and tests

* fix: allow tagged nodes to be parents

* enhance(ux): display tag property descriptions

Also, make it editable.
2024-09-03 07:32:38 +08:00
charlie
1b0a67f359 enhance(dev): add debug option for the property edit dropdown 2024-08-22 11:32:21 +08:00
Tienson Qin
0876198cca fix: favorite page prefer id instead of name 2024-08-19 11:25:03 +08:00
Gabriel Horner
48df03a1fa fix: finish removing arweave
Follow up to a6e0b0a092
2024-08-08 09:24:02 -04:00
Tienson Qin
d847023dc1 Refactor: rename :block/content to :block/title 2024-07-10 22:33:44 +08:00
Tienson Qin
a1f352773b refactor: rename :block/original-name to :block/title 2024-07-10 21:43:03 +08:00
Tienson Qin
1854286cf0 refactor: persistent views stored using blocks 2024-07-07 21:05:14 +08:00
Gabriel Horner
655c701d9d chore: make last arg optional for get-page-blocks 2024-07-06 12:24:07 -04:00
Tienson Qin
626e0b67e8 fix: store latest file stat
Fixes LOG-3143
2024-06-20 09:22:35 +08:00
Tienson Qin
0bd6c05e69 refactor: add page outliner ops
The rule is to avoid calling worker modules from UI, all db
transactions should go through apply-outliner-ops.
2024-06-18 05:21:00 +08:00
Tienson Qin
9cc4f43ad1 fix: lint 2024-06-17 21:47:44 +08:00
Tienson Qin
516c47c853 fix: remove unused code 2024-06-17 21:45:56 +08:00
Tienson Qin
96be194de5 Refactor: use last modified time to decide if file has been changed
Previously, we're using file content.

Fixes LOG-3161
2024-06-16 11:00:40 +08:00
Gabriel Horner
244a86557f chore: rename :property/value to :property.value/content
property-value is widely being used to refer to the entity or value
associated with a property entity. Naming the content of a
property-entity :property/value is confusing. property-value content is
a unique name and consistent with :block/content. Also rename related
fns which had similarly confusing names
2024-06-14 18:11:20 -04:00
Gabriel Horner
56063ed2bf fix: tweak message and update docs for updated replace cmd flow 2024-06-14 14:22:44 -04:00
Tienson Qin
ff050779ec fix: import chosen graph 2024-06-15 01:17:07 +08:00
Gabriel Horner
9f89717a57 refactor: finish splitting file and db page create
db create had file specific assumptions and file create had db specific
assumptions like class?
2024-06-12 14:57:23 -04:00
Gabriel Horner
0b61bdea29 fix: edit an empty page for file and db graphs
To repro, create a block with a page-ref, click into page and
then click on 'Click here to edit'
2024-06-12 13:59:59 -04:00
Gabriel Horner
fa4b47d16b fix: property value names in developer cmd
and in readable-properties fn
2024-05-20 16:20:31 -04:00
Tienson Qin
5013d34c2f chore: cleanup :block/_left usage 2024-05-09 04:36:14 +08:00
Tienson Qin
1cb0896e3b refactor: remove [:block/schema :values]
Some changes:
1. use :block/closed-value-property instead to record which property
this value entity belongs to.
2. use :block/content instead of [:block/schema :value].
3. :page and :date have been removed from closed-value-property-types
because there could be a page/date that's a closed value for multiple
properties, we have no idea what's the `:block/order` for a specific
property.
2024-05-07 23:33:04 +08:00
Tienson Qin
ee0d89ad85 refactor: replace [:block/schema :value] with :property/schema.value 2024-05-07 17:26:56 +08:00
Tienson Qin
52c7281e51 fix: debug block/page 2024-04-14 07:30:46 +08:00
Tienson Qin
1a9608bda1 fix: property handler with the new properties pair storage 2024-04-12 01:17:37 +08:00
Tienson Qin
8de498955f fix: editor cursor missing when moving across blocks 2024-04-09 13:24:19 +08:00
Tienson Qin
2d5eb0f79f enhance: editor experience
1. back to use container id + editing block id instead of block dom
ref to decide which block is in editing, to simplify edit-block! and
reduce browser gc.
2. set next editing block ahead of receiving the data changes from db
worker, so the editor feels a bit faster.
2024-04-08 21:10:12 +08:00
Tienson Qin
c018f1517d perfer to use get-page instead of get-first-page-by-name 2024-04-04 15:57:48 +08:00
Tienson Qin
5f08e17a85 fix: more redirects use uuid instead of page name 2024-04-04 15:57:48 +08:00
Tienson Qin
2c29cbd495 fix: favorites 2024-04-04 15:57:48 +08:00
Tienson Qin
1f32893547 fix most issues on whiteboards 2024-04-04 15:57:48 +08:00
Tienson Qin
27a29a3fbe fix: lint warnings 2024-04-04 15:57:48 +08:00
Tienson Qin
9df8918f94 Remove more :block/name lookup ref usage 2024-04-04 15:57:48 +08:00
Tienson Qin
96c9605b82 Recents store page db ids instead of uuids or page names 2024-04-04 15:57:48 +08:00
Tienson Qin
60d4fca0ba wip: remove :block/name uniqueness for db based graphs
This PR also remove supports for:
1. merge pages when renaming a page to existing page
2. namespaces such as a/b/c
3. nested page such as [[a [[nested page]]]]

Pages merge might be added back depends on RTC, but it should be
decoupled from renaming, otherwise it's too complex.

Namespaces and nested pages have been contributed some critical bugs
that lead data-loss, they're so complex together with page alias,
it's just impossible to have a good test coverage and ensure the app
is stable, especially when page rename and RTC.
2024-04-04 15:57:48 +08:00
Gabriel Horner
2f599919fb fix: favorites not importing
Also made underlying fns reusable from UI and nbb compatible.
Fixes LOG-3031
2024-03-12 17:57:47 -04:00
Gabriel Horner
79fccaa659 fix: two bugs caused by not getting correct
closed value names for page/date closed values - one in
query builder property value dropdown and the other in show block data command.
Also cleaned up query-dsl which shouldn't be making db graph queries
on file graphs
2024-03-08 15:40:27 -05:00
Gabriel Horner
8d0b3c5058 Remove unused :preferred-workflow config for db graphs
part of LOG-3041. Also clean up related namespaces with docstrings
2024-03-07 11:39:51 -05:00
Gabriel Horner
c0ae06d8fb fix: schema out of date with latest changes
to closed values, properties, classes and built in pages
2024-03-06 17:16:43 -05:00
Gabriel Horner
f4ff4da0c8 fix: page deletion error messages not being displayed
and instead pretending to be successful. Also add error message for
built-in page. Related to LOG-3049
2024-03-06 17:03:48 -05:00
Gabriel Horner
1706a5c725 fix: hidden pages like favorites showing up in page property
dropdown. Dry up favorites page name scattered across namespaces.
Should be using vars + namespaces in common dep for commonly
referenced features
2024-03-05 10:27:42 -05:00
Gabriel Horner
56b77878c1 fix: favorites page is invalid and missing timestamps when created 2024-03-05 09:46:10 -05:00
Gabriel Horner
18d3c87016 enhance: support built-in property imports. part of LOG-2985
:query-properties and :query-sort-by need translating. Don't
override block/schema of built-in properties. Also display
property closed values in block data cmd
2024-02-15 12:27:36 -05:00
Gabriel Horner
a0329fdfff fix: page properties are deleted when block content changes
Fixes LOG-3044. Also added more ref and property info to block data cmd
2024-02-14 12:09:37 -05:00
Tienson Qin
4e1ca386d4 refactor: build tx-data in db-worker instead of the UI thread
So the tx-data will be built on top of the full db instead of the
partial db from the UI thread, it also reduces the risk to use
outdated data since RTC can transact data from the worker.
2024-02-02 02:16:33 +08:00
Tienson Qin
c1a15c0708 Merge branch 'feat/db' into perf/lazy-load-data 2024-02-01 03:58:04 +08:00
Gabriel Horner
a68c5eea52 fix: file/name-format is file graph only
Confirmed this with the last refactor. Also remove references to
setting that was removed in eb6e5942f8
2024-01-31 13:34:12 -05:00
Tienson Qin
44dca4f506 wip: plugin api calls
Also avoid calls to worker if a block has been fully loaded
2024-01-31 21:51:52 +08:00
Gabriel Horner
f6e9e2630f fix: deprecate :favorites for db config
related to LOG-3031. Also comment all known
file graph only config keys
2024-01-30 15:26:19 -05:00
Gabriel Horner
9db7cd3be9 fix: new db graph shouldn't have deprecated config.edn warnings 2024-01-30 15:12:51 -05:00