Commit Graph

228 Commits

Author SHA1 Message Date
Gabriel Horner
643ff63a10 fix: 3 user options defaulting to #{""} values
which could have caused subtle bugs. Also cleaned up user-options so
future changes don't require making so many changes
2024-11-06 11:13:03 -05:00
Gabriel Horner
a3fde2a9f4 enhance: add import option to remove-inline-tags
Part of LOG-3235. Now with the ability to import all tags, Some users
will want to keep inline tags
2024-11-04 17:27:00 -05:00
Gabriel Horner
379b7768ce enhance: add optional support for importing all tags as classes
Part of LOG-3235 and fixes part of logseq/db-test#7. Not enabled in UI yet as need to test more
2024-10-29 16:17:01 -04:00
Gabriel Horner
a6238233c5 chore: cleanup on namespace import support
namespace modifications should happen with other modify fn instead of
in arbitrary property fn. Fixes LOG-3230
2024-10-18 14:32:49 -04:00
Gabriel Horner
90d1b7261f fix: import bug with aliased namespace pages
Was also failing docs graph. Part of logseq/db-test#136 and part of
LOG-3230
2024-10-18 11:54:39 -04:00
Gabriel Horner
3e05347379 fix: db import failing on namespace pages with built-in name
e.g. term/alias in docs graph. Also added some basic namespace import
tests. Part of logseq/db-test#136 and part of LOG-3230
2024-10-18 11:46:05 -04:00
Gabriel Horner
28457cd02b enhance: import namespaces to db graph
Working for basic graph but failing on edge case for docs graph.
Part of logseq/db-test#136 and part of LOG-3230
2024-10-18 08:24:45 -04:00
Gabriel Horner
39994b6891 fix: missing pages caused by import of changed property type
related to logseq/db-test#134
2024-10-10 09:34:22 -04:00
Gabriel Horner
bc4f121572 enhance: add import support for linked ref filters
Fixes LOG-3201. Also refactor and fix page-names-to-uuids to include
all existing user page names, not just ones from current file
2024-10-09 14:54:46 -04:00
Gabriel Horner
79569e8eaf enhance: add title-format support for import
Fixes
https://linear.app/logseq/issue/LOG-3219/import-journalpage-title-format-config.
Part of https://github.com/logseq/db-test/issues/61
2024-10-08 11:51:54 -04:00
Gabriel Horner
830c275d54 chore: use internal-page? helper 2024-10-03 11:52:23 -04:00
Gabriel Horner
e74912c850 enhance: import advanced queries as query objects
Fixes LOG-3247. Handles migrating deprecated options and string and non-string titles
2024-10-02 16:19:52 -04:00
Gabriel Horner
9531811b68 fix: simple queries without properties not importing
Also handle query title for simple queries. Also loosened page-tags to
allow for future logseq class importing. Fixes LOG-3243
2024-10-02 12:23:22 -04:00
Gabriel Horner
83c59128ad fix: db import imports simple queries with new query property
Part of LOG-3243
2024-10-01 16:57:18 -04:00
Gabriel Horner
939dd23f79 chore: use test helpers across db tests
instead of copied and pasted versions
2024-09-27 14:54:03 -04:00
Gabriel Horner
27c5d120ef fix: import fails hard on page names with '#'
Follow up to c3f0cc1953
2024-09-19 14:57:18 -04:00
Gabriel Horner
55ce311173 fix: type page failing for docs graph
Looks like the introduction of :logseq.property.view/type
triggered a bug with new pages having the same name as a built-in
and having a page property. This is a followup fix to LOG-3039
2024-09-18 16:26:56 -04:00
Gabriel Horner
9423eda275 fix: imported queries don't have #Query
Fixes LOG-3233. Also fix some test idents not being valid
2024-09-17 12:27:46 -04:00
Gabriel Horner
85af06beb3 fix: most imported journal pages didn't have #Journal
Fixes LOG-3234
2024-09-17 11:31:26 -04:00
Gabriel Horner
de14dbe800 enhance: import query properties to use new tables
Allows imported queries to use new query tables. Fixes LOG-3232
2024-09-13 18:33:53 -04:00
Gabriel Horner
a246db8a82 fix: remove built-in properties only used by file graphs
In #11508 we switched to a new table component for db graph queries which left
these built-in properties unused. Also moved file query code to
file-based namespaces and fixed a bug where multiple query properties
couldn't be set for a file graph query
2024-09-13 12:08:42 -04:00
Gabriel Horner
2059eaa4f2 fix: test assertions changed by last commit 2024-09-09 15:53:40 -04:00
Gabriel Horner
c36984c433 refactor: don't couple internal ref types to places it's not used
Follow up to #11494. Internal ref types are not used in most of the UI
and in any of the outliner layer.  Have separate vars for internal and
user ref types so we can see how they're used
2024-09-03 16:23:04 -04: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
Gabriel Horner
3a4cc55cda fix: graph-parser test and lint
Removed test as no error handling is needed for ident generation. Also
removed all related downstream uses of catch for
db-ident/create-db-ident-from-name that are no longer needed
2024-08-19 15:40:28 -04:00
Gabriel Horner
658ea25a21 fix: two db importer bugs introduced last week
- Graphs with description page failed to import
- Graphs that had a page with a built-in class name mangled the block
  types. Reverted fix for logseq/db-test#17
