3501 Commits

Author SHA1 Message Date
megayu
60297778a8 Fix issues related to importing file to db (#12353)
* fix multiline block containing attributes will be truncated and lose data after importing

* fix the issues with block attribute name contains "/" after importing

* standardize eol, all files except .bat files use lf

* compatible with windows path

* fix multiple line importing issues
2026-01-30 17:36:12 +08:00
Gabriel Horner
7554e4e3f9 enhance: published page shows tags prefixed
with '#' like in app. Affects block and page tags
2026-01-28 16:05:55 -05:00
Gabriel Horner
22912bdd7e fix: published :url :many property values
doesn't display multiple urls correctly.
Fixes
https://test.logseq.com/#/page/697a675f-33ba-4cee-a4c1-adca385c714a
2026-01-28 14:49:19 -05:00
Gabriel Horner
e7bfd53a7c fix: import of namespace tags
w/ 2+ levels of namespaces. This should fix
https://github.com/logseq/db-test/issues/679
2026-01-27 16:01:25 -05:00
Gabriel Horner
23d6f1538a fix: import of unlinked pdf annotations
This addresses the importer failing for
https://github.com/logseq/db-test/issues/732
2026-01-26 12:05:44 -05:00
Gabriel Horner
ed805f039f chore: cleanup bb tasks after file graph removal
Remove needless 'db-' prefix for several dev tasks. Remove linter for
file and db graph separation. It served us well :)
2026-01-22 13:19:58 -05:00
Gabriel Horner
208b4bc205 fix: remove whiteboards and tldraw from rest of codebase
Also remove some old excalidraw refs that should've been removed awhile
back
2026-01-22 13:19:58 -05:00
Gabriel Horner
538d10a20a fix: rm whiteboard and tldraw from graph-parser
Also disable test block which is causing an intermittent ref issue
to investigate later
2026-01-22 13:19:58 -05:00
Gabriel Horner
c77ccc8827 fix: remove org mode everywhere except graph-parser 2026-01-22 13:19:58 -05:00
Gabriel Horner
05ffa3eeb6 chore: remove fns made unused by OG removal
Found unused ones in deps/common, from unused frontend.db aliases
and from fns that only existed for their corresponding tests
2026-01-22 13:19:58 -05:00
Gabriel Horner
173898240e fix: remove most file graph uses in deps
except for graph-parser and publish deps

- Removed most mentions of 'repo' in deps, which cleaned up a lot related
  to export cli and worker
- Removed db-based-graph? checks in deps except for unknown use
  in entity-plus?
- Removing db-based-graph? checks resulted in deleting unused file graph
  code paths e.g. get-pid
