Commit Graph

1289 Commits (791192c3de5d35925b4ec9cbcdaf17b79d0d5052)

Author SHA1 Message Date
Tienson Qin dd0de0b45f fix: closed value icon 2024-04-15 12:11:45 +08:00
Tienson Qin 356f45b8e5 Merge branch 'feat/db' into refactor/db-properties-schema 2024-04-15 11:38:34 +08:00
charlie 1e6a7f9010 fix(ui): close all for the shui popups 2024-04-14 11:18:11 +08:00
Tienson Qin ebe67390fa perf: no need to get all the property pairs when asking for only one 2024-04-14 08:33:53 +08:00
Tienson Qin e03b5a2322 fix: property pairs lazy load 2024-04-14 08:19:59 +08:00
Tienson Qin 47abd92155 fix: load property pairs too when lazy load a block 2024-04-14 08:13:10 +08:00
Tienson Qin 16a39c8e7b fix: tags not displayed for blocks 2024-04-14 07:56:56 +08:00
rcmerci 836cedfd7f fix(undo): sort&merge undo-ops
because maybe some ops depend-on others, e.g. insert parent first then
its children.
2024-04-13 19:53:38 +08:00
Gabriel Horner 8ac39b3cbb fix: adding new properties for some property actions
Also removed duplicate helper fn
2024-04-12 21:53:04 -04:00
Gabriel Horner b99af712b2 fix: validating user :many properties
User properties with :many cardinality were overriding each other
instead of aggregating
2024-04-12 17:33:56 -04:00
Gabriel Horner 8cbc0ac32a fix: validate property values 2024-04-12 15:27:26 -04:00
Gabriel Horner 7003903edd fix: new graph creates hidden pages all with same name '$$$' 2024-04-12 12:50:09 -04:00
Gabriel Horner 4771a97d09 fix: page-property rules to use latest schema 2024-04-12 12:29:47 -04:00
Gabriel Horner 4f3b7e7687 fix: ref checks in schema
attribute in the wrong schema and db graph only vars had file graph
keys. Also temp fix to avoid crashing ui with props
2024-04-12 12:15:59 -04:00
Gabriel Horner b2a22498ea fix: closed validation with new properties
Also fix group error reporting incorrectly and improve it by adding
:db/id
2024-04-12 11:32:03 -04:00
Gabriel Horner 354c0c1e42 fix: built-in? helper and most deps tests
Also fix validate script's count
2024-04-12 10:04:43 -04:00
Gabriel Horner 97367c3d4f fix: add timestamps to built-in property pair
Also cleanup build-initial-properties and remove unused ns
2024-04-11 18:23:52 -04:00
Gabriel Horner cbcff4bae8 fix: schema graph creation for previous properties schema
Also add db/id to query script and fix outdated case insensitive
constraint on property db idents
2024-04-11 17:46:49 -04:00
Gabriel Horner e07fd51c83 fix: new db graph creates properties correctly
Also fix basic validation
2024-04-11 17:42:51 -04:00
Tienson Qin 1a9608bda1 fix: property handler with the new properties pair storage 2024-04-12 01:17:37 +08:00
Tienson Qin 89b40b4ad8 Extends entity for new :block/properties and direct property access 2024-04-12 00:05:20 +08:00
Tienson Qin 81e5d5f68f fix: remove frontend.config usage from graph parser dep 2024-04-11 23:02:50 +08:00
Tienson Qin 00967481ad Merge branch 'refactor/db-properties-schema' into refactor/db-remove-block-name-unique 2024-04-11 20:32:12 +08:00
Tienson Qin 419eac1b16 Merge branch 'feat/db' into refactor/db-properties-schema 2024-04-11 19:56:34 +08:00
Tienson Qin da96052908 fix: safe check db before get-pid 2024-04-11 17:18:25 +08:00
Tienson Qin e979e8158c fix: add db schema for :editor/tx-batch-mode? 2024-04-11 16:45:20 +08:00
Gabriel Horner 527dae34dc fix: class properties schema 2024-04-10 14:03:39 -04:00
Tienson Qin 7007fa7d41 fix: status and priority should be :entity type 2024-04-10 21:07:20 +08:00
Tienson Qin 8d128f420c Merge branch 'refactor/db-properties-schema' into refactor/db-remove-block-name-unique 2024-04-10 16:14:47 +08:00
Gabriel Horner 4f8d76c79f Merge branch 'feat/db' into refactor/db-properties-schema 2024-04-09 16:29:46 -04:00
Gabriel Horner a42e5f659a fix: new graphs don't create unused hidden pages for
date and page closed properties. Observed with properties graph
2024-04-09 14:53:47 -04:00
Gabriel Horner c29d4a3a70 chore: property type vars should be in property.type
also remove unused :block and :uuid types
2024-04-09 14:07:46 -04:00
Gabriel Horner fcecbcfa76 fix: switching page closed values 2024-04-09 09:49:59 -04:00
charlie f77a6b42d9 chore(dev): chilly keys warning 2024-04-09 18:41:14 +08:00
Gabriel Horner a608139975 fix: new db graph doesn't silently clobber db/ident's
if they conflict
2024-04-08 16:54:22 -04:00
Gabriel Horner 6a2b6d2913 fix: adding class properties can result
in clobbered db idents. Also rename fn to make its
purpose explicit
2024-04-08 16:32:27 -04:00
Gabriel Horner ea1cc87d77 fix: properties silently clobbered each other if
they had the same unique db-ident. Ensure a unique db-ident with
automatic db-ident suffixes. Also add tests for this and add more
sanitization to property db idents
2024-04-08 15:06:39 -04:00
Tienson Qin 9f9bfbc5e6 Merge branch 'feat/db' into refactor/db-remove-block-name-unique 2024-04-08 23:56:46 +08:00
Tienson Qin 6df866a2d1 fix: handle more whiteboard properties 2024-04-08 22:56:14 +08:00
Tienson Qin 2940e86d74 fix: save whiteboard 2024-04-08 22:54:56 +08:00
charlie 618f3bd107 Merge branch 'master' into feat/db 2024-04-08 19:00:51 +08:00
Tienson Qin cd38e0b9f9 fix: calculate :block/path-refs when adding new graph or re-index 2024-04-08 17:24:51 +08:00
charlie 57af873bf4 enhance(ux): support more align position for the shui dialog 2024-04-08 11:40:36 +08:00
Tienson Qin 210be5aaca fix: creating redundant pages when editing a block 2024-04-08 01:25:48 +08:00
Tienson Qin ede9e5df5d fix: page names in refs not updated after renamed 2024-04-07 22:25:56 +08:00
Tienson Qin a324d845b2 fix: don't parse refs from quoted string 2024-04-07 21:35:14 +08:00
Tienson Qin b5f0f58efc fix: missing refs for property text values when creating a page 2024-04-07 21:35:14 +08:00
Tienson Qin dab2a6e563 fix: disable namespace for db based graphs 2024-04-07 17:29:21 +08:00
Tienson Qin 0b49d09fb1 fix: db schema validate 2024-04-07 17:26:58 +08:00
Tienson Qin c815fa9823 fix: schema error for :class/schema.properties 2024-04-07 16:31:00 +08:00
Tienson Qin 75d35f9202 enhance: display exact invalid entity map for schema invalidations 2024-04-07 16:12:53 +08:00
Tienson Qin f52993ec6d fix: tests and lint warnings 2024-04-07 14:27:05 +08:00
Tienson Qin 6eb6e60b55 Bring back namespaces/page merge/nested pages 2024-04-07 13:48:55 +08:00
Tienson Qin b9195e40e5 Merge branch 'refactor/db-properties-schema' into refactor/db-remove-block-name-unique 2024-04-06 07:59:06 +08:00
Gabriel Horner 009e5b6d62 enhance: consistently create sanitized property ident
for new properties. Also made build-new-property easier to
use by making property name optional
2024-04-05 16:55:40 -04:00
Gabriel Horner 3793cf6d81 fix: 2 fns that don't work in nbb b/c of :block/properties 2024-04-05 15:16:26 -04:00
Gabriel Horner 514b5b5d56 fix: numbered list in db graphs 2024-04-05 15:00:17 -04:00
Gabriel Horner e7bd84850d chore: clean up repeated uses of db attribute properties 2024-04-05 14:04:33 -04:00
Gabriel Horner 38849bf706 chore: cleanup different definitions of property
Also fixed some outdated docstrings
2024-04-05 13:27:39 -04:00
Gabriel Horner 6045969179 fix: db tests and rename empty-placeholder to
be consistent with other ident namespaces
2024-04-05 09:36:05 -04:00
Tienson Qin 0bc8d1c3b1 Merge branch 'refactor/db-properties-schema' into refactor/db-remove-block-name-unique 2024-04-05 15:16:13 +08:00
Tienson Qin ac31842cec Revert "Remove :block/macros"
This reverts commit 21d550de12.
2024-04-05 15:12:56 +08:00
Tienson Qin ea98a1623e Merge branch 'refactor/db-properties-schema' into refactor/db-remove-block-name-unique 2024-04-05 09:56:39 +08:00
Tienson Qin 04b00322a3 fix: add class property 2024-04-05 09:47:23 +08:00
Gabriel Horner 14a3e5287b enhance: ident validation
block properties and class idents now have specific validation.
Also cleaned up overlapping ident definitions and updated incorrect
docstrings
2024-04-04 21:39:10 -04:00
Gabriel Horner 608d627544 fix: add back properties validation
and fix closed validation. Also temporarily comment out properties graph parts
that are still invalid
2024-04-04 21:09:28 -04:00
Tienson Qin b096b4673c fix: use :entity type instead of :uuid for ref type values 2024-04-04 16:58:24 -04:00
Gabriel Horner 7c1f52d2a4 chore: add format to build-new-page
every use of it was adding it manually
2024-04-04 09:25:20 -04:00
Gabriel Horner 3e504f5ab9 dev: add more tests for page-property rule 2024-04-04 09:22:39 -04:00
Tienson Qin eea1858040 fix: can't add alias 2024-04-04 18:16:23 +08:00
Tienson Qin 035fbb46c9 fix: use :entity type instead of :uuid for ref type values 2024-04-04 18:07:26 +08:00
Tienson Qin 8054150eef fix: unit tests 2024-04-04 15:57:49 +08:00
Tienson Qin bf539751a8 disable rtc merge tests for now 2024-04-04 15:57:49 +08:00
Tienson Qin 6167abe160 fix: extract page from whiteboard edn 2024-04-04 15:57:49 +08:00
Tienson Qin 1b32378884 more places to use db eid instead of page name 2024-04-04 15:57:49 +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 1f32893547 fix most issues on whiteboards 2024-04-04 15:57:48 +08:00
Tienson Qin 4a63f78aa8 fix: zoom into block 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 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 c448e9a0d0 enhance: convert has-page-property rule with tests
also started on page-property rule. Tests confirm that
binding won't be an issue unlike the previous version
of these rules
2024-04-03 17:20:44 -04:00
Gabriel Horner a8a2afbf4a chore: allow query script to fetch by entity 2024-04-03 09:00:38 -04:00
Tienson Qin 7084b53dad Merge branch 'feat/db' into refactor/db-properties-schema 2024-04-03 20:29:11 +08:00
rcmerci a7c8451ce4 refactor(undo): update ns frontend.worker.undo-redo (wip) 2024-04-03 17:59:13 +08:00
Gabriel Horner 661cdc8636 fix: built-in properties with :name have incorrect names
Properties like logseq.table.version weren't available to add.
Also added conflict detection on properties graph which is how I
indirectly found this bug
2024-04-02 15:57:33 -04:00
Gabriel Horner 3d49585078 fix: create properties graph and validate graph script 2024-04-02 13:58:52 -04:00
Tienson Qin 298555d36c Still treat properties as pages 2024-04-02 23:11:52 +08:00
Gabriel Horner 12c667fabb Update nbb-logseq to latest datascript 2024-04-02 09:36:28 -04:00
Tienson Qin 13a5f91cd4 fix: use property db/ident instead of name 2024-04-02 11:59:57 +08:00
Gabriel Horner c4fc3a193e fix: new graph should be valid
closed values were invalid. Also fixed a couple db tests
2024-04-01 16:40:01 -04:00
Gabriel Horner 93846fe62f enhance: add import support for priority, scheduled and deadline
fixes LOG-3030
2024-04-01 12:31:39 -04:00
Tienson Qin 0c8639994d fix: db malli schema 2024-04-01 23:35:49 +08:00
Gabriel Horner 745fcdb7a3 enhance: import tasks
Part of LOG-3030
2024-04-01 10:48:25 -04:00
Tienson Qin 1987c455e7 Merge branch 'feat/db' into refactor/db-properties-schema 2024-04-01 15:47:43 +08:00
Tienson Qin 54989b47b8 fix: tags 2024-04-01 15:22:20 +08:00
Tienson Qin d48e45eaa7 enhance: property db ident doesn't allow # 2024-04-01 14:53:25 +08:00
Tienson Qin 02643a1561 fix: tests 2024-04-01 14:25:39 +08:00
Tienson Qin 21d550de12 Remove :block/macros 2024-04-01 14:22:15 +08:00
Tienson Qin 76464cdbe5 fix: closed value test 2024-04-01 14:02:13 +08:00
Tienson Qin 8d6916cfd7 wip: fix property-related tests 2024-04-01 12:24:41 +08:00
Tienson Qin fd36e0cebd fix: malli schema for property 2024-04-01 11:07:33 +08:00
Gabriel Horner 1d014c1326 fix graph-parser lint 2024-03-29 17:09:30 -04:00
Tienson Qin 441dda79c8 fix: typo 2024-03-30 05:02:01 +08:00
Tienson Qin a2da60623f fix: heading 2024-03-30 04:36:24 +08:00
Gabriel Horner de89e65129 chore: remove unused fns and move file graph fn 2024-03-29 16:32:23 -04:00
Gabriel Horner f728b7b9f6 fix: multiple bugs with built-in pages, fixes LOG-3046
- file graph wasn't creating built in pages
- 3 places where db graphs were incorrectly using file graph built in
  page names
