Commit Graph

405 Commits

Author SHA1 Message Date
Tienson Qin
9b34aec950 fix: config cleared if passed content is nil
Fixed #6701
Fixed #6700
2022-09-13 22:05:40 +08:00
Tienson Qin
19d6e9727f fix: document/mode? is in state not in config 2022-09-08 12:34:27 +08:00
Tienson Qin
56668eeaef fix: subs dependencies 2022-09-08 12:34:27 +08:00
Gabriel Horner
7ade955df7 Additional polish and fixes
- fix two bugs with subs - didn't have global config and missing merge
- explicit re-watch for global config
- more docs
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
cbcc19309d Organize frontend.state into config, subs and everything else
Everything else is purposefully last to expose some state that config
and subs were implicitly relying on. Also noted some TODOs that
would help with state usage
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
Gabriel Horner
095a4ef1cd Save global config edits
Also alert user if write fails
2022-09-08 12:34:27 +08:00
Gabriel Horner
9c0bb02dcd Can access read global config file from UI
Only for reload case
2022-09-08 12:34:27 +08:00
Tienson Qin
e9ee940873 fix: don't start sync if not logged in or it's not a remote graph 2022-09-05 10:37:06 +08:00
Tienson Qin
e008a38540 fix: cloud icon is not shown when restarting the app 2022-09-01 19:59:43 +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
Tienson Qin
9ac8bf98e1 feat: introduce :block/content-max-length for better performance for
both searching and editing.
2022-08-31 23:02:19 +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
fac1180a07 fix: disallow cutting blocks when find in page 2022-08-24 16:47:49 +08:00
Tienson Qin
b6b9f5e665 feat: find in page on electron 2022-08-24 16:47:49 +08:00
charlie
5815f37df1 improve(api): expose more values for user configures 2022-08-22 21:54:17 +08:00
Konstantinos Kaloutas
bc21daee88 enhance: context and dropdown menu 2022-08-22 19:07:40 +08:00
Tienson Qin
ca7b86f082 perf: sub selected block 2022-08-15 21:58:46 +08:00
Tienson Qin
39e2f0ac1c fix: shift-select up 2022-08-15 21:58:46 +08:00
Tienson Qin
21603f9d1d fix: distinct blocks when sort by left 2022-08-15 21:58:46 +08:00
Tienson Qin
6bbbccd942 fix: a react component might have multiple reactive queries 2022-08-15 21:58:46 +08:00
Tienson Qin
ca1c4ee479 fix: delay custom queries 2022-08-15 21:58:46 +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
Gabriel Horner
01c8f41b61 search-remove-accents config should default to existing behavior
Also start a default-config to start a data-first approach
to config
2022-08-02 12:48:45 -04:00
Andelf
271700ec02 Merge branch 'master' into fix/search-remove-accents 2022-08-02 12:14:24 +08:00
maxweilun1989
85acd60b9c fix: recent in sidebar do not remember it's state (#6144)
* fix: recent in sidebar do not remember it's state

* fix: recent in sidebar do not remember it's state

* fix: store the collapsed state of navigatin item in left side bar

* enhance: use react to handle toggling

Co-authored-by: Junyi Du <junyidu.cn@gmail.com>
2022-08-01 11:16:40 -04:00
maxweilun1989
15a0f19a82 fix: add :feature/enable-search-remove-accents 2022-07-27 18:34:01 +08:00
Andelf
60c559bb24 fix(cards): only check when enabled 2022-07-26 22:46:22 +08:00
llcc
961fde743e only update toolbar when keyboard re-displays 2022-07-12 09:56:37 +08:00
Tienson Qin
139075e679 fix: suggestions from gabriel 2022-07-07 01:42:16 +08:00
Tienson Qin
ecb2024c14 fix: lint warnings 2022-07-07 01:42:16 +08:00
Tienson Qin
7b74117d85 enhance: auto-complete for property values 2022-07-07 01:42:16 +08:00
Tienson Qin
5d7925115d fix: rename related properties when renaming the page 2022-07-07 01:42:16 +08:00
Tienson Qin
49acb54178 feat: add properties as linked references 2022-07-07 01:42:16 +08:00
Tienson Qin
7c7312d830 refactor: cursor positions 2022-07-07 01:42:16 +08:00
Tienson Qin
6d0be829a1 refactor: unify :editor/show-xxx and (block) commands to :editor/action 2022-07-07 01:42:16 +08:00
Tienson Qin
f6ead67b23 fix: selection 2022-06-22 03:30:22 +08:00
Charlie
7c4d7cd61a improve(plugin): fetch marketplace plugins list via system proxy if no proxy configured. (#5716) 2022-06-20 10:33:35 +08:00
Tienson Qin
f8ace0bc8d enhance: simplify copied state 2022-06-16 16:35:56 +08:00
Tienson Qin
a79880eb83 enhance(ux): shift select after esc 2022-06-16 05:49:59 +08:00
charlie
6029a2998f improve(plugin): pin or unpin for plugin ui button from toolbar 2022-06-16 01:43:49 +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
Tienson Qin
b7ae3684be fix: notify graph dir is gone when starting or running the apps
Also, disabled both re-index and refresh when logseq detects that
a graph's dir doesn't exists anymore.
2022-06-13 19:16:34 +08:00
Tienson Qin
7d3a536bc8 enhance: press Shift to select without entering editor mode 2022-06-13 18:57:26 +08:00
Tienson Qin
1857f884d2 feat: toggle displaying flashcards 2022-06-09 17:35:04 +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
Tienson Qin
4ff98966da fix: copy paste
related to #5561
2022-06-06 13:21:57 +08:00
Tienson Qin
f49a28fa7b Merge pull request #5420 from logseq/enhance/graph-parser-part-four
Enhance: Finish up graph-parser
2022-06-02 10:00:30 +08:00
Tienson Qin
8bd278ea44 fix: cannot paste at middle of some text
related to #5501
2022-06-01 02:11:24 +08:00