Commit Graph

92 Commits

Author SHA1 Message Date
Tienson Qin
4accddebbe fix: switch to use :map type for pdf hl-value 2024-07-25 16:25:56 +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
charlie
73d42536e5 enhance(pdf): persist block highlights data to the annotation block property value 2024-07-24 15:31:59 +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
6dd17c14f5 enhance: prefer d/entity than d/pull if possible 2024-06-13 15:12:59 +08:00
Tienson Qin
0e87965a10 fix: load full page first before setting pdf type 2024-06-13 15:04:51 +08:00
charlie
76ce3f72e8 fix(pdf): insert highlight blocks for the file based graph 2024-06-13 14:18:00 +08:00
charlie
eb0eff6341 fix(ux): use page uuid instead of the annotations page name 2024-06-12 15:16:54 +08:00
charlie
c38679ff45 fix(pdf): support browser to insert pdf highlight into page blocks 2024-06-12 13:45:46 +08:00
Tienson Qin
f620fe1913 fix: can't open PDF on web 2024-06-05 10:20:22 +08:00
Gabriel Horner
35e6ad120d chore: rename pdf specific properties to logseq.property.pdf
also remove deleted property ns
2024-05-16 15:27:24 -04:00
Gabriel Horner
e50d3eff21 fix: setting block properties with raw value
With this fix able to convert 2 built-ins to :default. Also cleaned
up set-block-property! which had outdated assumptions
2024-05-15 16:10:02 -04:00
Gabriel Horner
70d92c8f7a fix: pdf related properties for db graphs
Added to new property ns as file and file-path are too generic to be top-level.
Also fixed bugs in page creation
2024-05-09 13:38:31 -04:00
Gabriel Horner
24c48e7a87 fix: multiple fixes related to lookup-by-name
- only use it for user properties
- don't use create ident fn to lookup names
- fixed get-area-block-asset-url which didn't work for db graphs without
  the frontend
2024-05-02 15:16:03 -04:00
Tienson Qin
44af2213ce Merge branch 'feat/db' into refactor/db-properties-schema 2024-04-21 13:22:37 +08:00
Tienson Qin
2a7e6accb0 refactor: force outliner.tree/-del to delete all children
Except the children have been moved.
2024-04-17 17:48:59 +08:00
Tienson Qin
6eb6e60b55 Bring back namespaces/page merge/nested pages 2024-04-07 13:48:55 +08:00
Tienson Qin
08f492b849 fix: use pu/get-pid for both file && db graphs 2024-04-04 15:57:49 +08:00
Tienson Qin
60d4fca0ba wip: remove :block/name uniqueness for db based graphs
This PR also remove supports for:
1. merge pages when renaming a page to existing page
2. namespaces such as a/b/c
3. nested page such as [[a [[nested page]]]]

Pages merge might be added back depends on RTC, but it should be
decoupled from renaming, otherwise it's too complex.

