Commit Graph

356 Commits

Author SHA1 Message Date
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
Gabriel Horner
95db811f55 fix: frontend tests shouldn't depend on sqlite3
frontend.test.helper was accidentally coupled to sqlite3 via
logseq.outliner.db-pipeline. Split out sqlite3 dependent fns to
logseq.outliner.cli so it's clear this shouldn't be coupled to frontend
2024-06-14 14:41:24 -04:00
Gabriel Horner
0f122e9a7e fix: schema graph generation
Regressed with property value change. Also updated debug file and
fixed a missing built-in property ns which caused an invalid debug file
2024-06-14 11:38:14 -04:00
Tienson Qin
0ce2ee42db Revert "refactor: use files instead of sqlite for electron db storage"
This reverts commit c2c5ab80aa.
2024-06-13 13:04:00 +08:00
Gabriel Horner
13f5971d3c chore: mv worker.file.page-rename to appropriate ns
This ns is file graph specific so it should be in a file-graph
specific ns. Its current location was confusing as it was next to
other namespaces in frontend.worker.file.* that are not
file graph specific. Also moved related tests to correct location
2024-06-12 11:38:00 -04:00
Gabriel Horner
99939c600f fix: remove dead code caught when updating linter
Also added a db-concepts not in file linter fn
2024-06-12 10:36:22 -04:00
Gabriel Horner
0e1ada2ef6 enhance: bb task for creating graphs from EDN file
Converted inferred graph to an EDN file now that this task exists. Also
merge last of tasks.create-graph to relevant ns so that external users
can also create such tasks
2024-06-11 10:09:37 -04:00
Tienson Qin
c2c5ab80aa refactor: use files instead of sqlite for electron db storage 2024-06-11 08:30:49 +08:00
Gabriel Horner
938dd04811 enhance: add :build/tags and :auto-create-ontology?
for tested+generated graphs. :build/tags allows easy generation of
objects as seen in fixed up inferred graph
2024-06-06 17:05:13 -04:00
Gabriel Horner
14222a546f enhance: make journals easier to generate with :build/journal
Use it in tests that more appropriately belong in db dep.
Also did minor cleanup around page prep for page-uuids
2024-06-04 12:02:25 -04:00
Gabriel Horner
df10beb325 enhance: add schema and validation to sqlite.build
Also renamed block-level keys that are specific to the ns to have
a :build namespace. A lot easier to read, maintain and extend later.
Also cleaned up page naming to consistently require :block/original-name
2024-06-03 12:46:53 -04:00
Gabriel Horner
2456deb097 enhance: create sqlite.build ns as a better
load-test-files helper for db graphs and deps.
Most of this ns is split off from create-graph.
Migrated pipeline-test to correct outliner dep and
moved previous pipeline-test to correct db dep
2024-06-03 12:46:53 -04:00
Gabriel Horner
03167ae19c enhance: extract block content refs for generated graphs
Also update content with ids and create pages as needed
2024-05-31 17:19:25 -04:00
Gabriel Horner
790d0460a1 fix: remove + disable :block/macros for db graphs
part of LOG-3137
2024-05-30 11:01:37 -04:00
Gabriel Horner
effde81161 enhance: all user classes have :db/ident
This is important as a user's ontology (properties + classes) is now describable
with unique identifiers. This will allow for easy sharing and
importing of ontologies between users.
Also <create-class! now exists to create classes consistently. Will
be helpful when we want to provide some validation for classes
2024-05-28 16:52:12 -04:00
Gabriel Horner
74274bfd82 fix: create-graph graphs with properties on properties
unable to load. Subtle bug with transacting. Now that user properties
modify  schema, schema tx needs to be separated out from use of new
schema. Also add :block/refs to schema debug file and other minor cleanup
2024-05-24 12:09:22 -04:00
Gabriel Horner
26cf70f6cf fix: update schema and remove unused :name in :icon key 2024-05-23 09:45:38 -04:00
Gabriel Horner
ceb3681cfe fix: nbb scripts updates :block/refs the same as app
nbb was only handling path-refs previously. Can remove hacky
managing of refs in create-graph. Still a TODO to fix schema graph
lazy loading bug. Related to LOG-2819
2024-05-22 16:51:50 -04:00
Gabriel Horner
67ff14038a enhance: add :config option to schema graph
also fix outliner lints
2024-05-22 13:37:40 -04:00
Gabriel Horner
04e71a9a23 Bump datascript for nbb-logseq 2024-05-22 09:37:16 -04:00
Gabriel Horner
2a37687198 chore: create graph scripts use keyword names for :classes
Just like :properties for config to be consistent. Also tweaked
generated classes to inherit from Root, even for schema graph
2024-05-20 15:43:05 -04:00
Gabriel Horner
c5911a571b fix: loading of classes for script-generated graphs
Lazy loading of refs for classes isn't supported in the UI yet so
no need to self-inflect this. Also can move schema graph from :string
to :default usage now
2024-05-20 10:45:27 -04:00
Gabriel Horner
0284816f22 chore: replace uses of :string in tests and properties graph
Also removed test which tested an unused fn
2024-05-16 16:28:43 -04:00
Gabriel Horner
d37df950fa fix: property rules now work with property ref values
Also remove use of :string properties in tests
2024-05-16 15:05:37 -04:00
Gabriel Horner
43dfdbe0ae fix: convert remaining built-in :string props to :default 2024-05-16 11:22:09 -04:00
Gabriel Horner
0238aff2ba fix: replace uses of :string closed with :default closed
and remove :string from closed possibilities
2024-05-14 10:34:54 -04:00
Gabriel Horner
330571effe fix: properties of :classes and :properties didn't generate
from scripts. Fixes schema graph generation
2024-05-13 15:33:47 -04:00
Gabriel Horner
e55927086f fix: creating :number and :url closed values from config
Also add schema hack for fully-loaded being persisted. Also
add :default property examples to example properties graph now that it's
possible
2024-05-13 12:33:31 -04:00
rcmerci
5bb8e03550 refactor(rtc,wip): re-implement update-op part in rtc,
use avt-coll data in update-op to simplify the code.
Handle different attributes in a unified way, instead of
dealing with each different attribute separately
2024-05-11 20:54:14 +08:00
Gabriel Horner
fcf6ebd0e4 fix: page properties for :default, :number and :url
Also fix page property example in properties graph and removed
unused branches in validation
2024-05-10 16:40:42 -04:00