- Also updated test for datom count as some parser changes were made
  last week to alter it
2024-08-19 12:45:12 -04:00
Gabriel Horner
4a69e75e88 fix: import doesn't fail if it has a page with new class name
fixes LOG-3039
2024-08-08 15:16:21 -04:00
Gabriel Horner
48df03a1fa fix: finish removing arweave
Follow up to a6e0b0a092
2024-08-08 09:24:02 -04:00
Gabriel Horner
3d8e579e67 refactor: decouple block extraction for db graphs and exporting
Coupling db graph app to export needs could lead to bugs and is harder
to maintain. Also fix a test assertion
2024-08-07 18:12:31 -04:00
Gabriel Horner
dcb73b1003 fix: db import of advanced queries
Fixes LOG-3082
2024-08-07 16:30:20 -04:00
Gabriel Horner
66439dde68 fix: db import of markdown tables and multiline blocks
Fixes LOG-3072 and fixes LOG-3070
2024-08-07 12:33:13 -04:00
Gabriel Horner
f811ab242c fix: test count changed by #11458 2024-08-06 15:53:07 -04:00
Tienson Qin
f46372b346 chore: keep using class instead of tag for internal usage 2024-08-06 07:15:41 +08:00
Tienson Qin
411b05e7ba Prefer to use ldb/{type}? check when possible 2024-08-05 17:51:24 +08: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
8bef1d7742 Merge branch 'refactor/boolean-not-ref-type' into refactor/single-block-type 2024-08-03 15:37:17 +08:00
Tienson Qin
4cb9cb63a6 Merge branch 'feat/db' into refactor/single-block-type 2024-08-03 15:34:40 +08:00
Tienson Qin
b2f1f79b3d fix: graph-parser tests 2024-08-03 04:11:38 +08:00
Gabriel Horner
636e395d96 fix gp tests from #11433 2024-08-01 11:51:27 -04:00
Tienson Qin
d26e620a82 refactor: update :block/type to cardinality one instead of many 2024-07-31 19:35:26 +08:00
Gabriel Horner
3767f1d3c7 chore: rename task class ident
Only class ident name that wasn't capitalized and didn't match its
title. Considered renaming :logseq.task but unsure if it even makes
sense for their names to match since they aren't sharing a common ns.
:logseq.task may be better off under :logseq.property.*
2024-07-30 17:09:27 -04:00
Gabriel Horner
8afb337d7b chore: remove outdated test
rRemoving this test as the differences between a file and db graph are
enough that it's not worth testing. This test was helpful when we were
first developing db version
2024-07-30 15:13:24 -04:00
Gabriel Horner
6093462555 fix: db import after changes from #11433 2024-07-30 14:47:35 -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
c41b1bce3a fix: db import having incorrect block/path-refs
Some block/path-refs were invalid because importer was manually setting
this instead of relying on listeners. Confirmed relying on listeners
works in the frontend and CLI. Part of LOG-3176
2024-07-26 15:35:42 -04:00
Gabriel Horner
4c0c87337b fix: db import of whiteboard block with properties
Part of LOG-3176
2024-07-25 15:58:19 -04:00
Tienson Qin
71765f88e2 fix: names 2024-07-25 10:12:37 +08:00
Tienson Qin
7274a0bb40 Merge branch 'feat/db' into refactor/narrow-gap-between-page-and-block 2024-07-25 09:57:37 +08:00
Gabriel Horner
4b365da70c fix: display more helpful notifications for invalid
properties and classes that can't build a db-ident. Part of LOG-3176
2024-07-24 16:35:05 -04:00
Gabriel Horner
3411f344e3 fix: db import with property-parent-classes option
Also fixes some bugs with docs graph having classes split into more than
one db/ident. Part of LOG-3176
2024-07-24 14:55:06 -04:00