- Removed file graph handling in cli list command
- Remove file-based-graph? checks from deps
2026-01-22 13:19:58 -05:00
Gabriel Horner
37af8f690e fix: remove remaining uses of file graph specific attributes
Removed all file graph uses of :block/namespace, :block/file, :block/type and
:block/properties except for graph-parser which still uses them for db
importer.
Removed all uses of :block/format except for graph-parser and
src/main/frontend
2026-01-22 13:19:58 -05:00
Gabriel Horner
4bb7430682 fix: rm the last file-based namespaces in db dep
Also remove the following related file schema
attributes and their dependent code:
:block/marker, :block/priority, :block/scheduled,
:block/deadline,:block/repeated?, :block/pre-block?,
:block/properties-order, :block/properties-text-values, :block/macros,
:block/invalid-properties
2026-01-22 13:19:58 -05:00
Gabriel Horner
ab137a962a fix: remove file graph imports
Remove mention of removed JSON import in descriptions. Also mv frontend.util.fs
to where they are used instead of keeping an outdated file ns
2026-01-22 13:19:58 -05:00
Gabriel Horner
6312f8236a fix: remove file graph :block/file and dependent code
Also remove all file graph references in publishing and
add back publishing.db tests with db graph.
Also remove file graph behavior for cmd-k and files
2026-01-22 13:19:57 -05:00
Gabriel Horner
1d15e1f85d fix: rm file graph config from user config
Also remove unused helpers for file config keys and file graph code in
mobile.intent.  These removals also result in removing
frontend.common.file.util as it's no longer used
2026-01-22 13:19:57 -05:00
Gabriel Horner
37d9ebda1f chore: remove file-specific graph-parser code
Also removed file graph code for markdown export as a prereq
2026-01-22 13:19:57 -05:00
Gabriel Horner
96a9f95622 fix: remove file graph code from query-dsl
Allows removing unused file-rules and common.marker. Also remove
any incorrect or unused references to file graph markers like NOW
2026-01-22 13:19:57 -05:00
Gabriel Horner
e07ff6dd88 chore: convert query-dsl tests to db graphs
Able to remove some dead code and add :build.test/title which
is reusable for future tests
2026-01-22 13:19:57 -05:00
Gabriel Horner
e5778093a6 fix: convert model tests to use db graphs
Tweaked sqlite.build to allow :block/alias. Also modified
one test's assertions since there aren't pre-blocks anymore.
model tests are running as DB_GRAPH=1 with a hack for now
2026-01-22 13:19:57 -05:00
Gabriel Horner
20cbb626a0 fix: frontend and graph-parser tests and lints
Removed file specific test
2026-01-22 13:19:57 -05:00
Gabriel Horner
2bcc331916 fix: remove gp-db ns, especially since it's unused
or incorrect in case of graph-view. Removed file graph
specific tests that depended on gp-db
2026-01-22 13:19:57 -05:00
Gabriel Horner
273eef800b fix: remove needless db-graph? checks in outliner 2026-01-22 13:19:57 -05:00
Gabriel Horner
b91b892181 chore: remove unused file ns graph-parser.cli 2026-01-22 13:19:57 -05:00
Gabriel Horner
5d4a91eb7e enhance(dev): Add more publish docs
enable linter now that namespaces are documented
2026-01-22 11:31:57 -05:00
Gabriel Horner
a5fe0b8dd5 fix: publish not building in CI 2026-01-21 17:31:01 -05:00
Gabriel Horner
cd8f312b9f enhance(dev): add linters and workflow for publish
to have basic code quality checks. Test worker asset builds
successfully Also fix minor things caught by clj-kondo and carve.
2026-01-21 15:34:22 -05:00
Gabriel Horner
3e0d57bc32 chore: prefix deps workflows with 'deps-'
to organize workflow files better
2026-01-21 14:16:38 -05:00
Gabriel Horner
7ca5c1de64 fix: unpublish not working for a local graph 2026-01-21 12:26:59 -05:00
Gabriel Horner
a24a7d48fe chore: add basic testing instructions
Move commented out PUBLISH-API-BASE so that it actually works
2026-01-21 12:26:59 -05:00
Gabriel Horner
094b65336a chore: rename new property to be feature specific
and encourage for more varied use
2026-01-22 00:52:47 +08:00
Tienson Qin
1e5026aa3f Update deps/db/src/logseq/db/frontend/property.cljs
Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com>
2026-01-22 00:52:47 +08:00
Tienson Qin
772bd04bda Update deps/db/src/logseq/db/frontend/property.cljs
Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com>
2026-01-22 00:52:47 +08:00
Tienson Qin
ec0cc4549b fix: lint 2026-01-22 00:52:47 +08:00
Tienson Qin
cbece9e29f fix: lint 2026-01-22 00:52:47 +08:00
Tienson Qin
6d51d33f15 cljs port of pluralize.js 2026-01-22 00:52:47 +08:00
Tienson Qin
ada37adbf1 fix: lint 2026-01-22 00:52:47 +08:00
Tienson Qin
bc5984e1a3 Update deps/db/src/logseq/db/frontend/property.cljs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-22 00:52:47 +08:00
Tienson Qin
bcb9f84469 add tests 2026-01-22 00:52:47 +08:00
Tienson Qin
e5521da233 enhance: able to edit property value of :string type
able to set plural form for tags
2026-01-22 00:52:47 +08:00
Tienson Qin
164d1c908c fix: async query bidirectional properties 2026-01-22 00:52:47 +08:00
Tienson Qin
ce3f0a6d94 ux enhancements 2026-01-22 00:52:47 +08:00
Tienson Qin
b5f8ed266a fix: bi-directional property should have classes specified 2026-01-22 00:52:47 +08:00
Tienson Qin
3f8c6cde92 feat: Bi-directional property 2026-01-22 00:52:47 +08:00
Gabriel Horner
98ab051328 fix: importing journals with tags
Fixes https://github.com/logseq/db-test/issues/588
2026-01-20 10:24:19 -05:00
Tienson Qin
c2582d3c24 fix: available choices still shows other tags' scoped choices 2026-01-06 08:52:57 +08:00
Gabriel Horner
5748905057 fix ref-property tests pointing to property rule
Also add back property tests as it is still a useful rule
2026-01-05 14:44:49 -05:00
Tienson Qin
a9a9905b05 feat: tag-scoped property choices (#12295)
* feat: tag-scoped property choices

* Able to hide global choices per tag

* add e2e tests
2026-01-04 13:42:27 +08:00
Tienson Qin
8fd006babb enhance: api createTag supports :tagProperties 2026-01-03 13:43:20 +08:00
Tienson Qin
10846fdaa3 fix: asset wrong order 2026-01-01 20:35:44 +08:00