Commit Graph

148 Commits

Author SHA1 Message Date
Tienson Qin
8915818c3f fix: UI not refreshed on iOS 2022-09-13 22:13:38 +08:00
Tienson Qin
9b34aec950 fix: config cleared if passed content is nil
Fixed #6701
Fixed #6700
2022-09-13 22:05:40 +08:00
Gabriel Horner
f157490d61 3 fixes where global-config as incorrectly called for non desktop
These issues were introduced with #6531. The global-config component
should not be called if not in a supported platform. This fixes
re-index, switching graphs and editing config.edn for mobile.  Switching
graphs was partially fixed in #6664 but didn't address the root cause
which is the global-handler component shouldn't be called if not enabled
for a platform
2022-09-13 12:25:41 +08:00
Tienson Qin
e5fd0b6529 perf: importing graph
There're two things makes the importing slow:
1. db transact! for each file, now it's batched for 100 files.
2. block waiting for 10s before parsing so that the progress bar ui
can be changed, this is batched too for 10 files.
2022-09-08 20:21:09 +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
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
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
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
Junyi Du
653b72211d chore: delete unused param at restore-config 2022-08-21 04:12:00 +08:00
Andelf
9746328e04 chore: rm debug print 2022-08-21 04:12:00 +08:00
Andelf
1cf71089bf Refactor path handling on mobile platforms (#6402)
* refactor(mobile): use unescaped uri across app
* refactor(android): use uri for all path
2022-08-19 18:18:04 +08:00
Andelf
938f504fff chore: rm debug print 2022-08-19 18:18:04 +08:00
Andelf
9146dad0a4 refactor: db content backup 2022-08-19 18:18:04 +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
bc69e7d5a1 Silence noisy parsing tests
Added :verbose option to repo-handler/parse-files-and-load-to-db!
2022-07-26 20:47:36 +08:00
Gabriel Horner
69ba15252e cli/parse-graph returns ast data as well
This data was not returned and is valuable for CI jobs
and possibly other functionality
2022-06-20 10:06:08 +08:00
Tienson Qin
fa7611bbae fix: unwatch the current listened dir first when refreshing 2022-06-13 19:16:34 +08:00
Tienson Qin
156b152129 fix: slow re-index for large graphs with page-metadata.edn
related to #5547
2022-06-13 17:43:24 +08:00
Gabriel Horner
83a4e62bfd Merge branch 'master' into enhance/graph-parser-part-four 2022-05-30 10:18:34 -04:00
Tienson Qin
7bf613348f fix: block reference metadata leaks into content
close #5453
2022-05-30 16:07:08 +08:00
Tienson Qin
06e932d130 refactor: listen to db changes for outliner pipeline 2022-05-30 12:16:46 +08:00
Gabriel Horner
b142327491 Finish up logseq.graph-parser
- Parser now parses all graph files like the app does, not just pages and journals.
  This required extracting another fn from repo-handler
- Add and tweak CI steps that are specific to graph-parser. All
  namespaces in this library are checked for nbb compatibility
- Cleaned up parser cli API so only one fn is needed for scripts
- Tests were updated to match new parsing behavior
- large_vars.clj can run with a smaller max-line-count after only refactoring two fns
- Add docs
2022-05-27 00:54:30 -04:00
Gabriel Horner
e999ebc149 Automatically set extract-options correctly
- Removed state paths [:config :text-formats], [:config :img-formats]
  and [:me :settins :date-formatter] as they have been unused since
  their introduction in 2020
- Converted incorrect js/Error refs
- Also merged db.config test helpers
2022-05-26 18:04:45 -04:00
Gabriel Horner
3bc2479181 First pass at main graph-parser ns
- Copied tests pass!
- Still a number of TODOs left
2022-05-26 18:04:45 -04:00
Gabriel Horner
b9bbd0c605 Finish migrating extract to nbb 2022-05-13 15:47:54 -04:00
Gabriel Horner
a832564782 Migrate most of extract ns to nbb 2022-05-13 11:52:35 -04:00
Tienson Qin
83569141fc feat: add encryption back 2022-05-09 22:15:30 +08:00
Gabriel Horner
85bd1fecb2 Move first batch of util fns to graph-parser.util
Still need to fix external.roam
2022-05-04 12:02:36 -04:00
Tienson Qin
b3f67c69b1 misc: delete both web github integration and encryption 2022-04-24 11:17:47 +08:00
Tienson Qin
a630983cdc fix lint warnings 2022-04-02 21:40:28 +08:00
Tienson Qin
b0999efa47 Switch back to blocks tree instead of virtual list for now 2022-04-02 21:40:28 +08:00
Andelf
b260648b60 feat(ios): add polling based file watcher 2022-03-04 18:03:33 +08:00
Tienson Qin
2e5ac247a2 fix: lint warnings 2022-03-01 23:07:45 +08:00
Tienson Qin
218bb04bd2 fix: notify broken config and restore to the default configuraiton 2022-03-01 23:07:45 +08:00
leizhe
86ea102b89 fix(android): app crashes 2022-02-20 23:41:02 +08:00
Tienson Qin
ee9b52248e Performance improvement: incremental queries (#4002)
Incremental queries
2022-02-17 20:26:03 +08:00
Tienson Qin
1870f44f9a fix lint warnings 2022-02-08 15:50:54 +08:00
Tienson Qin
faea913a40 enhance: cut memory usage 2022-02-08 15:49:09 +08:00
Gabriel Horner
54420c9a5d Address review feedback 2022-01-28 10:48:44 -05:00
Gabriel Horner
86868f1e15 Remove few more fns 2022-01-27 14:11:59 -05:00
Junyi Du
37f08d96e1 enhance: normalize all paths in app 2022-01-20 10:33:50 +08:00
Junyi Du
e1eb17c2a5 fix: datomic error blocks file watching 2022-01-17 11:33:46 +08:00
Gabriel Horner
3ec587d6eb lint :all-the-things: 2022-01-16 12:42:34 +08:00
leizhe
206c3a6e2a fix(iOS): css customization support 2021-12-30 00:32:36 +08:00
Tienson Qin
2e54aabc3e fix: namespace References are not always rendering
close #3620
2021-12-28 16:14:23 +08:00
Tienson Qin
8de131c0e1 fix: separate loading status for different graphs 2021-12-21 23:05:28 +08:00
Tienson Qin
d3f0bd5fa4 fix: Problem keeping separate graphs separated
close #3309
2021-12-09 22:40:50 +08:00
Tienson Qin
77ce2d8eaa fix: empty block not deleted when there's new file detected from
the disk.

close #3387
2021-12-09 12:15:02 +08:00