Namespaces and nested pages have been contributed some critical bugs
that lead data-loss, they're so complex together with page alias,
it's just impossible to have a good test coverage and ensure the app
is stable, especially when page rename and RTC.
2024-04-04 15:57:48 +08:00
Tienson Qin
8d6916cfd7 wip: fix property-related tests 2024-04-01 12:24:41 +08:00
Tienson Qin
958507262e Merge branch 'feat/db' into refactor/db-properties-schema 2024-03-29 15:51:28 +08:00
Tienson Qin
cda9ac3e26 fix: display class properties 2024-03-29 10:02:29 +08:00
Tienson Qin
8d31f94b24 Remove :block/uuid and :block/name for properties 2024-03-28 17:37:28 +08:00
Gabriel Horner
9c5309da47 enhance: frontend consistently uses :db/ident
for fetching built-in properties instead of :block/name
2024-03-27 20:36:48 -04:00
Gabriel Horner
9b8540921e enhance: more property helper fns uses db-ident
instead of name
2024-03-25 16:34:51 -04:00
Tienson Qin
5efb1536c2 fix: replace all onmousedown/up with onpointerdown/up
onMouseDown can't be used in dropdown trigger
2024-03-12 15:50:27 +08:00
Andelf
329818e4c4 fix(db): css assets loading
- move make-asset-url to assets-handler
- handle assets for db-based graph in add-style-if-exists!
2024-03-11 18:38:48 +08:00
Tienson Qin
036f1b5ab7 feat: /todo/other-status and /urgent/other-priority to set property 2024-01-19 02:36:23 +08:00
Tienson Qin
e4f16d21d9 fix: api-insert-new-block! calls 2024-01-11 02:27:42 +08:00
Tienson Qin
baefeaad5b fix: use page-handler/<create! if possible 2024-01-11 00:54:19 +08:00
Tienson Qin
9194a671fd Move outliner core to its own dep 2024-01-03 18:02:48 +08:00
Tienson Qin
b7d9098e80 Move gp-util and gp-config to the common dep 2024-01-03 16:38:05 +08:00
Tienson Qin
f342303e6a Add initial tests on property handler 2023-11-30 00:34:04 +08:00
Gabriel Horner
097a59d9c6 Merge branch 'master' into feat/db 2023-10-12 15:36:49 -04:00
Tienson Qin
9f0eec2402 fix: whiteboard not working because of properties 2023-10-12 21:17:31 +08:00
charlie
1c1a07db4e fix(pdf): missing the initial ref highlight block sometimes 2023-10-11 17:35:33 +09:00
Gabriel Horner
4b0100cb25 chore: cleanup page-property file based ns
All of frontend.util.page-property was file based except for one line.
Moved that ns to a file-based ns and moved the line out to the more
appropriate property-handler
2023-10-02 15:59:43 -04:00
Gabriel Horner
0483e60eeb fix: disallow db version from creating deprecated title property
also add fixmes for other known properties conversions
2023-09-28 18:01:16 -04:00
Gabriel Horner
4d819ac1b3 fix: slides and aliased page navigation for db version
Update a few fixmes for properties.
Also add built-in prop which we've documented for slides.
Also show hide for built-ins properties as built-ins also use it
2023-09-25 15:29:24 -04:00
Tienson Qin
15cb78fbf7 fix: add pre-configured properties when creating a new db graph 2023-08-02 01:49:23 +08:00
Tienson Qin
db5e0a6571 handle pdf annotation properties 2023-08-01 21:23:00 +08:00
Tienson Qin
3ec4c6bedd remove handler.editor.property 2023-08-01 13:59:06 +08:00
Gabriel Horner
9628fc52b9 Split out property related fns
in order to make editor ns more maintainable
2023-05-04 13:50:09 +08:00
Andelf
65eb6d3380 fix(fs): image renaming op when resizing pdf hl area (#9122)
* fix(fs): image renaming op when resizing pdf hl area
Fix #9120
2023-04-20 15:15:32 +08:00
Tienson Qin
bc635eaf4b fix: internal blocks paste 2023-03-29 18:41:04 +08:00
charlie
22dfa621e4 enhance(pdf): UI lag for the case of large highlights data 2023-03-09 09:15:33 +08:00
Adam
6f45107408 fix: incorrect page title when 'hls__' is opened (#8697)
* dev: move 'hls-file?' to pdf-utils
* dev: use 'hls-file?' instead of string comparison
* fix: window title when hls file opened
2023-02-28 15:10:33 +08:00
Junyi Du
07fb4e64c0 fix: hls page name in page ref 2023-02-20 19:50:59 +08:00
Charlie
55b5149f4a Enhance/pdf enhancements (#8616)
- Improve interactions about the popup modal from the PDF viewer toolbar
- Persist highlights data with multiple-lines text format (for friendly Git diff)
- Blink the text highlight when scrolling to position
- Open the PDF viewer in the system Window
2023-02-20 15:58:43 +08:00