Commit Graph

2083 Commits

Author SHA1 Message Date
Tienson Qin
f459444a42 Merge branch 'feat/db' into enhance/code-type-block 2024-10-03 18:35:31 +08:00
Gabriel Horner
e74912c850 enhance: import advanced queries as query objects
Fixes LOG-3247. Handles migrating deprecated options and string and non-string titles
2024-10-02 16:19:52 -04:00
Gabriel Horner
9531811b68 fix: simple queries without properties not importing
Also handle query title for simple queries. Also loosened page-tags to
allow for future logseq class importing. Fixes LOG-3243
2024-10-02 12:23:22 -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
83c59128ad fix: db import imports simple queries with new query property
Part of LOG-3243
2024-10-01 16:57:18 -04: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
Konstantinos
e09db5de59 Enhance (dev): Tabler icons (#11468)
* handle tabler-icons resources

* test removing tabler-icons-react

* Revert "test removing tabler-icons-react"

This reverts commit ea2553628d.

* replace @tabler/icons-react with tablerIcons on dist file

* fix: incorrect global react variable for the tabler react library

---------

Co-authored-by: charlie <xyhp915@qq.com>
2024-09-30 11:33:01 +08:00
Tienson Qin
85aed16c4e fix: wrong page created 2024-09-28 15:59:49 +08: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
Gabriel Horner
a0d4e43d18 enhance: add /Advanced Query for db graphs
Related to
https://linear.app/logseq/issue/LOG-3246/improve-advanced-query-editor.
Had to upgrade promesa to get p/doseq
2024-09-26 10:55:50 -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
0dfb9fb8b5 fix: disallow a page from adding a class via parent property 2024-09-26 09:36:36 +08:00
Gabriel Horner
d4b7720573 fix: remove last {{query reference seen in db graphs
Also fix return val of previous commit
2024-09-25 14:24:02 -04:00
Gabriel Horner
30a652631d fix: incorrect return values when edn parsing fails for queries
safe-read-string assumed all parsed strings were maps by returning {}
on failure. This could lead to subtle bugs in our new query layer and
other non-map features like hiccup
2024-09-25 11:39:29 -04:00
Tienson Qin
374ebf7cea fix: don't create parent > child if a tag followed by a page
When creating a namespacing page.
2024-09-25 16:37:51 +08:00
Tienson Qin
d9cd07bc2e fix: logseq.property/query supports both dsl and datalog query 2024-09-25 06:37:49 +08:00
Tienson Qin
ac02648c33 fix: broken checkbox type 2024-09-25 05:49:00 +08:00
Gabriel Horner
f41ce9d6df fix: parser large var 2024-09-24 16:56:31 -04:00
Gabriel Horner
4eded5264d fix: typing {{query is deprecated
and no longer creates tagged node. Related to #11540
2024-09-24 16:38:51 -04:00
Gabriel Horner
0c9c34d367 chore: consistently capitalize new class 2024-09-24 16:10:46 -04:00
Tienson Qin
0641490fc8 fix: graph-parser tests 2024-09-25 02:12:45 +08: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
aba71115bc feat: batch set property for selected blocks 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
aba8080271 fix: db pages can't have parent char
renaming a page to include '/' resulted in that page being
a name you couldn't type as '/' is reserved for parent/namespace
2024-09-23 14:54:37 -04: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
b2e69dd846 fix: lint 2024-09-23 17:26:03 +08:00
Tienson Qin
250d7303d1 fix: disallow renaming normal pages to journals
fixes https://github.com/logseq/db-test/issues/118
2024-09-23 17:14:39 +08: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
f494ef9786 fix: "/" page error 2024-09-21 09:51:22 +08:00
Tienson Qin
7e26022c8b Merge branch 'feat/db' into feat/namespace 2024-09-21 07:44:53 +08:00
Gabriel Horner
fdc0ca58d4 fix: changing tag cases should not break their identity
Fixes logseq/db-test#83. Also add a handy log to toggle when tracing sources
of ui bugs
2024-09-20 16:11:39 -04:00
Tienson Qin
8d1d5363a0 Merge branch 'feat/db' into feat/namespace 2024-09-20 20:34:21 +08:00
Gabriel Horner
27c5d120ef fix: import fails hard on page names with '#'
Follow up to c3f0cc1953
2024-09-19 14:57:18 -04:00