Gabriel Horner
0f4cdbbadf
bump outdated nbb-logseq and fix lint
2023-12-11 15:55:38 -05:00
Gabriel Horner
fb3e8e8d8a
fix: update ds sqlite persistance to match latest frontend
...
also removed unused util fns
2023-12-11 13:52:26 -05:00
Gabriel Horner
e0901b9d04
bump nbb-logseq to first version
...
that works for forked datascript. Deps tests pass locally
without needing to rely on local builds
2023-12-11 13:52:15 -05:00
Gabriel Horner
b5eabc80ee
fix: db and graph-parser nbb tests to pass locally
...
Updated sqlite fns to use updated approach. Deleted some unused
fns from old approach
2023-12-11 13:51:47 -05: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
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
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
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
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
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
47082c8a16
fix: do not hide shortcuts in the search modal
...
Fixes #10575
2023-11-30 22:31:27 +08:00
Gabriel Horner
d218db4e6f
fix: fixes bug with unusuable :default property
...
Part of LOG-2953. Also fixes bug when a new property first displays
configure modal and incorrectly shows cardinality for :default property
2023-11-29 17:15:35 -05:00
Andelf
f1d763aa12
chore: comment out electron? feature gate
2023-11-30 02:29:08 +08:00
Gabriel Horner
1117ad3cb4
fix lint
...
also comment out print that prevented chaining query results with bb
2023-11-29 10:14:53 -05:00
Gabriel Horner
6517f6f12a
Merge branch 'master' into feat/db
2023-11-29 09:56:12 -05:00
Tienson Qin
e60ea3ac10
fix: remove debug assert
2023-11-29 21:03:52 +08:00
Gabriel Horner
548fa98605
enhance: allow CLI and github action to set color accent
2023-11-28 22:32:34 +08:00
Tienson Qin
86b70e3b33
update datascript
2023-11-28 15:10:43 +08:00
Tienson Qin
716c496590
Update datascript
2023-11-28 14:57:06 +08:00
Andelf
68bae90039
test(fs): add unittests for new fn
2023-11-28 02:39:52 +08:00
Andelf
3069f5d7e3
fix(fs): path-join testcase
2023-11-28 02:39:52 +08:00
Andelf
61a3c19176
fix(fs): windows unc path support
2023-11-28 02:39:52 +08:00
Gabriel Horner
5e547a1663
fix: open db graph urls
...
Also introduced var for logseq_db_ in deps
2023-11-27 10:55:22 -05:00
Tienson Qin
232c1cb4c2
wip: debug
2023-11-26 15:58:26 +08:00
Tienson Qin
a4c30bc62f
Works!!
2023-11-25 14:14:02 +08:00
Tienson Qin
a408f93b26
fix: db restore
2023-11-25 11:58:11 +08:00
Tienson Qin
6ff1207339
Replace data load and transact
2023-11-25 11:51:59 +08:00
Tienson Qin
b7ce9a7ca5
fix: add transact and datoms load
2023-11-25 11:22:59 +08:00
Tienson Qin
67cb8d6213
wip: persistent datascript storage on Electron
2023-11-25 10:49:01 +08:00
Tienson Qin
40bffa32b0
Use forked datascript
2023-11-25 09:12:59 +08:00
Gabriel Horner
6c5072e7e6
fix: property completion should only include properties
...
Was including classes and blocks with :block/schema. Also not
hiding icon property correctly. Also updated outdated docstrings
2023-11-22 12:29:57 -05:00
Gabriel Horner
f64f1461a3
enhance: make bb dev:db-transact usable for any task
...
closes LOG-2647. This task was used to update multiple graphs
that were now invalid with the removal of :block/type "object"
2023-11-16 16:40:35 -05:00
Gabriel Horner
cca80e37a7
fix: remove unused :block/type "object"
...
fixes LOG-2914
2023-11-16 14:50:21 -05:00
Andelf
60159eba87
enhance(db): use wasm-based sqlite storage
2023-11-16 21:15:25 +08:00
Gabriel Horner
d43fb23ef0
enhance: allow CLI and github action to set color accent
2023-11-15 16:37:03 -05:00
Gabriel Horner
b359694c4b
fix: multiple fixes for property validation
...
- couldn't use :default block property values
- couldn't add new closed number value
- couldn't select existing :page or :date closed values
- editor/CLI validation wasn't working - see failing db-graph-test job
- update schema for closed-value
Part of LOG-2871. Also fixed typo in ui.cljs
2023-11-15 14:55:57 -05:00
Tienson Qin
443eb3f2b8
fix: closed value validation
...
A closed value must be a UUID and exists in the predefined schema
values from its property.
Related to LOG-2871.
2023-11-15 22:58:05 +08:00
Gabriel Horner
86eb1b394d
fix: update schema for latest changes to closed values
...
part of LOG-2871
2023-11-14 16:08:03 -05:00
Tienson Qin
ee3442a44b
Merge branch 'master' into feat/db
2023-11-14 20:40:36 +08:00
Tienson Qin
6a47648c6c
Replace enum type with available choices ( #10438 )
...
* Add type schema for enum values
* Refactor: closed values instead of enum to limit values
There's no need to add the enum type, we just want to limit the
values.
* feat: :page type supports closed values
* fix: can't set property values for text/number types
* fix: don't trigger on-chosen when unmounting any select component
* fix: can't apply both page classes limitation and closed values
* fix: merge conflicts
* fix: ui not refresh when changing closed value
* fix: can't set icon for closed value
2023-11-14 18:48:34 +08:00
Tienson Qin
2a62767f34
chore: replace shui__ with ui__
...
Theme creators don't need to know about shui.
2023-11-13 22:39:53 +08:00
charlie
0e1295b142
fix(ui): shui button internal theme state
2023-11-13 21:57:16 +08:00
Tienson Qin
e4714668b9
fix: cmdk on mobile
2023-11-13 16:41:00 +08:00
Tienson Qin
eaadd462ff
fix: listitem hardcode css variable
2023-11-13 13:37:21 +08:00
Tienson Qin
80703328b0
fix: keyboard shortcuts style
2023-11-13 13:09:14 +08:00
Tienson Qin
96693439d0
Feat/cmdk radix tweaks ( #10493 )
...
* prefer --lx-gray-11
* Fix sidebar item color
* Update theme mode images
* Update shortcuts globally
* Assets updated to support radix
* fix: add missing keyboard-shortcut class
* fix: custom button background
* fix: lower case shortcuts
* chore: remove old shortcut list
* fix: shortcut ns
* enhance: shortcut accepts both sequence and string
* fix: shortcut remap ux
* fix: remove codemirror box shadow
---------
Co-authored-by: Ben Yorke <ben@yorke.io>
2023-11-12 20:43:10 +08:00