Commit Graph

244 Commits

Author SHA1 Message Date
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
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
Tienson Qin
bcc478b5f7 refactor: separate og and db version (#12276)
separate og and new version apps

remove file sync, tldraw, excalidraw and zotero
2025-12-29 15:39:32 +08:00
Tienson Qin
a18626283b fix: graph parser tests 2025-11-21 03:09:25 +08:00
rcmerci
d05a8ac07f enhance: replace atom blocks-ast-cache by lrucache 2025-04-03 22:14:27 +08:00
Tienson Qin
8a0a05183e refactor: remove :block/format for db graphs (#11667) 2025-01-05 12:10:47 +08:00
Tienson Qin
277096d458 fix: unable to add a comment using # in codeblocks
fixes https://github.com/logseq/db-test/issues/168
2024-12-15 21:08:24 +08:00
Tienson Qin
f459444a42 Merge branch 'feat/db' into enhance/code-type-block 2024-10-03 18:35:31 +08:00
Gabriel Horner
9c08e27483 fix: don't extract and display misleading warnings
in display-type blocks. Was able to reproduce the issue in :code, :quote
and :math blocks. Fixes logseq/db-test#128.
2024-10-01 14:53:18 -04:00
Gabriel Horner
9301c605db fix: invalid blocks when pasting multi-line content
related to
https://github.com/logseq/db-test/issues/56#issuecomment-2343937486 but
had seen this happen elsewhere when extract-blocks was called
2024-09-19 12:08:32 -04:00
Tienson Qin
f442c9e954 fix: lint 2024-08-27 23:22:27 +08:00
Tienson Qin
b4a887c026 fix: can't paste headings
fixes https://github.com/logseq/db-test-cn/issues/7
2024-08-08 20:28:11 +08:00
Tienson Qin
72552d6224 fix: avoid :block/refs self cycle 2024-08-06 15:21:13 +08: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
Tienson Qin
b294896f8a fix: reuse page uuids when parsing files
This commit also removes `with-id?` because it's too confusing.

Fixes LOG-3143
2024-06-15 22:52:30 +08:00
Tienson Qin
0b49d09fb1 fix: db schema validate 2024-04-07 17:26:58 +08:00
Tienson Qin
cda9ac3e26 fix: display class properties 2024-03-29 10:02:29 +08:00
Gabriel Horner
bfc5bf9ccc enhance: allow user macros for :url property values
and single line :default values
2024-02-22 14:49:03 -05:00
Tienson Qin
cf1e4691c2 fix: lint warnings 2024-01-03 16:45:11 +08:00
Tienson Qin
48b5593008 wip: outliner refactor 2024-01-02 18:07:17 +08:00
Gabriel Horner
e95531869a chore: move db only property util fns to their own ns
by doing this found a couple places where we accidentally called db fns
in file graph contexts
2023-11-17 16:36:49 -05:00
Gabriel Horner
3f773ed876 fix: update all db graph uses of mldoc to use db config
Left a few uses of gp-mldoc/default-config but only in file graph
specific locations or functionality that wasn't related to db graphs
e.g. handler. plugin. Also removed format/get-default-config as it was unused

Part of LOG-2741
2023-10-27 14:08:55 -04:00
Tienson Qin
e8d411b837 fix: typing markdown property results in a blank line
Fixes LOG-2741
2023-10-27 14:23:26 +08:00
Gabriel Horner
2acac87094 fix: macros were not being saved
macros were being discarded as unknown blocks when they should've been
saved as a block with a known type.  Introduced a new type number as
macros don't have most of the attributes that blocks or pages do.
Features like collapsible queries now work in db graphs. Also removed
an outdated reference that assumed macro was a page (which it no longer
is)
2023-10-25 17:05:31 -04:00
Gabriel Horner
241384c9be chore: clean up repeated uses of fetching page+property uuids 2023-10-24 09:29:30 -04:00
Gabriel Horner
f1d17ad56b fix: typing markdown heading displays correctly
Also fixed structured tag popup displaying
in heading which didn't make sense. Since this was fixed
right after gp-block/extract-blocks is called, this likely
fixed related issues where format/extract-blocks is called e.g. paste.
Fixes LOG-2821.
2023-10-23 18:01:50 -04:00
Tienson Qin
58fc4bca28 allow page's block/content to be it's original name 2023-08-16 01:09:48 +08:00
Tienson Qin
41ee9960da fix: extract both page and block refs from properties 2023-07-14 11:41:15 +08:00
Tienson Qin
32173ff95e fix: new page doesn't have block/uuid 2023-06-14 17:29:55 +08:00
Gabriel Horner
b2776bbb18 Remove supported-formats in all the places it's no longer used 2023-05-11 13:56:25 +08:00
Tienson Qin
40ad524443 fix: duplicated block ids in multiple files (#8668)
fix: duplicate block ids in multiple files
Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2023-02-21 15:50:09 +08:00
Gabriel Horner
39e1b8dc8a Add built-in property to list
Hide it on edit so query table doesn't look weird.
Also removed needless arity wrappings in block fns
2022-12-15 20:37:17 +08:00
Junyi Du
dbf13c87d9 fix: query performance degration caused by date normalization 2022-12-15 20:37:17 +08:00
Andelf
4a3b214395 fix: lint 2022-11-30 14:09:17 +08:00
Tienson Qin
39d23a8671 enhance: sent graphs-txid in sentry events 2022-11-30 13:49:34 +08:00
Junyi Du
160793e0d1 fix: some date related issues 2022-11-11 17:32:44 +08:00
sallto
2883bae097 fix: Sorting of Pagelinks in Query tables 2022-10-20 15:04:41 -04:00
Peng Xiao
01b04fc2f8 fix: perf optimize on cleanup 2022-09-28 14:42:42 +08:00
Peng Xiao
b3ecf26b90 fix: revert change of parse-title-and-body 2022-09-28 11:36:11 +08:00
Peng Xiao
fd94862312 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-24 09:42:00 +08:00
Peng Xiao
031ad9c4a9 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-15 09:46:44 +08:00
Tienson Qin
585e0dbf9d Merge branch 'master' into refactor/refs-from-property-values 2022-09-14 22:25:09 +08:00
sallto
20542700a5 fix: Date sorting is nonsensical #6363 (#6596)
* fix: Date sorting nonsensical
* simplify normalize-block
* adjusted handling of sets and added tests

Co-authored-by: Junyi Du <junyidu.cn@gmail.com>
2022-09-14 22:13:58 +08:00
Tienson Qin
336fa578d5 refactor: replace directives(front matter or org) with properties 2022-09-09 12:37:55 +08:00
Peng Xiao
9382750dc2 fix: heading style in single block 2022-08-20 11:22:03 +08:00
Peng Xiao
b30adea656 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-05 13:59:06 +08:00
Tienson Qin
a1ca6820df Fix: broken linked references (#6105)
* enhance: clicking the refresh button if a query is slow

* fix: skip running slow queries if there's no need to refresh

* fix: linked reference filtering does not work on TASK items

close #1669

* fix: each block should have its own page as a reference when query page references

* fix: references

* fix: non consecutive blocks in query result and filtered linked references

* simplify filters logic

* fix: ref numbers

* Save both :block/refs and :block/path-refs for different usage

* fix: block refs

* enhance: move scheduled and deadlines to its own ns

* linked references performance tweaks

* mouse hover filters icon to expand the collapsed linked refs

* perf: react/refresh! once instead twice

* enhance: compute flashcards every hour instead of every 5s

* feat: macros as blocks

* feat: flashcards list

* fix: refed pages count

* fix: can't select in linked references

* fix: block editing on linked refs

* perf: editing in linked references

* enhance: update srs cards number when clicking flashcards

* Add a test for the case fixed in #6100

* Address feedbacks from Gabriel

* fix: Block Ref Indicator is missing from the references-blocks class

close #5375

* fix: referenced pages

* fix: page refs

* fix: Using filters pushed the title property to the second block

close #5845

Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2022-08-04 13:03:12 +08:00
Peng Xiao
0a2688de83 feat: showing single block for blocks 2022-07-26 18:05:22 +08:00