Commit Graph

616 Commits

Author SHA1 Message Date
Peng Xiao
f3418a6278 fix: a potential data loss issue for whiteboard blocks 2022-09-06 23:09:26 +08:00
Peng Xiao
5e44055984 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-02 09:46:58 +08:00
Tienson Qin
935ba7930c fix: journal titles with different capitalization in Query
results/Linked References

close #6541
2022-09-01 20:06:50 +08:00
Peng Xiao
33885e619b Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-01 10:29:29 +08:00
Charlie
01d879c18e feat!: File Sync (#5355)
- file sync for electron/ios/android
- age encryption of both file content and file path
- massive UI enhancement
- corresponding CI tasks

Co-authored-by: llcc <lzhes43@gmail.com>
Co-authored-by: rcmerci <rcmerci@gmail.com>
Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
Co-authored-by: Andelf <andelf@gmail.com>
Co-authored-by: Gabriel Horner <gabriel@logseq.com>
2022-09-01 00:31:49 +08:00
Peng Xiao
f5d83483ce Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-31 10:44:18 +08:00
Peng Xiao
94e5c9d1a3 fix: whiteboard block left index on reindex 2022-08-31 10:43:11 +08:00
Peng Xiao
89c6f17283 fix: exclude whiteboard properties for auto complete 2022-08-31 10:17:19 +08:00
Gabriel Horner
9a9e793177 Update test for change in b15da3e78a 2022-08-30 11:13:38 -04:00
Tienson Qin
b15da3e78a fix: page name not changed after parsing the title property 2022-08-30 12:14:11 +08:00
Peng Xiao
0ff5324c02 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-29 10:45:15 +08:00
Gabriel Horner
b47826d69d Fix page block not saving invalid-properties 2022-08-27 10:52:29 +08:00
Gabriel Horner
340fb8cf9a Invalid property fix and tests
- Fix validator considering 'foo bar' or a number or any valid edn, a valid keyword
- Rename property keys to names as users don't know what keys are
- Also bumped nbb-logseq to latest version
- Also give property validation more product focused namespace and name
2022-08-27 10:52:29 +08:00
Peng Xiao
1e607907f3 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-26 15:46:20 +08:00
Tienson Qin
62c091840a fix: parser ci 2022-08-26 13:00:42 +08:00
Tienson Qin
133c2486c3 fix: lint warning 2022-08-26 13:00:42 +08:00
Tienson Qin
abc33f213c enhance: warning on invalid properties 2022-08-26 13:00:42 +08:00
Peng Xiao
37d0ad2524 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-24 16:50:57 +08:00
Gabriel Horner
55ccc2d17c Rename config to :rich-property-values?
Name should allow for additional functionality later
2022-08-23 09:55:15 -04:00
Peng Xiao
b12fd69be0 fix: page name case 2022-08-16 18:09:13 +08:00
Peng Xiao
03ccde7008 fix: ci tests 2022-08-16 17:59:39 +08:00
Peng Xiao
384fc95231 fix: whiteboard name case issue 2022-08-16 17:52:43 +08:00
Gabriel Horner
509422901a Fix bugs with tests
- Quoted property values were extracting refs
- Punctuation at end of tags was getting included in tag
- Property values were only getting displayed as refs/relationships
  instead of full property value
- cli wasn't passing along user config
2022-08-11 17:20:47 -04:00
Gabriel Horner
8d471bd0c1 Remove uses of smart-re-find
All uses except one were locations where there were already string
checks or fns before it only worked with strings
2022-08-11 16:32:00 -04:00
Gabriel Horner
39b43b363c Fix page-properties bug and dsl-query bug
parser test caught page properties bug and dsl-query tests once written
correctly exposed another bug. Also remove unit test as they are
replaced by integration style tests in graph-parser-test
2022-08-11 16:32:00 -04:00
Gabriel Horner
0719163d30 Split out parse-property for use in dsl-query and tests
- Add tests for all *property dsl queries with and without new
  config option
- Add tests for property persistence
- Add tests for property relationships
2022-08-11 16:32:00 -04:00
Gabriel Horner
405183db09 Add config option to allow for more free text in property values
Still need to test that *property operators work correctly when this
option is on
2022-08-11 16:32:00 -04:00
Peng Xiao
b9bc4130e9 fix: tests 2022-08-06 13:29:36 +08:00
Peng Xiao
37f0893b01 fix: remove some logging 2022-08-06 10:40:09 +08:00
Peng Xiao
aa224fb6de fix: some displaying styles 2022-08-06 00:13:33 +08:00
Peng Xiao
1e476bd26c feat: add tabler icon extensions 2022-08-05 21:50:58 +08:00
Peng Xiao
b30adea656 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-05 13:59:06 +08:00
Peng Xiao
fcd158fdc8 quick add block shape 2022-08-05 01:58:39 +08:00
Tienson Qin
59b924f25d fix: CI 2022-08-04 17:25:29 +08:00
Gabriel Horner
4ec5827902 Move block-ref fns and vars to their own ns
Similar to page-ref to keep namespaces explicit
2022-08-04 17:25:29 +08:00
Gabriel Horner
e0b1f6b2de Move common uses of page-ref to its own ns
By having a specific ns for page-ref utils, our code is more readable
and intention revealing. Also found that
text/{get-page-name,page-ref-un-brackets!} was getting called in
contexts that didn't make sense e.g. query layer was checking for
markdown and org page-refs
2022-08-04 17:25:29 +08:00
Gabriel Horner
8be0deecd0 Move markdown property colons into a var 2022-08-04 17:25:29 +08:00
Gabriel Horner
001e0d302d Finish block-ref helpers
There were a couple scattered in 2 text namespaces and there were
a couple uses of block-ref that involved escaping.
Removed block-ref-un-brackets! once it was seen as the equivalent
of an or statement
2022-08-04 17:25:29 +08:00
Gabriel Horner
a3d30e0b52 Move all block ref parens strings to vars
Extracted a couple fns we kept reinventing across namespaces
2022-08-04 17:25:29 +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
ab6eec5fc3 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-03 14:12:10 +08:00
Peng Xiao
035b96e70a feat: add whiteboard toggle 2022-08-02 10:55:19 +08:00
Gabriel Horner
49fbdd0244 Merge pull request #6214 from logseq/fix/hidden-properties-in-autocompletion
Fix: Property completion for hidden properties and property ordering
2022-08-01 14:42:06 -04:00
Peng Xiao
45272ef52b Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-01 10:22:15 +08:00
Gabriel Horner
42b7f5d189 Add two editable org built-in properties
Also ported old filetags property tests from b991599244.
2022-07-30 06:33:37 +08:00
Gabriel Horner
b1c98ec09c Fix property ordering for large property maps
Fixes #4907. Issue was that we were losing sort order by converting a
linked/sorted map to a normal unsorted map.  Also ensure
properties-order is a vec to simplify edn serialization
2022-07-28 15:46:18 -04:00
Peng Xiao
66a08f8916 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-07-26 09:31:48 +08:00
charlie
bb2362b5d6 improve(ux): remove :file-path from hidden page properties 2022-07-25 23:38:57 +08:00
Peng Xiao
751df3b97d fix: filter out none shapes for tldraw 2022-07-25 20:51:43 +08:00
Peng Xiao
b83f4fb1a2 Update extract.cljc 2022-07-24 12:25:37 +08:00