Commit Graph

179 Commits

Author SHA1 Message Date
Tienson Qin
e900a205e7 fix: use sentry to capture errors instead of posthog 2022-11-25 13:08:54 +08:00
Tienson Qin
98c8ad304c Load refresh token synchronously 2022-11-21 21:03:32 +08:00
Andelf
e618f5d1f7 Fix: android nav bar and status bar color (#7385)
* fix(android): set nav bar and status bar color

Close #7382
2022-11-21 10:50:10 +08:00
rcmerci
decd47c8a9 enhance(sync): check token not expired before api-calls (#7267)
* enhance(sync): check token not expired before api-calls

* fix(sync): ensure id-token exists when calling user/user-uuid

* enhance(sync): add <wrap-ensure-id&access-token, remove refresh-token-loop

* fix: check exception before using the result of <user-uuid

* fix: notify users ex message instead of ex info

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2022-11-09 11:06:45 +08:00
Tienson Qin
e56fb0fa53 fix: remove redundancy paths on db
This commit also removes the fragile files including page-metadata.edn
and metadata.edn.
2022-11-07 13:29:15 +08:00
Tienson Qin
a43d737042 fix: debounce shortcut installation 2022-10-24 15:49:16 +08:00
Gabriel Horner
441a19fcb8 Move indexedDB init to avoid failing non-indexedDB envs
Having this at require time causes environments to fail that don't
have indexedDB defined. Node tests when running async tests
fail for this reason with the promise inside idbkv.js
2022-10-17 10:27:12 -04:00
Gabriel Horner
0c570a0300 Fix more bugs, move plugins.edn and add enabled
- Move plugins.edn to config/ as it is user configuration
- Add plugin-config enabled flag and moved plugin enabled
- Fixed bugs with manual install
- Refactored plugin-config component to have its own listener
- Split out shared plugin fns to a common ns - plugin-config shouldn't
  need to depend on a component like plugin-handler
- Bump rewrite-edn to include upstream fix and avoid tons of cljs
  warnings with earlier versions
- Fix react warning introduced outside this PR in ui/icon
2022-10-17 10:13:27 -04:00
Gabriel Horner
da6c617a5b First pass at writing plugins.edn on install/update/uninstall 2022-10-17 10:13:27 -04:00
Peng Xiao
f13ebac16d Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-28 16:13:03 +08:00
Andelf
2bb2a1f072 fix: p/let should wait for all promise (#6835) 2022-09-28 15:23:47 +08:00
Peng Xiao
4520399ddf Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-28 10:29:20 +08:00
Gabriel Horner
1f0e22275d Add ns docstrings for most ns in src/main
- Added to CI now that it passes
- Added no-doc for docstrings that don't add any more than what's in the
ns name or for ones where I didn't know the ns that well
2022-09-27 13:55:16 +08:00
Peng Xiao
fd94862312 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-24 09:42:00 +08:00
Andelf
ae114afbd8 Feat: sync progress for electron (#6662)
* fix: state shouldn't be returned in ipc

* feat: download && upload processing

* enhance(ui):  interaction of show password checkbox

* feat: time left

* feat: download progress

* Set download batch size to 100

* improve(ui): progress pane of file sync indicator

* improve(ui): progress pie of each file state

* improve(ui): progress pie of each file state

* improve(ui): progress pie of each downloading file

* fix: add last changed time

* enhance: time left

* fix: total needs to be larger than finished

* fix: wait for update-graphs-txid!

* enhance: show in-progress files first

* chore: ui polish

* improve(ui): persist stauts of sync files list toggle switch

* fix(ui): visibility of sync now button on mobile

* chore: remove ios static out after sync

* fix: debounce clicking on sync icon

* fix: repos not refreshed after unlink or delete

* enhance: automatically save page-metadata.edn to avoid sync when restart

* improve(ui): sync now shortcut for file sync progress pane

* enhance: data transfer icons

* fix: stop sync if switched to another graph

* fix: can't switch

* enhance: sort files first before uploading or downloading

* fix: clear current graph uuid when sync stops

* fix: separate progress by graphs

* fix: check files only in the current progress

* fix: prevent multiple sync managers for the same graph

* fix: remove redundant files watchers

* enhance(sync): re-exec remote->local-full-sync when exception

re-exec remote->local-full-sync when <update-local-files return exceptions

* enhance(sync): re-exec remote->local-full-sync when exception

re-exec remote->local-full-sync when <update-local-files return exceptions

* fix(sync): set-progress-callback, update rsapi

* fix(sync): uploading progress bar

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
Co-authored-by: charlie <xyhp915@qq.com>
Co-authored-by: rcmerci <rcmerci@gmail.com>
2022-09-23 02:00:24 +08:00
Peng Xiao
eaec72e676 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-14 00:26:16 +08:00
Andelf
6de5c623ab fix(mobile): loading stuck caused by global config 2022-09-10 10:28:05 +08:00
Peng Xiao
4d86f4f53f Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-10 00:45:27 +08:00
rcmerci
0b6328fcfa fix(sync): api calls fail when network offline 2022-09-08 18:36:02 +08:00
Gabriel Horner
12b8592f9b Update docstrings after Tienson's shortcuts fix
Also remove unused :db-schema
2022-09-08 12:34:27 +08:00
Gabriel Horner
bfe8d46945 Update src/main/frontend/handler.cljs
Switch to p/do! since not using result

Co-authored-by: Andelf <andelf@gmail.com>
2022-09-08 12:34:27 +08:00
Tienson Qin
7fa9209e29 fix: load global config synchronously instead of relying on watcher
This commit also refreshs the shortcuts when config files has been edited.
2022-09-08 12:34:27 +08:00
Gabriel Horner
b1d210d26b Merge configs and create global config file if not present
- Cleanup repo and global config with system components
- test merging
- fix edge cases
2022-09-08 12:34:27 +08:00
Gabriel Horner
51ed2f94f1 Encapsulate global config state and add global watcher
Correct merge with local state and testing is still TODO
2022-09-08 12:34:27 +08:00
Peng Xiao
5e44055984 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-09-02 09:46:58 +08:00
Andelf
628ee9e735 fixup! fix(ios): handle ios indexedDB preload 2022-09-02 00:09:51 +08:00
Andelf
ba0a67ae05 fix(ios): handle ios indexedDB preload 2022-09-02 00:09:51 +08:00
Andelf
2cebce3d91 fix(android): crash at start, accessing illegal path 2022-09-01 16:48:46 +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
1e607907f3 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-26 15:46:20 +08:00
Tienson Qin
f4aa08fbd3 fix: stuck importing from edn/json
Also, this commit added the progress UI for importing and removed the
:file/writes core.async channel.
2022-08-26 13:00:42 +08:00
Tienson Qin
9bd0b0b221 fix: enter to re-index 2022-08-25 21:42:59 +08:00
Andelf
cfb6495378 fix(ios): always remove splash screen 2022-08-25 18:00:44 +08:00
Peng Xiao
f296545ded Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-21 15:52:09 +08:00
Junyi Du
653b72211d chore: delete unused param at restore-config 2022-08-21 04:12:00 +08:00
Peng Xiao
45e04e952b Merge remote-tracking branch 'upstream/master' into whiteboards 2022-08-19 20:32:33 +08:00
Andelf
9560740e4b feat(mobile): add basic migration check for old mobile paths 2022-08-19 18:18:04 +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
b49cccb966 Merge remote-tracking branch 'upstream/master' into whiteboards 2022-07-29 12:44:00 +08:00
Andelf
8f30be684e fix(cards): only check when enabled 2022-07-26 22:46:22 +08:00
Peng Xiao
0a2688de83 feat: showing single block for blocks 2022-07-26 18:05:22 +08:00
Peng Xiao
bbcd710414 feat: preview whiteboard on page reference 2022-07-25 21:01:46 +08:00
Junyi Du
ee3ac7dd21 fix: blocking hooks when setup repo; recover diacritic e2e test (#5952)
* fix: blocking hooks when setup repo; recover diacritic e2e test

* test(e2e): update e2e test for the new selection UI
2022-07-13 21:30:17 +08:00
Andelf
97de299b04 fix(cards): update card count at 5s interval 2022-07-12 10:56:50 +08:00
llcc
7c8ae98911 fix save issues after iOS app re-installation (#5697)
* fix save issues after iOS app re-installation
* fix: ios installation id updates when switching graphs
* fix duplicated file-paths in db

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2022-06-14 18:22:40 +08:00
Gabriel Horner
6608537909 Move logseq.graph-parser.db* namespaces to their own dep
Also add its own CI file
2022-06-10 15:39:11 +08:00
Tienson Qin
781062a4ce fix: disable editing when the graph's directory is renamed or deleted
related to #5549
2022-06-06 18:05:48 +08:00
Gabriel Horner
83a4e62bfd Merge branch 'master' into enhance/graph-parser-part-four 2022-05-30 10:18:34 -04:00