Commit Graph

385 Commits

Author SHA1 Message Date
Gabriel Horner
8542e6d8d9 chore: add datetime examples to properties graph 2024-09-23 10:09:44 -04:00
Gabriel Horner
a3f8315e01 chore: db file linter can have exceptions 2024-09-23 09:53:31 -04:00
Tienson Qin
fe3d445f32 chore: typo 2024-09-22 13:42:47 +08:00
Tienson Qin
c5c0f5d822 feat: add datetime type 2024-09-22 10:25:07 +08:00
Tienson Qin
7e26022c8b Merge branch 'feat/db' into feat/namespace 2024-09-21 07:44:53 +08:00
Gabriel Horner
f33ce442e4 fix(dev): dev cmd should only run on clj* files
linter fails nonsensically on .md and .css
2024-09-20 17:32:58 -04:00
Tienson Qin
4b3534476c fix: display parent in editor mode 2024-09-13 23:56:00 +08:00
Gabriel Horner
366e01b7ef chore: add new ns from #11508 to db lint
Also forgot to update docstring in recent commit
2024-09-09 14:40:38 -04:00
Gabriel Horner
e5e9c5c687 chore: mv file-based util namespaces to their own directory
Makes maintenance of different graph types easier and increases linting
of what occurs in these namespaces
2024-09-09 14:31:56 -04:00
Tienson Qin
c268841121 refactor: query result with the new table view (#11508)
feat: table && list view
2024-09-09 06:55:37 +08:00
rcmerci
bc7a7d6c6d test(rtc): fix case move-blocks-concurrently 2024-09-06 13:34:31 +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
rcmerci
50fb730c43 test(rtc): launch two clients at the same time 2024-08-30 20:52:25 +08:00
Gabriel Horner
d431f62c97 fix: add more file graph concepts to db linter 2024-08-29 11:40:37 -04:00
Gabriel Horner
3bc6a27173 chore: remove unused vars in property.type
We used to use these vars when :block/schema contained cardinality and
classes
2024-08-28 11:14:54 -04:00
Gabriel Horner
7a96fc0e32 fix: show blank page error to user instead of silent failure
also fix outdated lint
2024-08-27 17:11:36 -04:00
Tienson Qin
f442c9e954 fix: lint 2024-08-27 23:22:27 +08:00
Gabriel Horner
de6c6aedd2 chore: bump nbb-logseq for datascript bump in #11483 2024-08-26 11:22:40 -04:00
Gabriel Horner
e16c880280 enhance(dev): extend fast kondo lint to run across all kondo dirs 2024-08-21 21:43:12 -04:00
Gabriel Horner
bc18661c90 enhance(dev): Add fast kondo lint for dev 2024-08-21 13:33:01 -04:00
Gabriel Horner
e0b2a75747 chore: add another file to db-file graph linter 2024-08-21 09:19:00 -04:00
Gabriel Horner
c703ebd794 fix: remove deleted lang keys from English config 2024-08-20 17:23:43 -04:00
Gabriel Horner
85e358e57b fix: not able to create case sensitive classes
Also important to keep db graphs decoupled from file specific
:block/name. Made sure that related fix in logseq/db-test#9 still works
2024-08-20 17:08:14 -04:00
Gabriel Horner
cabb24ea4e chore: tweak doc wording 2024-08-20 10:17:23 -04:00
Gabriel Horner
14a507f4cd enhance(dev): run lint fix with an option
Linters are read only by default. Lang lint can be fixed by passing
`--fix`. We don't want CI or inexperienced contributors fixing files accidentally.
Also move deps to bb.edn as putting them inline leads to quirky/buggy
tasks listing and autocompleting as they pause when fetching an inlined dep
2024-08-20 10:17:23 -04:00
Gabriel Horner
7f7c87689d doc: using a CLI generated graph 2024-08-19 16:46:26 -04:00
Tienson Qin
8b470dd455 enhance: remove unused dicts automatically 2024-08-16 15:16:56 +08:00
Gabriel Horner
261118d4dc refactor: finish frontend independence from worker and add lint
Remaining fixes worker all file related. Fixes LOG-3717
2024-08-09 12:16:20 -04:00
Gabriel Horner
7a40761eca refactor: organize worker namespaces and lint them
Organize them to live under src/main/frontend/worker and add a lint to ensure
that common code with frontend is only under frontend/common/.
Add a linter to ensure that worker doesn't depend on frontend.
Motivated to fix after recent worker breakage fixed by
75463c4df4
2024-08-08 23:01:57 -04:00
Gabriel Horner
e9ac9d2cae fix: lang lint
translation keys that are passed in code need to be configured
2024-08-08 09:35:26 -04:00
Tienson Qin
4083a2d0a0 enhance: prefer tag instead of class on UI
Some users are confused with Classes/Objects, so on UI it'll be
Tags/Nodes.
2024-08-05 15:06:54 +08:00
Tienson Qin
390b44985c chore: bump mldoc to 1.5.9 2024-08-03 15:19:51 +08:00
Gabriel Horner
8653f0616b fix: schema graph generation with description property 2024-08-03 00:27:21 -04:00
Gabriel Horner
f9a0ae0353 enhance(dev): no more renamed schema.org classes
class uniqueness was based on the old assumption of :block/name being
unique. This is no longer required for db graphs and case sensitive classes
and properties are now supported
2024-08-02 15:05:39 -04:00
Gabriel Horner
2e13c9758b enhance: add a table for property pages
that display all nodes for the current property.
Property pages now behave like classes and display a table instead of blocks.
Also update linter to include objects ns
2024-07-31 15:25:03 -04:00
Gabriel Horner
8024050210 fix: properties graph not generating
Was failing b/c property type :page no longer exists. Also added a node
without classes example as it's helpful to test creation and selection
of options for that case
2024-07-30 10:34:13 -04:00
Tienson Qin
3bc1a673cb refactor: replace both :page and :object types with :node 2024-07-30 17:25:46 +08:00
Tienson Qin
cc3c4ac5dc Merge branch 'feat/db' into refactor/narrow-gap-between-page-and-block 2024-07-30 09:49:15 +08:00
Gabriel Horner
0103d1a455 fix: table count in title doesn't update with filter
Also add translation keys for table headers
2024-07-29 15:03:29 -04:00
Tienson Qin
b3a786db02 Merge branch 'feat/db' into refactor/narrow-gap-between-page-and-block 2024-07-29 13:36:00 +08:00
Gabriel Horner
d3f9defb6d chore: bump nbb to latest datascript 2024-07-26 21:27:10 -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
Gabriel Horner
e24b386079 Bump nbb with latest datascript
Test fixes are reasonable as datascript catches more invalid uses of
query
2024-06-27 18:07:44 -04:00
Tienson Qin
736c0b1f49 fix: lint 2024-06-27 17:01:17 +08:00
Tienson Qin
dec56b31f0 chore: remove unused :file/handle 2024-06-20 20:53:15 +08:00
Gabriel Horner
3333e95d27 fix: properties graph incorrectly generating :object-many case
fixes LOG-3162
2024-06-19 09:26:00 -04:00
Gabriel Horner
5f1d87eb26 dev: add examples of :object in properties graph
uncovers a bug in :object-many ui
2024-06-17 10:58:35 -04: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
9a8c91c0cc chore: mv logseq.db.sqlite.db into sqlite.cli
for more explicit name and purpose. Also updated outdated db readme
and removed unused fns in logseq.db.sqlite.db
2024-06-14 16:53:19 -04:00