- file graphs creating default pages with incorrect format
2024-03-29 16:21:19 -04:00
Tienson Qin 30053d372b fix: can't edit block type property value after it's deleted 2024-03-30 04:20:42 +08:00
Gabriel Horner e08e52acd3 enhance: db graph importer supports optional parent class property 2024-03-29 10:37:09 -04:00
Tienson Qin 81b09cdfc8 feat: dynamic db attributes 2024-03-29 20:33:18 +08:00
Tienson Qin 9d5008d0a4 bump datascript 2024-03-29 17:48:08 +08:00
charlie 833384a361 enhance(ux): diagnosis for the shui popup trigger response is not immediate enough 2024-03-29 16:40:30 +08:00
Tienson Qin fe922ba035 fix: rename logseq.property/status to logseq.task/status 2024-03-29 16:22:45 +08:00
Tienson Qin 958507262e Merge branch 'feat/db' into refactor/db-properties-schema 2024-03-29 15:51:28 +08:00
Tienson Qin f7d418c376 fix: class schema 2024-03-29 14:14:36 +08:00
Tienson Qin 2c26581815 fix: add schema spec for :class/schema.properties 2024-03-29 14:03:41 +08:00
Tienson Qin 872bc00216 fix: db ident 2024-03-29 13:04:50 +08:00
Tienson Qin 5660d420fb fix: class properties order 2024-03-29 11:27:58 +08:00
Tienson Qin cda9ac3e26 fix: display class properties 2024-03-29 10:02:29 +08:00
Tienson Qin 9115ca72ad fix: wrong arguments 2024-03-29 09:18:06 +08:00
Tienson Qin da42189deb fix: property ref value 2024-03-29 09:02:51 +08:00
Gabriel Horner 2e580df0da chore: rename exporter built-in property
use dashes like other built-ins
2024-03-28 14:41:37 -04:00
Gabriel Horner ad35e83958 enhance: properties can also be block only
configure built-in properties that are block only.
Fixes LOG-2874
2024-03-28 13:44:29 -04:00
Gabriel Horner 3e5e7f9f7e enhance: built-in properties can be page only
This allows properties like alias and public to not
show up nonsensically in block contexts. In the case
of alias it fixed a bug where it couldn't be removed from a block
context. Also fixed :public property losing its :public?

