Commit Graph

321 Commits

Author SHA1 Message Date
Gabriel Horner
5397ca4d87 chore: remove unused vars in property.type
We used to use these vars when :block/schema contained cardinality and
classes
2024-08-29 14:00:05 +08: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
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