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
594e255d98
fix: db import shouldn't fail on asset imports
...
Correctly display asset related properties as ignored for now.
Related to #11563 . Also fix lint
2024-10-11 11:36:01 -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
Tienson Qin
d765d1ceeb
Merge pull request #11563 from logseq/refactor/assets
...
feat: #Asset tag
2024-10-10 15:54:15 +08:00
Gabriel Horner
e0b5c78374
fix: large exporter var
2024-10-09 15:21:57 -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
Tienson Qin
c049eb28fd
Merge branch 'feat/db' into refactor/assets
2024-10-09 15:51:26 +08: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
Tienson Qin
3acbed2731
chore: remove properties :file and :file-path from db graphs
...
The db version uses :logseq.property/asset.
2024-10-08 22:55:06 +08:00
Tienson Qin
6f615a2b04
fix: graph-parser test
2024-10-08 21:38:25 +08:00
Gabriel Horner
830c275d54
chore: use internal-page? helper
2024-10-03 11:52:23 -04:00
Tienson Qin
604e4be4d8
fix: test
2024-10-03 18:38:58 +08: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
a0d4e43d18
enhance: add /Advanced Query for db graphs
...
Related to
https://linear.app/logseq/issue/LOG-3246/improve-advanced-query-editor .
Had to upgrade promesa to get p/doseq
2024-09-26 10:55:50 -04:00
Gabriel Horner
30a652631d
fix: incorrect return values when edn parsing fails for queries
...
safe-read-string assumed all parsed strings were maps by returning {}
on failure. This could lead to subtle bugs in our new query layer and
other non-map features like hiccup
2024-09-25 11:39:29 -04:00
Gabriel Horner
f41ce9d6df
fix: parser large var
2024-09-24 16:56:31 -04:00
Tienson Qin
0641490fc8
fix: graph-parser tests
2024-09-25 02:12:45 +08:00
Tienson Qin
fb2cc14444
fix: don't parse parent from namespace pages
2024-09-25 01:54:42 +08:00
Gabriel Horner
afe4280c6a
refactor: DRY up spread out definition of db's
...
namespace/parent feature. Following up to #11517 , provide vars
so it's clear how a feature is used and coupled throughout the codebase
2024-09-23 14:53:12 -04:00
Tienson Qin
f494ef9786
fix: "/" page error
2024-09-21 09:51:22 +08:00
Gabriel Horner
fdc0ca58d4
fix: changing tag cases should not break their identity
...
Fixes logseq/db-test#83 . Also add a handy log to toggle when tracing sources
of ui bugs
2024-09-20 16:11:39 -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
c0e7ffe444
fix: graph-parser lint
2024-09-19 10:33:35 -04:00
Tienson Qin
b37a268706
fix: lint and test
2024-09-19 19:46:30 +08:00
Tienson Qin
e7e579d3de
fix: pasting differently formatted dates disappear after entry
...
fixes https://github.com/logseq/db-test/issues/103
2024-09-19 18:39:02 +08:00
Tienson Qin
c3f0cc1953
fix: disallow # in page name
...
Because it creates ambiguity in some cases:
1. With cmd-k we can’t tell the difference between an Apple page
tagged with Fruit and a page named "Apple #Fruit"
2. What should we do with [[Apple #Fruit king]]?
3. Is `#` for Markdown heading or part of a page name?
Fixes https://github.com/logseq/db-test/issues/100
Fixes https://github.com/logseq/db-test/issues/106
Fixes https://github.com/logseq/db-test/issues/105
2024-09-19 06:31:26 +08: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
8b9d2a601e
enhance(dev): print ignored properties for CLI import
2024-09-12 17:25:42 -04:00
Gabriel Horner
2059eaa4f2
fix: test assertions changed by last commit
2024-09-09 15:53:40 -04:00
Gabriel Horner
4962aad8ba
fix: file graph console error while typing priority
...
Typed '[#' and saw an error. build-new-class shouldn't be
be called for file graphs
2024-09-09 15:35:02 -04:00
Gabriel Horner
39b0e3e368
enhance: all journal pages have #Journal class
...
Also add some support for importer to do the same
2024-09-06 18:27:58 -04:00
Gabriel Horner
04742d6922
fix: db import of 'parent' property
...
Bug only triggered by user properties that happen to have same name as a
built-in property and the built-in is capitalized. Added a helper fn to
avoid this bug in the future. Removed hack from #11494 as assuming
a user properties are built-in ones would result in surprised users with
buggy imports. Also fixed lint from previous commit
2024-09-05 17:14:20 -04:00
Tienson Qin
f3c59a9db3
fix: graph-parser tests
2024-09-04 12:55:37 +08:00
Tienson Qin
c23c15ca7e
fix: node references do not appear on blocks that contain a tag
...
fixes https://github.com/logseq/db-test/issues/43
2024-09-04 11:10:14 +08: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
de6c6aedd2
chore: bump nbb-logseq for datascript bump in #11483
2024-08-26 11:22:40 -04:00
Gabriel Horner
f2b38b5963
fix: stop shadowing vars in deps and turn on related lint
...
Follow up to last commit. Added some exceptions for cljs.core
to minimize change for now
2024-08-23 16:58:08 -04:00
Tienson Qin
f11932e0c5
fix: putting the text "#Task" in a block breaks creating new tasks
...
fixes https://github.com/logseq/db-test/issues/24
2024-08-23 14:37:46 +08: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