Part of LOG-2874
2024-03-28 11:20:32 -04:00
Gabriel Horner e0c6cc1514 fix: deprecate :macros property for db graphs
It's not used much and would require building a new UI since
we don't have one yet for a :map type property
2024-03-28 09:13:39 -04:00
Tienson Qin 41e2944720 Replace more property name usage with db/ident 2024-03-28 20:41:12 +08:00
Tienson Qin 8d31f94b24 Remove :block/uuid and :block/name for properties 2024-03-28 17:37:28 +08:00
charlie 1364e25714 enhance(ui): polish the shui dialog details 2024-03-28 14:32:56 +08:00
Gabriel Horner 9c5309da47 enhance: frontend consistently uses :db/ident
for fetching built-in properties instead of :block/name
2024-03-27 20:36:48 -04:00
Gabriel Horner eecb510ccb enhance: built-in properties are indexed by :db/ident
built-in-properties are identified by their :db/ident instead
of :block/name. This removes reliance on :block/name and allows
us to consistently use namespaces when identifying built-in properties

:visible was renamed to :public? and is now included in :block/schema to
allow for querying. Also added a couple more new graph tests and tweaked
CI for db dep
2024-03-27 15:03:18 -04:00
charlie 6f98985aa9 enhance(ui): add shui close button for the property editor 2024-03-27 10:18:38 +08:00
Gabriel Horner 78371c1ccd fix: schema for properties and classes can have namespaces 2024-03-26 14:33:35 -04:00
Gabriel Horner 832e88b91d fix: CLI db graphs setting wrong schema
Names of db graphs do not have db-prefix from CLI. Rely on
file graph prefix which does have indicator from CLI
2024-03-26 12:21:45 -04:00
Gabriel Horner c5f72221ea fix: update schema and script to use new attribute 2024-03-26 12:20:41 -04:00
Tienson Qin 76ebf19364 feat: class children area 2024-03-26 10:16:40 -04:00
Tienson Qin 55d7ef95dc fix: :class/parent instead of block/namespace 2024-03-26 10:16:40 -04:00
Tienson Qin ce8c13065c wip: properties refactor 2024-03-26 14:18:33 +08:00
Gabriel Horner eb621e191d chore: remove attribute that hasn't been used
almost 3 years. Removed it because otherwise we should make it
valid for a db graph
2024-03-25 17:21:10 -04:00
Gabriel Horner 51828ee8fe fix: invalid ident ns when creating new graph 2024-03-25 17:13:32 -04:00
Gabriel Horner 9b8540921e enhance: more property helper fns uses db-ident
instead of name
2024-03-25 16:34:51 -04:00
Gabriel Horner dd1b0ea5f0 enhance: validate :db/ident namespaces
also add test for a new graph to be valid under malli-schema
2024-03-25 08:56:55 -04:00
Tienson Qin 33f418b297 wip: properties refactor 2024-03-25 18:56:36 +08:00
Tienson Qin 98d2b92ab1 fix: schema && built-in properties 2024-03-25 10:59:09 +08:00
Tienson Qin 16a927ad00 Bump datascript
Which enables transacting schema like other tx-data.
2024-03-25 09:45:19 +08:00
Tienson Qin eaf9fc0d33 fix: use :schema keyword to get datascript db's schema 2024-03-24 17:47:59 +08:00
Tienson Qin ab5022066a fix: use persisted db schema instead of the current one in code 2024-03-24 15:20:34 +08:00
Gabriel Horner 390c626897 fix: replace db-content fn with more specific one 2024-03-22 16:45:43 -04:00
Gabriel Horner 70b43ec71f fix: invalid schema with new rtc graph 2024-03-22 13:46:50 -04:00
Gabriel Horner 1198123513 fix: closed values for date property no longer available
Detected by failing db-graph-test CI job. Confirmed
that issue from 3b57fa626c
hasn't regressed
2024-03-22 12:36:14 -04:00
Gabriel Horner 429b257ee9 fix: query table rows should show page ref names
instead of special ids. Also tweaked page delete message to
remove needless contraction
2024-03-21 17:05:36 -04:00
Gabriel Horner e3b67a9d9a fix lints 2024-03-21 12:35:28 -04:00
charlie 53125d6315 enhance(plugin): support custom routes from the plugin sdk 2024-03-21 19:07:16 +08:00
Tienson Qin 1cad8aa9bd enhance: batch refresh UI after applying remote blocks change
Fixes LOG-3114
2024-03-21 17:38:36 +08:00
Tienson Qin eae35d60e4 fix: rebuild block refs & path-refs after downloading a remote graph
Fixes LOG-3115
2024-03-21 16:45:00 +08:00
Tienson Qin c079f00daf fix: page/block refs lost after syncing from the server 2024-03-21 15:43:17 +08:00
Tienson Qin 3b57fa626c fix: can't add date if the property support multiple values 2024-03-20 17:24:20 +08:00
charlie 08ff5fa76f chore: polish rtc debug ui 2024-03-19 21:01:31 +08:00
Tienson Qin 35dbce3b68 enhance: humanize malli errors 2024-03-19 20:45:37 +08:00
charlie f307333037 enhance(ui): WIP refactor the classic modal with the shui dialog 2024-03-19 17:47:18 +08:00
charlie fcb720511d enhance(ui): refactor the classic modal with the shui dialog 2024-03-19 16:41:11 +08:00
charlie e801118466 enhance(ui): refactor the classic modal with the shui dialog 2024-03-19 15:41:48 +08:00
charlie f6513e0169 enhance(ui): add rtc collabrators online list 2024-03-19 14:30:29 +08:00
Tienson Qin 627d936626 fix: use existing db/id for :graph/uuid 2024-03-19 14:26:00 +08:00
Gabriel Horner 4ba9fea065 enhance: all default db idents are namespaced under logseq
Having consistent namespacing of core idents increases the
number of features they can be used for later
2024-03-18 22:57:24 -04:00
Gabriel Horner f63095316b enhance: all built-in closed values have same db/ident naming convention
Follow convention started by :task/status. Added tests to enforce this
convention as well as other db/ident conventions
2024-03-18 22:57:23 -04:00
charlie 7e1868ba90 enhance(ui): refactor the plugin related modal with the shui dialog 2024-03-19 10:51:43 +08:00
Gabriel Horner 07ff534675 fix: schema for pages and collapsed properties
collapsing a :default page property sets block/collapsed-properties
2024-03-18 12:03:00 -04:00
Tienson Qin 08281eb21c chore: remove wrong comment 2024-03-18 18:08:42 +08:00
Tienson Qin 0bbbbe38c8 Add comment for invalid entity map 2024-03-18 17:44:09 +08:00
charlie c3b401ca64 enhance(ui): refactor the global context menu with the shui popup 2024-03-18 14:51:12 +08:00
charlie dc106a5a99 enhance(ui): add shui avatar component 2024-03-18 14:51:12 +08:00
charlie a61f9b8a4d enhance(ui): add trigger as to shui 2024-03-18 11:40:47 +08:00
Tienson Qin c4e6db9afb fix: don't start rtc for local db graphs
Also, stop rtc when switching into a local graph.
2024-03-17 13:47:19 +08:00
Tienson Qin cd1c71291b fix: conflict datoms from sqlite db and tail
Fixes LOG-3087.
Addressed by fc3645fa4a.
2024-03-17 12:05:44 +08:00
Gabriel Horner 67a7a0a3e9 enhance: Add default namespace of :logseq.property
for db/ident of built-in-properties. Namespacing block identities will
be important for future features. Adding namespacing also fixed some
hidden coupling between identity and name. Also converted a couple more
related :block/name queries to use :db/ident to slowly get us closer to
named blocks
2024-03-15 18:37:15 -04:00
Gabriel Horner 148f2f7b16 fix: built-in class property check works
if property or class name changes
2024-03-15 13:07:45 -04:00
Gabriel Horner 9cdf78ca6a enhance: use db/ident for classes
allows built-in class names to change
2024-03-15 09:22:35 -04:00
charlie 553a4a7866 enhance(ux): refactor the shui popup default as dropdown with dimissing layer 2024-03-15 16:10:05 +08:00
Gabriel Horner 40a6b31fcf fix: db lint 2024-03-14 15:32:52 -04:00
Gabriel Horner 6e7c410427 fix: other closed values should have :db/ident
Without db/ident, these values could be deleted easily
which would cause users to lose functionality
2024-03-14 15:26:18 -04:00
Gabriel Horner c053fbab41 refactor: use db idents for more property identification
e.g. internal property validation, status and priority. The less we rely
on :block/name the more features we can open up later e.g.
interchangeable block/page and rename any page
2024-03-14 14:54:50 -04:00
charlie 26b7eac65d enhance(ux): polish property editor interaction 2024-03-14 23:57:21 +08:00
charlie c74f1749c8 enhance(ux): support enter key shortcut for the shui button 2024-03-14 14:38:54 +08:00
charlie cdbb586495 enhance(ux): support enter key shortcut for the shui button 2024-03-14 14:32:32 +08:00
Gabriel Horner 345fd96e2a enhance: full file graph import works from CLI
Also cleaned up naming, added docstrings and fixed a bug that
failed import hard when user didn't input any tag-classes or
property-classes
2024-03-13 16:23:49 -04:00
charlie f12a242673 enhance(ui): support focus target with the shui popup 2024-03-13 20:33:14 +08:00
charlie 7f5ae850d5 refactor(dev): names for the shui popup options 2024-03-13 14:28:33 +08:00
charlie 8d927ca6fb enhance(ui): update demos 2024-03-13 14:17:14 +08:00
charlie 0b43253bbe enhance(ui): support multi select within the popup 2024-03-13 12:09:08 +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
charlie 02bc2dbdc8 enhance(ui): demos for the multi select 2024-03-12 22:35:04 +08:00
charlie 947e839180 enhance(ui): demos for the multi select 2024-03-12 18:00:47 +08:00
charlie 94ed777d41 enhance(ui): update demo 2024-03-12 16:53:51 +08:00
Gabriel Horner 96b35c0252 Update nbb-logseq to stub in cljs-bean.transit 2024-03-11 15:19:50 -04:00
Tienson Qin aebb39a98e fix: icon wasn't shown initially 2024-03-11 22:19:17 +08:00
charlie bea9d9c4a5 enhance(ui): support align for the shui popup 2024-03-11 20:30:35 +08:00
charlie 0e428f9e55 enhance(ui): demos for the multi select 2024-03-11 19:40:29 +08:00
Andelf 329818e4c4 fix(db): css assets loading
- move make-asset-url to assets-handler
- handle assets for db-based graph in add-style-if-exists!
2024-03-11 18:38:48 +08:00
charlie c681c6be8f enhance(ux): enhance hooks
for the multi select
2024-03-11 18:10:54 +08:00
charlie 40cc59844b enhance(ux): enhance shortcuts for the multi select 2024-03-11 15:51:31 +08:00
rcmerci fb6484c70e fix: don't rebuild transit-handlers everytime 2024-03-11 12:40:56 +08:00
charlie 1b1a4e375a enhance(ux): add shortcut(ctrl+l) to select the search input 2024-03-11 12:28:30 +08:00
Tienson Qin a6174525dc fix: cljs bean data failed to be seralized to transit 2024-03-11 11:59:36 +08:00
Tienson Qin a159d5acc4 fix: Entity transit write should include kv 2024-03-10 13:28:48 +08: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 62e6084b45 fix: page/date closed values for *property queries
Also updated example graph to show closed value queries working
2024-03-08 10:17:22 -05:00
charlie 44a4ecdcd0 enhance(ui): WIP enhance the multi select component for shui 2024-03-08 11:35:13 +08:00
Gabriel Horner 7005025802 fix: closed values with icon losing existing property 2024-03-07 16:32:41 -05:00
Gabriel Horner 631f481de5 enhance: mark built-in closed values
and disallow their deletion. Also fix a bug where
used/undeleted closed values could still be deleted
because ui state was incorrectly updated. Part of LOG-3048
2024-03-07 16:21:21 -05:00
Tienson Qin 22a9b61b32 fix: remove :block/metadata
Use built-in properties
2024-03-08 01:01:55 +08: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 2a17e04aa2 fix: cljs graph parser tests due to missing dep 2024-03-07 10:11:34 -05:00
charlie 807ca2908a enhance(ui): WIP enhance the multi select component for shui 2024-03-07 21:45:50 +08:00
charlie d70582a2ed fix(ui): export names 2024-03-07 18:09:04 +08:00
charlie 1e9842733c enhance(ui): WIP enhance the multi select component for shui 2024-03-07 17:49:49 +08:00
charlie a57a062c4e enhance(ui): WIP enhance the multi select component for shui 2024-03-07 15:43:17 +08:00
charlie 6f7509e712 enhance(ui): WIP enhance the multi select component for shui 2024-03-07 15:29:39 +08:00
charlie 77ecb5e8ae feat(ui): WIP add multi select component for shui 2024-03-07 15:05:15 +08:00
Tienson Qin 17c1c47e78 fix: transit doesn't support entity 2024-03-07 13:21:14 +08: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 c6e358c983 fix: outliner test failing b/c not nbb compatible
bumped to latest nbb-logseq which is
2024-03-06 11:06:18 -05:00
Tienson Qin 759555f5c7 enhance: add db/ident for task status and priority closed values 2024-03-06 22:36:05 +08:00
Tienson Qin 61bb5ed862 fix: disallow built-in class properties to be deleted
fixes LOG-3050
2024-03-06 22:07:09 +08:00
Tienson Qin fbce74522b fix: add both scheduled and deadline to the task class 2024-03-06 21:31:19 +08:00
Tienson Qin 4c03e58b6c fix: disallow built-in page or property names from being edited
fixes LOG-3049
2024-03-06 21:29:22 +08:00
Tienson Qin 7acaf58bad enhance: add :db/ident for built-in properties
Now we can refer to a built-in property using it's ident instead of
its name, `name` might be changed by users.
2024-03-06 21:29:22 +08:00
Tienson Qin eb1270fff9 perf: use datascript.transit instead of edn for ui<>worker messages 2024-03-06 16:48:50 +08:00
Gabriel Horner 09816b6427 enhance: assets can be imported on CLI
Also add individual asset error handling, like is done for doc files
2024-03-05 17:05:18 -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
Tienson Qin 0bb2778f2b fix: unused macros shouldn't be handled in outliner/save
Fixes LOG-3065.

