Tienson Qin
3acbed2731
chore: remove properties :file and :file-path from db graphs
...
The db version uses :logseq.property/asset.
2024-10-08 22:55:06 +08:00
Tienson Qin
550bf9d40a
fix: delete asset
2024-10-08 21:24:44 +08:00
Tienson Qin
d06eb5f8d4
fix: pdf area annotation
2024-10-08 18:51:17 +08:00
Tienson Qin
fe8345499a
fix: load pdf annotations and storing last visit page
2024-10-08 16:48:54 +08:00
Tienson Qin
7a7e22efdb
fix: pdf annotation navigation
2024-10-08 15:53:34 +08:00
Tienson Qin
6d093927b9
fix: use existing asset if checksum matches
2024-10-08 14:21:50 +08:00
Tienson Qin
998fc66132
Merge branch 'feat/db' into refactor/assets
2024-10-08 11:54:31 +08:00
Gabriel Horner
830c275d54
chore: use internal-page? helper
2024-10-03 11:52:23 -04:00
Gabriel Horner
f898fb5cca
fix: disallow more strange parent child relationships
...
when setting Parent property. property and journal shouldn't be a parent
of any page right now, especially with pages of other types. Maybe
property and whiteboard can have hierarchies later
2024-10-03 10:01:06 -04:00
Tienson Qin
deb3507bb0
enhance: copy code block
...
1. search and store code lang instead of mode
2. select uses frontend.components.select instead of shui input + auto-complete
2024-10-02 12:58:15 +08:00
Gabriel Horner
15fa327aec
fix: block attrs for db advanced queries
...
db graph advanced queries were fetching file graph attributes
2024-09-30 12:39:33 -04:00
Gabriel Horner
939dd23f79
chore: use test helpers across db tests
...
instead of copied and pasted versions
2024-09-27 14:54:03 -04:00
Tienson Qin
879a30593a
fix: slow query ux ( #11548 )
...
* enhance: intuitive query input
* fix: Manually editing Query property doesn't update its results
fix https://linear.app/logseq/issue/LOG-3249/manually-editing-query-property-doesnt-update-its-results
* fix: don't close popup when editing hidden property
* enhance: display query setting icon when hovering title
* Use block's title as query if its query is still empty
* enhance: display both simple and advanced query as below when not collapsed
2024-09-28 02:52:06 +08:00
Gabriel Horner
2b782c601b
chore: add db tests and start a logseq.db testing ns
...
Add acceptance test for newer validations and some useful unit tests for
untested fns at different layers
2024-09-27 14:28:30 -04:00
Gabriel Horner
476e641c1a
chore: rename property node/type to node/display-type
...
node can be a block or page and type is a general enough word that
it could refer to one of those. Use a more specific name so we
don't confuse ourselves or our users
2024-09-26 22:24:26 -04:00
Tienson Qin
17e808989a
wip: store assets as blocks
2024-09-26 22:50:58 +08:00
Tienson Qin
54f191c6c6
feat: code/quote/math block ( #11545 )
...
Add code, quote and math block
2024-09-26 14:14:20 +08:00
Tienson Qin
d9cd07bc2e
fix: logseq.property/query supports both dsl and datalog query
2024-09-25 06:37:49 +08:00
Gabriel Horner
0c9c34d367
chore: consistently capitalize new class
2024-09-24 16:10:46 -04:00
Tienson Qin
fb2cc14444
fix: don't parse parent from namespace pages
2024-09-25 01:54:42 +08:00
Gabriel Horner
a3ead39156
fix: parent ordering in page ref completion
...
Likely affected other features
2024-09-24 13:42:31 -04:00
Gabriel Horner
5167523521
fix: db tests and frontend+db lints
2024-09-24 13:10:32 -04:00
Tienson Qin
cfae1a8715
fix: inline namespace tag
2024-09-25 00:31:30 +08:00
Tienson Qin
cb0539ebec
fix: search nodes shows title with parents
...
This commit also removes parents from page reference display because
1. there're bugs when clicking to edit
2. this may not be users' expected behavior
2024-09-24 21:32:37 +08:00
Tienson Qin
394e4cbf11
fix: lint
2024-09-24 18:31:50 +08:00
Tienson Qin
263a2bf219
feat: add #Cards and :logseq.property/query
...
Some enhancements:
1. DSL query is a property value (:default type) for better UX.
2. Cards can be selected on the flashcards dialog.
2024-09-24 18:19:05 +08:00
Tienson Qin
a46b074ec4
fix: add fsrs properties to #Card
2024-09-24 18:19:05 +08:00
Tienson Qin
4d96a53afe
fix: add fsrs properties to migration
2024-09-24 18:19:05 +08:00
rcmerci
5130ec3fd2
refactor(srs): use :datetime type for :logseq.property.fsrs/due prop
2024-09-24 18:19:05 +08:00
rcmerci
ef2f79e2a1
refactor(srs): update some basic ui
2024-09-24 18:18:41 +08:00
rcmerci
ac752c8ba3
refactor(srs): update frontend.extensions.fsrs
2024-09-24 18:18:41 +08:00
rcmerci
ccf70a5cef
refactor(srs): use cljc-fsrs in db-version
2024-09-24 18:18:41 +08:00
Gabriel Horner
afe4280c6a
refactor: DRY up spread out definition of db's
...
namespace/parent feature. Following up to #11517 , provide vars
so it's clear how a feature is used and coupled throughout the codebase
2024-09-23 14:53:12 -04:00
Tienson Qin
c5c0f5d822
feat: add datetime type
2024-09-22 10:25:07 +08:00
Charlie
3e5890f9f6
enhance(ux):resize table columns ( #11537 )
...
* enhance(ux): add table column resizer
* Add migration for sized-columns
---------
Co-authored-by: Tienson Qin <tiensonqin@gmail.com >
2024-09-21 12:45:09 +08:00
Tienson Qin
8d1d5363a0
Merge branch 'feat/db' into feat/namespace
2024-09-20 20:34:21 +08:00
Tienson Qin
b37a268706
fix: lint and test
2024-09-19 19:46:30 +08:00
Tienson Qin
e7e579d3de
fix: pasting differently formatted dates disappear after entry
...
fixes https://github.com/logseq/db-test/issues/103
2024-09-19 18:39:02 +08:00
Tienson Qin
c3f0cc1953
fix: disallow # in page name
...
Because it creates ambiguity in some cases:
1. With cmd-k we can’t tell the difference between an Apple page
tagged with Fruit and a page named "Apple #Fruit"
2. What should we do with [[Apple #Fruit king]]?
3. Is `#` for Markdown heading or part of a page name?
Fixes https://github.com/logseq/db-test/issues/100
Fixes https://github.com/logseq/db-test/issues/106
Fixes https://github.com/logseq/db-test/issues/105
2024-09-19 06:31:26 +08:00
Gabriel Horner
ff10ca99bd
fix: consistently capitalize properties and classes
...
Also capitalize a page section like other sections
2024-09-17 16:49:41 -04:00
Gabriel Horner
be54ab98e6
fix: property simple queries by name
...
Maintains backwards compatibility for property filter queries
which fixes imported and handwritten property queries. Extended
sqlite.build and test-helper capabilities in order to test this.
Fixes LOG-3231
2024-09-17 14:39:30 -04:00
Gabriel Horner
9423eda275
fix: imported queries don't have #Query
...
Fixes LOG-3233. Also fix some test idents not being valid
2024-09-17 12:27:46 -04:00
Gabriel Horner
1a827476df
fix: mark all pages view as built-in?
...
Related to
https://github.com/logseq/db-test/issues/91#issuecomment-2352315001 .
We should mark a view as built-in if it's removal leads to broken
built-in functionality
2024-09-16 14:53:50 -04:00
Gabriel Horner
c8d43c2718
fix: users can't navigate to hidden or private built-in pages
...
Fixes https://github.com/logseq/db-test/issues/91 where user is creating
error states by accessing private built-in pages they shouldn't be able to access.
Also fixes https://github.com/logseq/db-test/issues/92#issuecomment-2352089389 where user could
navigate to hidden page
2024-09-16 12:51:37 -04:00
Gabriel Horner
b093d11666
fix: test without assertion
2024-09-16 08:43:49 -04:00
Tienson Qin
3001c88a7d
fix: nodes with multiple reference aren't replaced correctly upon
...
deletion of references
Fixes https://github.com/logseq/db-test/issues/71
2024-09-16 06:45:30 +08:00
Tienson Qin
23f8e9ca44
fix: Accessing date page from Graph View breaks Journals ( #11525 )
...
related to https://github.com/logseq/db-test/issues/80
2024-09-16 02:35:22 +08:00
Tienson Qin
ca7fc83048
fix: built-in? value shouldn't be edited
...
Related to https://github.com/logseq/db-test/issues/75
2024-09-15 18:28:48 +08:00
Tienson Qin
7b9acaa370
fix: lint
2024-09-15 12:36:30 +08:00
Tienson Qin
4a42168dc3
fix: tag inheritance only going one level deep
...
fixes https://github.com/logseq/db-test/issues/88
2024-09-15 12:29:23 +08:00