Commit Graph

1495 Commits

Author SHA1 Message Date
Tienson Qin
1d9fbc8a3d perf: reduce :block/properties calls on db graphs
`:block.temp/property-keys` was added to get all the properties
for given entity.
2025-01-15 19:35:09 +08:00
rcmerci
3e025dd311 enhance: add created-by prop to blocks 2025-01-14 14:57:33 +08:00
Gabriel Horner
4a245b5f72 fix: opening new page in sidebar and clicking first block
displayed invalid warning
2025-01-08 12:08:18 -05:00
Tienson Qin
8a0a05183e refactor: remove :block/format for db graphs (#11667) 2025-01-05 12:10:47 +08:00
rcmerci
d36f1c35f2 perf: cache d/entity result for immutable entities 2024-12-27 19:46:07 +08:00
Tienson Qin
85632cc631 enhance: paste block with text value should duplicate the value 2024-12-16 12:45:31 +08:00
Tienson Qin
56e3136103 enhance: skip property inner text when navigating properties 2024-12-16 11:16:35 +08:00
Tienson Qin
f289988910 fix: mod+enter set task status to Doing
When logseq.property/Status' default value is Todo.
2024-12-12 18:16:27 +08:00
Tienson Qin
cc27407699 fix: store #tag as #[[uuid]] internally 2024-11-30 17:12:15 +08:00
Tienson Qin
0f4353ea4d fix: save asset before creating new block 2024-11-29 15:03:53 +08:00
Gabriel Horner
5c05497293 fix: frontend lint 2024-11-19 16:44:17 -05:00
Tienson Qin
5c5c96ea5a fix: tag instance with positioned property shouldn't be collapsable 2024-11-19 18:24:52 +08:00
Tienson Qin
9f8cf016f4 fix: ensure assets dir after db restored 2024-11-16 10:29:01 +08:00
Tienson Qin
f682ca4ae3 fix: fn args 2024-11-12 17:32:37 +08:00
Tienson Qin
185ebc596a enhance: store pdf area images in #Asset even if the editing block
is empty.
2024-11-12 17:29:30 +08:00
Tienson Qin
04e0447f8f fix: clear editing state after pasting file to an empty block 2024-11-12 17:24:07 +08:00
charlie
8f726fdbd4 fix(pdf): insert the initial area image failed for the db graph 2024-11-12 16:48:19 +08:00
Tienson Qin
7f37746a0b fix: select all and copy inside codeblock copies blockID
fixes https://github.com/logseq/db-test/issues/156
2024-11-08 13:52:29 +08:00
Tienson Qin
7608a644c8 fix: lint 2024-11-04 13:49:08 +08:00
charlie
44d2bd84bf fix(electron): upload image 2024-10-31 17:50:06 +08:00
Gabriel Horner
fd9330f6d0 Merge branch 'master' into feat/db 2024-10-18 17:35:28 -04:00
Ayush Agrawal
53d8c5a3c6 fix: drag-drop / copy-paste should work for multiple files (#11214)
Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com>
2024-10-18 17:13:10 -04:00
Gabriel Horner
080e8a25db enhance: type > in empty block to convert to quote object 2024-10-15 14:05:29 -04:00
charlie
426a660b56 fix(electron): persist asset file from the highlight area image 2024-10-15 12:14:51 +08:00
Tienson Qin
440d85f574 enhance: type ``` in an empty block convers it to a code block 2024-10-14 18:15:09 +08:00
Gabriel Horner
d675f6ce1f fix: new assets have invalid schema
Follow up to #11563. Fix by relying on required asset property rather
than making :block/type more inconsistent. :block/type is mostly a page
type except for tech debt with "hidden" and "closed value"
2024-10-10 22:06:04 -04:00
Tienson Qin
bb422e75a4 feat: bring back image resize 2024-10-09 08:30:24 +08:00
Tienson Qin
550bf9d40a fix: delete asset 2024-10-08 21:24:44 +08:00
Tienson Qin
812cdd5840 enhance: save new files to #asset instead of the current page
When the current editing block is not empty.
2024-10-08 19:56:35 +08:00
Tienson Qin
d06eb5f8d4 fix: pdf area annotation 2024-10-08 18:51:17 +08:00
Tienson Qin
6d093927b9 fix: use existing asset if checksum matches 2024-10-08 14:21:50 +08:00
Tienson Qin
998fc66132 Merge branch 'feat/db' into refactor/assets 2024-10-08 11:54:31 +08:00
Gabriel Horner
79cc7f81ae chore: mv two file-graph namespaces to file-based dirs 2024-10-04 11:33:00 -04:00
Tienson Qin
f459444a42 Merge branch 'feat/db' into enhance/code-type-block 2024-10-03 18:35:31 +08:00
Tienson Qin
5aaa3c111d enhance: left/right arrow to navigate between code and text blocks 2024-10-03 15:47:17 +08:00
Tienson Qin
deb3507bb0 enhance: copy code block
1. search and store code lang instead of mode
2. select uses frontend.components.select instead of shui input + auto-complete
2024-10-02 12:58:15 +08:00
Tienson Qin
1bb69c74f2 enhance(ux): query
1. allow editing dsl query with both the query builder and the default text
editor
2. displays placeholder `Set query title` when a query doesn't have a
title yet
2024-10-01 15:00:34 +08:00
charlie
7d1d6f49da enhance(ux): enter to edit the code type block 2024-10-01 13:56:04 +08:00
charlie
d8bbea8ac2 enhance(ux): up/down for the code type block 2024-09-29 19:52:21 +08:00
Tienson Qin
85aed16c4e fix: wrong page created 2024-09-28 15:59:49 +08:00
Tienson Qin
879a30593a fix: slow query ux (#11548)
* enhance: intuitive query input

* fix: Manually editing Query property doesn't update its results

fix https://linear.app/logseq/issue/LOG-3249/manually-editing-query-property-doesnt-update-its-results

* fix: don't close popup when editing hidden property

* enhance: display query setting icon when hovering title

* Use block's title as query if its query is still empty

* enhance: display both simple and advanced query as below when not collapsed
2024-09-28 02:52:06 +08:00
Gabriel Horner
476e641c1a chore: rename property node/type to node/display-type
node can be a block or page and type is a general enough word that
it could refer to one of those. Use a more specific name so we
don't confuse ourselves or our users
2024-09-26 22:24:26 -04:00
Tienson Qin
82a70921fb feat: able to reference an asset file 2024-09-27 08:15:26 +08:00
Gabriel Horner
41554646de fix: objects with empty properties weren't collapsible
Also
- moved file specific collapse to only apply to file graphs
- removed db Query collapse branch b/c it was covered by other db
  branches
- updated separate lint to include org mode syntax that is deprecated in
  db graphs
2024-09-26 13:19:40 -04:00
Tienson Qin
17e808989a wip: store assets as blocks 2024-09-26 22:50:58 +08:00
Tienson Qin
54f191c6c6 feat: code/quote/math block (#11545)
Add code, quote and math block
2024-09-26 14:14:20 +08: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
Tienson Qin
6b245551a0 fix: wrongly input TAB to editor 2024-09-25 16:18:36 +08:00
Gabriel Horner
3555dede74 fix: db graph queries no longer need collapse logic
{{query is no longer used with query changes starting in #11540
2024-09-24 16:26:57 -04:00
Tienson Qin
cb0539ebec fix: search nodes shows title with parents
This commit also removes parents from page reference display because
1. there're bugs when clicking to edit
2. this may not be users' expected behavior
2024-09-24 21:32:37 +08:00