Deleting blocks could result in unused macros too, we probably should
do this by running periodically job to find and retract all unused
refs (macros, pages, hidden blocks, etc).
2024-03-05 20:18:15 +08:00
rcmerci 92625679b3 fix: fix :block/tags, reuse ref->eid 2024-03-05 19:48:00 +08:00
Gabriel Horner 9669755cab enhance: detect and add properties to imported classes
fixes LOG-3069
2024-03-04 23:05:06 -05:00
Gabriel Horner c1ab37a372 fix: nbb not working in most deps
core.async isn't nbb compatible yet. Moved async transact to its own
frontend ns
2024-03-04 18:06:29 -05:00
Tienson Qin 6e67e36a34 perf: use mutable data for sort-by-left 2024-03-04 21:46:40 +08:00
Tienson Qin 2e29918478 perf: use transit instead of edn for db storage 2024-03-04 18:15:03 +08:00
Tienson Qin e79b928c6b fix: sequential writes 2024-03-03 07:41:59 +08:00
Tienson Qin 33a532455b fix: use core.async channel to ensure sequential db transactions 2024-03-03 06:39:05 +08:00
charlie 215e65a249 enhance(ux): support auto side for the shui popup 2024-03-02 11:55:07 +08:00
Gabriel Horner 82639cb07a fix: replace tags with page-refs ignores case
fixes LOG-3073
2024-03-01 16:12:32 -05:00
Gabriel Horner b34325be77 fix: two bugs with updating tags during import
fixes LOG-3073
2024-03-01 15:51:19 -05:00
Gabriel Horner 487c86ac83 enhance: import float values with type :number
They were imported as :default b/c graph-parser didn't handle them.
Part of LOG-2985
2024-03-01 12:07:45 -05:00
charlie 97a017df9b Merge branch 'master' into feat/db 2024-03-01 17:52:21 +08:00
Tienson Qin 90576661f3 fix: hidden files show up in file graph
fixes LOG-3036
2024-03-01 16:29:03 +08:00
Gabriel Horner 0b0299b28f fix: more import fixes after testing more graphs
- collapsed:: false was failing an import
- ignore more attributes for existing pages
- also fixed import script not handling macros and absolute paths
  correctly
2024-02-29 15:06:49 -05:00
Gabriel Horner 49cc17dea5 fix: update property values for any type to :default change
that occur within same file. Also made importing behavior reproducible
across runs and made import script script less verbose by default.
Part of LOG-2985
2024-02-29 13:01:09 -05:00
Gabriel Horner 31b344d3c1 enhance: ignore blank property values from templates
to improves property type detection. Also fixed a bug in
upstream-properties detection and added more docs + better names related
to it. Part of LOG-2985
2024-02-29 11:18:18 -05:00
Tienson Qin 82d5fc6c00 fix: block marker lost in file graph
fixes LOG-2964
2024-02-29 18:35:45 +08:00
Andelf ae41c6d192 fix(search): rm lowercase normalization for query terms 2024-02-29 18:28:22 +08:00
Andelf 27433ed6f8 fix(search): query highlight performace
Close #11027
Close #11026
2024-02-29 18:28:22 +08:00
Tienson Qin 73d6a9e729 fix: graph with a configured home page displays journals view
fixes LOG-3058
2024-02-29 15:04:51 +08:00
Tienson Qin dbc43fed9f fix: load favorites initially 2024-02-29 14:39:42 +08:00