Commit Graph

9598 Commits

Author SHA1 Message Date
Tienson Qin
ecc322cdcf wip: replace sqlite-db with official sqlite-wasm 2023-12-07 20:27:21 +08:00
Tienson Qin
1d1807e5aa Add sqlite-wasm 2023-12-06 23:06:40 +08:00
Tienson Qin
95c5c09f39 remove unused vars 2023-12-06 17:00:06 +08:00
Tienson Qin
678d5c8ee6 Remove page content search 2023-12-06 15:13:25 +08:00
Tienson Qin
75c010e1c3 WIP: use OPFS db for electron 2023-12-06 15:03:29 +08:00
Tienson Qin
ea3f5973b7 Merge branch 'feat/db' into feat/datascript-storage 2023-12-06 01:10:23 +08:00
Gabriel Horner
34d2b3c234 fix: don't show closed value editing in publishing
Also allow class and page properties to be styled differently
2023-12-05 11:17:36 -05:00
Tienson Qin
1b2a3cc1c1 fix: tests 2023-12-05 19:48:29 +08:00
Tienson Qin
3df099a15e fix: don't retract attributes for db if block content is not updated 2023-12-05 18:07:48 +08:00
Tienson Qin
67fd609170 fix: typing a normal page as a tag silently changes its page type
User can choose to create either a page or a class with '#' now.
FIXES LOG-2742
2023-12-05 17:31:21 +08:00
Tienson Qin
3bae1cae12 fix: a non-journal home page is empty on initial graph load
FIXES LOG-2813
2023-12-05 13:57:05 +08:00
Gabriel Horner
e847c0899a enhance: bring back built-in properties using closed values
Fixes LOG-2903. Also fixed a bug with logseq.color property
not working with latest accent color
2023-12-04 17:29:41 -05:00
Tienson Qin
87a741cad2 fix: exit editing after creating text block 2023-12-05 01:52:31 +08:00
Tienson Qin
fb9e1057fa chore: remove react/db-graph? 2023-12-05 01:29:05 +08:00
Tienson Qin
7dfbecb3e2 fix: query state should never be cleared for db graphs 2023-12-05 01:16:55 +08:00
Gabriel Horner
2554016d63 enhance: make closed values scriptable
Added closed value examples of all 5 property types
to properties graph. Part of LOG-2903
2023-12-04 10:11:52 -05:00
Tienson Qin
e04a5b4316 Merge branch 'master' into feat/db 2023-12-04 20:47:37 +08:00
Tienson Qin
d6e5e2b0b4 fix: tests 2023-12-04 20:31:39 +08:00
Tienson Qin
336c6cfd08 fix: lint warnings 2023-12-04 20:12:49 +08:00
Tienson Qin
00b11d6cb0 Add db-based model tests 2023-12-04 20:07:52 +08:00
Tienson Qin
aff14668fc Add page rename tests 2023-12-04 18:15:47 +08:00
Tienson Qin
f4309bdc2b Add recents test 2023-12-04 17:08:21 +08:00
Tienson Qin
dae27861d2 Finish db-based property tests 2023-12-04 16:44:01 +08:00
Tienson Qin
fbb8f96191 fix: tests 2023-12-04 16:26:12 +08:00
Tienson Qin
e6bc77e8b5 Add text block test 2023-12-04 16:07:39 +08:00
Tienson Qin
c2a216e4e1 Add closed values related tests 2023-12-04 15:15:15 +08:00
Tienson Qin
5761f206be Add Posthog instrument when failed to refresh access token (#10625)
* Add posthog instrument when refresh token failed

* Add user-id to instrument

* fix: clear tokens iff oauth2/token returns 400 and invalid_grant
2023-12-03 23:10:22 +08:00
Tienson Qin
ecde2c3bfc fix: cross-platform shotcuts (#10590)
This PR also simplifies the implementation of shui/shortcut a lot.

* fix: consistent char for the Enter key

* fix: show ctrl instead of ⌘ for copy ref

* fix: "Ctrl" should be split from "Ctrl X"
2023-12-03 12:40:08 +08:00
Andelf
a81ec6e215 fix(recents): zoomed block uuid should not be added to recents 2023-12-03 12:07:51 +08:00
Andelf
871f58e96b fix(cmdk): avoid using uuid from recents 2023-12-03 12:07:51 +08:00
ROCKTAKEY
7525689bfb Update Japanese translation (#10612)
* enhance: Update Japanese translation
* Update src/resources/dicts/ja.edn

---------

Co-authored-by: Andelf <andelf@gmail.com>
2023-12-02 10:52:54 +08:00
Gabriel Horner
045a59ea10 fix: slides don't work on published sites that aren't under '/'
Fixes https://github.com/logseq/publish-spa/issues/11
2023-12-02 10:49:36 +08:00
Gabriel Horner
cce2ba50ed fix: slides don't work on published sites that aren't under '/' 2023-12-01 13:53:50 -05:00
Gabriel Horner
b48f69b80b fix: assets not loading on published graphs that arent under / 2023-12-01 13:37:55 -05:00
Gabriel Horner
86928f9881 fix: can't select number closed values 2023-12-01 12:04:15 -05:00
Gabriel Horner
1f6f166d27 fix: page closed value crashing at beginning of block 2023-12-01 09:26:45 -05:00
Gabriel Horner
1669baa054 fix: existing closed values being deleted by property config changes
Also fixed delete sometimes being out of sync with property-schema
state. Fixes LOG-2954
2023-12-01 08:48:40 -05:00
Gabriel Horner
3d767b7167 fix: added closed values don't get deleted by other property config
part of LOG-2954
2023-11-30 18:06:59 -05:00
Gabriel Horner
cfe8d809b8 fix: changing property shouldn't lead to invalid closed values
To reproduce, create a :default property with two closed values. Change
to url type, the previous closed values would stay on and would be
invalid when selected. Also added a tippy so users are aware that
changing types can alter their existing config
2023-11-30 16:57:36 -05:00
Gabriel Horner
0ffce18d15 chore: rename property.type vars
- renamed schema-type to property-type as its not
  a type of schema and schema is an ambiguous context
  as it also applies to a class
- renamed builtin to built-in to be more correct
2023-11-30 16:26:44 -05:00
Gabriel Horner
f5e339293f fix: add validation for property types and :schema attributes
Part of LOG-2953. We shouldn't persist unusuable property type
configurations as shown by this bug. By enumerating what schema
attributes are allowed for each type, we can prevent future bugs
like this. When changing between property types, this also cleans up
:classes, :position and :values that were accidentally hanging around
for certain types. Also modify test since we don't allow users
to use a :default property with :cardinality
2023-11-30 16:24:11 -05:00
Tienson Qin
7ec93f0f16 fix: result safety check 2023-11-30 22:31:27 +08:00
Tienson Qin
47082c8a16 fix: do not hide shortcuts in the search modal
Fixes #10575
2023-11-30 22:31:27 +08:00
Tienson Qin
77880cdd15 fix: pressing alt prevent search modal close
Fix #10577
2023-11-30 22:31:27 +08:00
Tienson Qin
5418e6bdce fix: lint warning 2023-11-30 22:31:27 +08:00
Tienson Qin
15520964dd fix: lower-case page name in search recents
Close #10574 #10576
2023-11-30 22:31:27 +08:00
Tienson Qin
567fb31148 fix: remove built-in properties from search results
Close #10573
2023-11-30 22:31:27 +08:00
charlie
416e1477f9 fix(ui): incorrect background color for the left sidebar on mobile #10572 2023-11-30 18:11:28 +08:00
charlie
9e8cc6efb4 fix(ui): alignment of the references & hierarchy container from right sidebar 2023-11-30 17:52:44 +08:00
charlie
1fdcdbe454 fix(ui): incorrect background color of the references blocks item container 2023-11-30 17:52:44 +08:00