Commit Graph

4715 Commits

Author SHA1 Message Date
Tienson Qin
b1da3661e9 fix: block disappears when drag to another block 2022-03-15 11:41:44 +08:00
Gabriel Horner
dc7e4110bd Introduce reusable block-error component for prettier errors
Also used this on malformed advanced queries to improve styling and
communication of error
2022-03-15 11:40:52 +08:00
Gabriel Horner
8a714da0f3 Fix current-page nil case and prevent future custom-queries from blanking home
Fixes #4539
2022-03-15 11:40:52 +08:00
Yue Yang
6ef013c06e fix: cloze selector
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
2022-03-15 11:18:30 +08:00
Andelf
888cab7fa0 fix(code): avoid calling saving handler too often
Fix #4565
2022-03-15 11:17:29 +08:00
llcc
acc5a62c94 fix(tablet): toolbar width 2022-03-11 20:00:27 +08:00
Andelf
b1aa906e89 chore: bump version 0.6.3 2022-03-11 00:13:59 +08:00
Tienson Qin
725ca1c6a1 Feature: flashcards random mode (#4535)
* feat: add flashcards shuffle mode
* fix: flashcards navigation
* refactor(build): use @tabler/icons from node_modules

Co-authored-by: Andelf <andelf@gmail.com>
2022-03-11 00:13:37 +08:00
Tienson Qin
f13425590d fix: lint warnings 2022-03-10 23:32:19 +08:00
Tienson Qin
f9a9fac6e3 enhance: add "Open page backups directory" 2022-03-10 23:32:19 +08:00
Tienson Qin
51c0581afb enhance: revert to use /bak for backups 2022-03-10 23:32:19 +08:00
Tienson Qin
2e340ca1c6 fix: srs cards
close #4521
2022-03-10 18:21:34 +08:00
Gabriel Horner
6a1bcec82c Make db/query react aliases consistent
These namespaces had conflicting aliases which led to confusing reading
2022-03-10 15:43:07 +08:00
Gabriel Horner
79bbf21f7d Allow advanced queries to pull in dsl rules as needed
- Remove unused query' and when checks from custom-query
- Update bb command to use correct watch
- Provide $EXAMPLE mode in query dsl test to document rule usage
2022-03-10 15:43:07 +08:00
Gabriel Horner
a7b230d71d Organize testing helpers and namespaces
Start a helper ns and put test specific namespaces under frontend.test.
2022-03-10 15:43:07 +08:00
Andelf
8eab5753b0 fix(query): yesterday should be a date
Fix #4520
2022-03-10 15:33:54 +08:00
Andelf
c483ee56a3 fix(editor): error whilte cycling todos
Fix #4523
2022-03-10 12:30:00 +08:00
Andelf
194bc9dc88 fix(ci): lint errors 2022-03-10 12:22:03 +08:00
Tienson Qin
b453fed819 fix: can't collapse/expand in publishing
close #4304
2022-03-10 11:50:18 +08:00
Andelf
c51967ca1f fix(electron): unwatch dir when needed 2022-03-10 11:10:33 +08:00
Gabriel Horner
d8bc074be1 Move mobile startup to mobile.core/init to not have warning on every shadow reload
It is also the more appropriate place to have init code. Side effecting
on a namespace require should be avoided as much as possible

Cherry-pick #4482
2022-03-09 23:37:57 +08:00
Andelf
a2ce773aba feat(android): add fs watcher plugin 2022-03-09 23:37:57 +08:00
charlie
d8fc5d4a27 fix(pdf): PDF toolbar covers top of scrollbar. #4509 2022-03-09 18:25:55 +08:00
charlie
cba27489b4 fix(pdf): wrong current number of page initially #3076 2022-03-09 18:25:55 +08:00
Gabriel Horner
d955918525 Display explicit error for one remaining react-query (advanced query)
This is a follow up to #4434. I've now confirmed that all uses of
react/react-query benefit from an explicit exception as they will now
see an explicit error instead of 0 results which is confusing for the
user and harder for us to debug
2022-03-09 14:10:38 +08:00
Gabriel Horner
2286ef71bc Rules must be present for srs since it uses the same dsl-query helper
Closes #4497 and #4500
2022-03-09 14:10:38 +08:00
Gabriel Horner
f9cb132482 Fix simple queries not working in advanced query - close #4498
Also removed unused repo fn in query-dsl ns and configured custom-query
to throw exception
2022-03-09 14:10:38 +08:00
Gabriel Horner
6200ec70d3 Add rules linter for unbound vars and invalid queries
Linter caught one unbound var which wasn't an error but nonetheless good
to cleanup
2022-03-09 14:10:38 +08:00
charlie
b3d46225b9 fix(api): return value of move block #4409 2022-03-08 21:52:54 +08:00
Andelf
10c1b2c427 chore: bump version 0.6.2 2022-03-08 20:16:26 +08:00
Tienson Qin
90ef7036ba fix: order is lost when there are more than 8 property:: in a block
related to #3923
2022-03-08 17:12:48 +08:00
Gabriel Horner
4c777fc502 Convert remaining query operators to use rules
- Removed counter and uniq-symbol as those are no longer needed
- build-query cleanly maps conditions to their fns
- Query dsl tests have been fully decoupled
2022-03-08 16:27:30 +08:00
Gabriel Horner
198c3363f7 More query dsl improvements
- Add tests for 5 operators that weren't tested
- Converted all operators to rules except two
2022-03-08 16:27:30 +08:00
Gabriel Horner
bcfb9d99ee Move *page-tags operators to rules
Also converted their tests to the new format and finally made test-parse
small enough to be considered more readable
2022-03-08 16:27:30 +08:00
Gabriel Horner
80ef31f4c0 Fixes #4101 by moving todo/task and priority to rules
Task and priority weren't composable in most boolean settings. Rules
fixes that
2022-03-08 16:27:30 +08:00
Tienson Qin
ed82b3677e Merge pull request #4420 from logseq/fix/dsl-query-boolean-operators
Fix page-property bug
2022-03-08 16:18:07 +08:00
Tienson Qin
15e3874b47 Merge pull request #4374 from logseq/fix/multiple-windows-file-watchers
fix: support multiple file watchers for multiple windows
2022-03-08 14:34:31 +08:00
Tienson Qin
004e567fb5 fix: org mode label 2022-03-08 14:27:21 +08:00
llcc
5d0726cfb0 enhance: ignore logbook and default properties in unlinked reference 2022-03-08 14:20:20 +08:00
llcc
89721672b6 feat: support block-embed alias in orgmode 2022-03-08 14:19:13 +08:00
llcc
c32fba0ab1 fix: remove assets/draws from All Pages 2022-03-08 14:18:01 +08:00
llcc
f02c21c95b fix: link property causes wrong pages creation 2022-03-08 14:16:28 +08:00
llcc
965bedf4fa fix: id link in orgmode format 2022-03-08 14:13:04 +08:00
llcc
fa26d2179f enhance: enable blocks-collapse on mobile browsers 2022-03-08 14:10:45 +08:00
llcc
f9b9e674e7 feat(mobile): add collapse/uncollaspe all blocks functionality 2022-03-08 14:10:45 +08:00
charlie
2604a2726f enhance(ui): persist widen mode state 2022-03-08 14:09:22 +08:00
Junyi Du
d21a399acd doc: comments for child query optimization 2022-03-08 14:07:31 +08:00
Peng Xiao
f8d911d591 fix: without a repo url 2022-03-08 14:05:48 +08:00
Peng Xiao
421a45c447 refactor: modularize repos-dropdown 2022-03-08 14:05:48 +08:00
Peng Xiao
417950cdea fix: ignore lint for repos-dropdown for now 2022-03-08 14:05:48 +08:00