Tienson Qin
c3e002aade
fix: search for porperty block values leads to hidden page
...
Fixes LOG-2647
2023-10-11 13:11:33 +08:00
Gabriel Horner
ccc0bf9bad
Add validation for property values
...
Reuse schema for property types and values from frontend. Moved into db
deps as it will soon be needed for a db namespace. Also tweaked schema
for :template type
2023-10-10 17:31:30 -04:00
Tienson Qin
b586cebe01
fix: can't edit property value
2023-10-11 02:39:05 +08:00
Tienson Qin
e7ea9a0705
fix: don't set property type when adding new class property
...
Since property's type now is immutable
2023-10-11 00:53:51 +08:00
Tienson Qin
beee1df4a8
fix: keep editing after tagging a page
2023-10-11 00:46:47 +08:00
Tienson Qin
d4420bed82
fix: block selection when there're page/block embeds
2023-10-11 00:46:47 +08:00
Tienson Qin
bc422b1718
fix: move a child to its parent of parent
2023-10-11 00:46:47 +08:00
Tienson Qin
f2db3a3caa
fix: can't insert child for the root block
2023-10-11 00:46:47 +08:00
Tienson Qin
05ed468767
remove unnesessary fragment
2023-10-11 00:46:47 +08:00
Tienson Qin
7138be295f
remove :blocks-container-id usage
2023-10-11 00:46:47 +08:00
Tienson Qin
d9ab81e00d
enhance: use block dom node for editing instead of container
2023-10-11 00:46:47 +08:00
Gabriel Horner
e6b605e8e5
fix: only confirm property deletion for class schema properties
...
Deleting any normal block/page property shouldn't require double
clicking
2023-10-09 14:08:54 -04:00
Gabriel Horner
ae716143e3
fix: new property should save without error
...
Also cleaned up duplicate label approaches for property type
2023-10-09 13:55:53 -04:00
Gabriel Horner
32e9e6c06d
fix: malli db schema for blocks having object
...
also updated object-page to require tags
2023-10-09 12:24:41 -04:00
Gabriel Horner
3ebcfcd3d2
fix: hidden pages showing up in all pages and probably other places
...
Also updated schema to reflect new multi-line :default prop vals
implementation
2023-10-09 11:44:03 -04:00
Tienson Qin
5f6e2596e8
enhance: make property type immutable for db safety
2023-10-09 21:30:51 +08:00
Tienson Qin
9a69518e96
enhance: create only one child block when press Enter
2023-10-09 20:56:45 +08:00
Tienson Qin
f56b37d9bc
fix: add hidden pages for blocks created from properties
2023-10-09 20:48:01 +08:00
Tienson Qin
d9f59f863d
fix: page icon
2023-10-09 14:48:39 +08:00
rcmerci
0dc941f1c5
feat(rtc): sync :block/properties
2023-10-09 14:12:30 +08:00
rcmerci
4c64fd5a4b
fix(rtc): block/schema from remote
2023-10-09 14:12:30 +08:00
Tienson Qin
683e90abf6
enhance: mod+enter to create tagged block instead of page
2023-10-09 01:49:14 +08:00
Tienson Qin
9d291e02c2
fix: center align date values
2023-10-09 01:39:33 +08:00
Tienson Qin
00445910c7
fix: both tagged blocks and pages are objects
2023-10-09 00:43:36 +08:00
Tienson Qin
1dbcc2bc3f
fix: blockref e2e tests
2023-10-09 00:08:12 +08:00
Tienson Qin
ffcc656d1a
fix: fs e2e test
2023-10-08 22:00:29 +08:00
Tienson Qin
646975cef7
fix: reactive blocks refs count
2023-10-08 20:49:08 +08:00
Tienson Qin
930b384db7
fix: add keyboard delay to make selection works for e2e test
2023-10-08 19:54:27 +08:00
Tienson Qin
621d88f17c
don't validate db for yarn test
2023-10-08 19:18:26 +08:00
Tienson Qin
307258343e
fix: lint warnings
2023-10-08 19:14:25 +08:00
rcmerci
7ed5b551d9
feat(rtc): support :block/properties
2023-10-08 16:51:25 +08:00
Tienson Qin
bfb97390fb
fix: auto-save block will quit editing when tagging a page
2023-10-08 12:26:49 +08:00
Tienson Qin
17ae9d337f
fix: lint
2023-10-08 12:12:00 +08:00
Tienson Qin
fe678ea3ad
fix: delete blocks if their parent property is going to be deleted
2023-10-08 11:34:08 +08:00
rcmerci
1fc6251fde
enhance(rtc): add op-schema for :block/properties
2023-10-07 14:20:44 +08:00
Gabriel Horner
df8f16ba2c
add validation for internal and user properties
...
by reusing existing schema-types for db properties
2023-10-06 15:18:37 -04:00
Gabriel Horner
83e9cda446
fix: new properties that didn't have :block/journal?
...
Some page queries depend on the existence of this attribute including
graph view ones. This was caught by the validation script. After the fix
all pages have this attribute. Creation scripts also updated to use
standard timestamp approach
2023-10-06 12:29:33 -04:00
Gabriel Horner
e9c6fee11a
Improve db schema with different page types
...
Also improved group-errors option, addressed some attributes that hadn't
been typed yet and fixes multi-arity attributes
2023-10-05 16:49:33 -04:00
Gabriel Horner
5ebe0861a5
fix: tagged with section shows case sensitive name
2023-10-05 10:52:46 -04:00
Gabriel Horner
47794b6b7a
fix(regression): Newly created classes display page properties as class properties
2023-10-05 09:59:07 -04:00
Gabriel Horner
05390f66e9
update db schema since multi-line :default properties have no left or parent
2023-10-04 17:15:53 -04:00
Gabriel Horner
a2a7f47057
add group-errors option to validation script
...
Reduces error noise and helped fix last two bugs.
Also improved schema by making left, parent and format
required for all normal blocks
2023-10-04 16:09:51 -04:00
Gabriel Horner
a19806839c
fix: blocks shouldn't have journal attributes
...
only pages should. Found no use for them in db graphs. TBD if they are
needed in file graphs. Part of LOG-2818
2023-10-04 12:59:17 -04:00
Gabriel Horner
4c525814b9
fix: some blocks didn't have timestamps
...
blocks created using editor-handler/api-insert-new-block! didn't have
timestamps. This includes quick capture and dummy blocks but there were
more cases this bug would occur since this was missing at the
outliner.core level
The dummy block can now be removed from the schema b/c it only existed
because it didn't have timestamps
2023-10-04 11:28:52 -04:00
Gabriel Horner
2f9e304e91
fix wording and remove unused data attributes
2023-10-04 09:46:48 -04:00
Tienson Qin
78a3acf587
fix: select classes
2023-10-04 21:38:20 +08:00
Tienson Qin
5d8391e8d0
fix: property name in configuration
2023-10-04 20:55:21 +08:00
Tienson Qin
85d1a82340
fix: cleanup block parents created from properties when reset value
2023-10-04 20:53:08 +08:00
Tienson Qin
54a41b6910
fix: can't edit page properties for classes
2023-10-04 19:50:16 +08:00
Tienson Qin
86bc8ec9d6
enhance: delete property ux
2023-10-04 19:18:20 +08:00