Commit Graph

314 Commits

Author SHA1 Message Date
rcmerci
4f3d26c2ca fix: FileMetadata, <get-local-files-meta, <get-local-all-files-meta 2022-09-06 20:27:16 +08:00
Tienson Qin
cc66195b58 fix: remove monitor-dirs 2022-09-03 19:31:17 +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
Junyi Du
8dfa8dfb49 fix: CJK hashtag update failure 2022-08-25 22:07:09 +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
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
0301fd3173 Print log messages and setup custom test runner
Got tired of getting bit by catch statements and no logging printing.
Moved frontend to a custom test runner as we may eventually need the
node-test-runner for other apps/builds
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
Phoenix Eliot
bb199c4de5 Fix wrapped-by? utility function
Improve readability of test failures, add more unit tests
2022-08-11 22:58:51 +08:00
Tienson Qin
eeb827a1d3 fix: performance degrading for nested linked references
Fix #6316.

This commit also fixed the issue that toggle block children doesn't
work sometimes.
2022-08-11 16:38:00 +08:00
Andelf
52b7a5e203 test(e2e): add test case page name
fix: lint
2022-08-08 13:34:47 +08:00
Tienson Qin
b6be007d98 fix: don't replace _ for the page name if it's not a local asset 2022-08-08 13:34:47 +08:00
Gabriel Horner
8be0deecd0 Move markdown property colons into a var 2022-08-04 17:25:29 +08:00
Gabriel Horner
b66ec9cd9f Add tests to confirm property completion fix
Move current-line to specific clause for performance as fn is run on every keystroke
2022-08-04 13:43:10 +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
8N9KT
b7cd440144 fix private functions test 2022-07-28 18:35:56 +02:00
8N9KT
7d6ecdf645 add test remove-links-for-each-level-of-the-namespaces 2022-07-28 15:27:59 +02:00
Gabriel Horner
6a64cdf4b3 Fix tag completion at start of line or whitespace before cursor 2022-07-26 20:47:36 +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
5f8a4ed0bf Don't autocomplete tags within backtick Fix #6135
Also fix autocompleting while cursor is part of a word
2022-07-26 20:47:36 +08:00
Gabriel Horner
f5bc4c12bd Remove stray :focus test flag 2022-07-25 13:53:27 -04:00
8N9KT
66108ac9e4 add test for get-pages-that-mentioned-page
- add test for get-pages-that-mentioned-page with show-journal paramenter
- comment deleted
2022-07-25 17:55:42 +02:00
Martin Scott
1d0fa763a5 Revised format directives and mixed number format
Also changed output of non-decimal numbers to use base prefixes.
2022-07-19 10:25:26 +01:00
Martin Scott
7c11de885b Add fraction display mode
Support for showing results as fractions (mixed numbers or improper) and entering mixed numbers.
2022-07-18 01:04:48 +01:00
Martin Scott
a4b79ffe4f Fix tests
Compare output strings based on input lines.
2022-07-18 00:49:59 +01:00
Martin Scott
70c04e34bf Add operations, display formats, constants and bases
New operations:
- factorial operator `!`;
- modulo operator `mod`.

Constants added:
- `PI`
- `E`

New display format controls:
- `:fix <places>` display format;
- `:sci <places>` display format;
- `:norm <display-precision>` display format;
- `:hex`, `:oct`, `:bin` and`:dec` display formats.

New number formats:
- Enter hexadecimal, octal and binary numbers using `0x`, `0o` and `0b` prefixes respectively.

Bugs fixed:
- Loss of precision when supplying numbers in scientific notation.
2022-07-15 19:46:32 +01:00
playerofgames
8e2aa8415c Calculator: bug fixes for issue #5917, and feature additions (#5918)
* Calculator: bug fixes and feature additions

- Fix order of operations for negation and exponentiation;
- Support non-integer powers;
- Improve number parsing;
- Support comments;
- Add maths functions;
- More permissive variable naming;
- Store last result in 'last' variable.

* Fix lint warning

* Preserve last value across comments and empty lines

* Fix lint warning

* Use BigNumber operations to maintain precision

* Add conditional around pow call

* Split up long test

* Remove duplicate tests
2022-07-07 09:38:37 -04: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
49acb54178 feat: add properties as linked references 2022-07-07 01:42:16 +08:00
Jonas Diemer
385113f535 Adding tests for rounding errors 2022-07-06 19:55:49 +08:00
Tienson Qin
ec8109f8d0 Add more outliner core tests 2022-06-16 07:29:07 +08:00
Tienson Qin
58bf6ee640 fix: random block could be empty 2022-06-15 15:47:23 +08:00
Tienson Qin
a88a3c0405 fix: outliner core failed tests 2022-06-15 15:38:40 +08:00
Gabriel Horner
17d2462343 Move rules into db dep as it's useful for external apps
- rules is already used by logseq-query and will be useful for
  nbb-logseq
- Updated db jobs to run in deps/db by default. Less typing but
  more importantly discourages independent libraries from depending on
  external scripts.
- Moved lint-rules task into db since it is db specific now
- Also remove nbb-logseq from top-level as all nbb compatibility is in
  deps.
2022-06-10 15:39:11 +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
f4f1ff1ba2 fix: outdent blocks and re-enable outliner tests
related to #5604
2022-06-08 13:06:10 +08:00
Tienson Qin
09a9cda59c fix: re-enable outliner core random tests 2022-06-07 01:25:55 +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
5f21e2d07e fix: move blocks 2022-06-01 12:56:39 +08:00
Gabriel Horner
83a4e62bfd Merge branch 'master' into enhance/graph-parser-part-four 2022-05-30 10:18:34 -04:00
Tienson Qin
3c886f4330 Merge pull request #5374 from jonasdiemer/calc-pretty-floats
Calculator: improved output of float numbers
2022-05-30 18:19:26 +08:00
Tienson Qin
cc735fffc7 fix: tests 2022-05-29 16:31:17 +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
1e299052ce Setup cljs tests for graph-parser
- Also reuse docs graph test assertions to ensure main app
and graph-parser are in sync.
- Removed promesa from extract tests
since they are no longer async
- Added cljs and npm deps that were missing and caught by cljs tests
2022-05-26 18:04:45 -04:00
Gabriel Horner
15b8e5e9df Setup CI jobs that are only for graph-parser
Also move all non graph-parser fns to frontend thanks to carve lint
2022-05-26 18:04:45 -04:00
Gabriel Horner
4813d903d5 Move graph-parser to its own dir 2022-05-26 18:04:45 -04:00
Gabriel Horner
2b48d95493 Move frontend db namespaces that graph-parser depends on
graph-parser should be independent of the app
2022-05-26 18:04:45 -04:00