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
Tienson Qin
85354ecda3
fix: icon select popover position
2023-10-04 18:57:44 +08:00
Tienson Qin
0e63baedef
enhance: add switch between page and class/property properties
2023-10-04 18:49:31 +08:00
Tienson Qin
10f6fa9f1d
fix: onClick not working in draggable element
2023-10-04 16:36:41 +08:00
Tienson Qin
19e3f5f217
fix: dnd animation
2023-10-04 09:54:33 +08:00
Tienson Qin
b44e4d7d1f
Use dnd-kit instead of beautiful-dnd
2023-10-04 09:54:33 +08:00
Gabriel Horner
8541f85389
validation script can now validate multiple graphs
...
Also improved schema to differentiate between pages and a couple
types of blocks
2023-10-03 17:53:12 -04:00
Gabriel Horner
a0441f3ddf
enhance: move db-based recent pages and search to local storage
...
These read-only actions were saved to datascript storage and would
cause needless conflicts for multiple users
Fixes LOG-2833
2023-10-03 10:58:19 -04:00
rcmerci
38d861e0e0
enhance(rtc): update schema, fix download-graph
2023-10-03 22:31:22 +08:00
Tienson Qin
b3e95ef52f
enhance: add list-none class to reorder ul
2023-10-03 20:17:28 +08:00
Tienson Qin
ec81eaeb67
fix: sometimes reorder :to could be empty
2023-10-03 20:12:26 +08:00
Tienson Qin
0fa171b942
enhance: ensure reorder doesn't result in data-loss
2023-10-03 20:03:09 +08:00
Tienson Qin
a8e7bdc37f
enhance: enable reorder for class properties
2023-10-03 19:57:14 +08:00
Tienson Qin
afec3dc4d6
enhance: use beautiful-dnd for enum type values
2023-10-03 15:07:30 +08:00
Tienson Qin
51c7f6319b
enhance: replace favorites with beautiful dnd
2023-10-03 14:52:54 +08:00
Tienson Qin
9ed6ed4006
enhance: add react-beautiful-dnd
2023-10-03 13:40:21 +08:00
Tienson Qin
5153b81004
fix: diff position when click-to-edit
2023-10-03 07:57:27 +08:00
Tienson Qin
801f7861e2
fix: multiple popovers for property values
2023-10-03 07:39:04 +08:00
Gabriel Horner
b66bde0230
Merge branch 'master' into feat/db
2023-10-02 17:09:53 -04:00
Gabriel Horner
8df7c37245
disable nlp-date? property in db graphs
...
We have date properties in db graphs and users should be using them
instead of this poor performing approach
2023-10-02 16:44:03 -04:00
Gabriel Horner
4b0100cb25
chore: cleanup page-property file based ns
...
All of frontend.util.page-property was file based except for one line.
Moved that ns to a file-based ns and moved the line out to the more
appropriate property-handler
2023-10-02 15:59:43 -04:00
Gabriel Horner
fceb6ddb72
chore: split up page-handler into file-based, db-based and graph
...
Did this cleanup as I noticed that multiple fns were checking if they are in a
db context when they didn't need to. By organizing these namespaces, the
db and file versions will be easier to maintain.
While doing this refactor, I didn't change any logic except for removing
unnecessary db-based-graph? checks. Also renamed a few fns to remove
redundant file- and db- prefixes
2023-10-02 14:32:02 -04:00
Gabriel Horner
2410fc243f
fix: page rename doesn't handle capitalization
...
Didn't work for renaming to other page or same page
close LOG-2814
2023-10-02 13:33:48 -04:00
Gabriel Horner
023d0af8db
fix: display properties if they are only hidden ones
...
If a page or block only had a hidden property like public, we couldn't
see it
2023-10-02 09:28:57 -04:00
Tienson Qin
38c96018b5
enhance: display enum icon in block's title only if it has a value
2023-10-02 20:56:05 +08:00
Tienson Qin
233b5fc1c8
enhance: display icon for enum items
2023-10-02 20:49:24 +08:00
Tienson Qin
583d2898c3
fix: one scrollbar for search result
2023-10-02 19:05:01 +08:00