Gabriel Horner
8a1efa88bc
Fix datoms with false value not saving
...
To repro go to any non-journal page, view its page data and observe
that ':block/journal? false' was missing
2023-07-18 15:12:35 -04:00
Gabriel Horner
dc2707e398
Remove unused :page_uuid datoms
2023-07-18 13:38:30 -04:00
Gabriel Horner
25b9ca9781
Add feature flag for db graphs
2023-07-18 12:00:31 -04:00
Gabriel Horner
9310e9e449
Fix db lints
...
Split out a common fn from restore-initial-data to make it
more readable
2023-07-17 12:56:01 -04:00
Tienson Qin
4536a26456
fix: property editor not working if multiple block instances
2023-07-17 12:53:40 +08:00
Tienson Qin
b2d4671f0e
fix: merge pages for db based graphs
2023-07-15 12:25:28 +08:00
Tienson Qin
1832bdf2e8
fix: case-sensitive page rename
2023-07-15 11:17:00 +08:00
Tienson Qin
f76f2ac95d
fix: don't show empty page/block in the right sidebar
2023-07-15 11:08:17 +08:00
Tienson Qin
4d53f0d61f
fix: remove [[]] ref and property values when deleting a page
2023-07-15 10:49:50 +08:00
Tienson Qin
c2d8f650af
fix: select
2023-07-14 12:53:19 +08:00
Tienson Qin
dacda99a04
fix: path-refs not updated when editing properties
2023-07-14 11:59:05 +08:00
Tienson Qin
41ee9960da
fix: extract both page and block refs from properties
2023-07-14 11:41:15 +08:00
Tienson Qin
6e16f2b073
fix: New graph creates accidental page from last graph's page
2023-07-13 15:32:14 +08:00
Tienson Qin
aed3f72bf9
fix: display page properties area when it's a db based graph
2023-07-11 21:06:43 +08:00
rcmerci
f1422c2827
add frontend.db.sync
2023-07-11 14:28:33 +08:00
Tienson Qin
23d3091fce
Added :block/instance to db schema
2023-07-10 16:44:51 +08:00
Tienson Qin
30c7605d7e
default type can't be multiple due to :block/properties-text-values
2023-07-10 14:47:34 +08:00
Tienson Qin
3820cb7ff6
feat: structured pages
2023-07-10 03:01:40 +08:00
Tienson Qin
23a64d6061
enhance: add description to properties
2023-07-10 00:24:15 +08:00
Tienson Qin
a0d6107d99
feat: class && configuration
2023-07-09 21:35:06 +08:00
Gabriel Horner
671453aadb
Add nbb script to demonstrate datascript querying a sqlite db
...
Also give test vars more appropriate name
2023-07-08 16:20:42 -04:00
Gabriel Horner
47e1b06f76
Move over restore-other-data and add a test for it
2023-07-08 02:11:35 -04:00
Gabriel Horner
586749c918
Move over restore-initial-data and add the first sqlite to datascript test
2023-07-07 16:43:31 -04:00
Tienson Qin
b922ef9861
fix: can't save config.edn
2023-07-07 19:00:54 +08:00
Tienson Qin
bd9a074888
fix: don't create today's journal when it's loading graph
2023-07-07 15:01:38 +08:00
Tienson Qin
f51d60cdc2
fix: new graph creates accidental page from last graph's page
2023-07-07 14:49:22 +08:00
Gabriel Horner
62c550e26d
Updated timestamp column types to match actual usage
2023-07-06 14:11:58 -04:00
Tienson Qin
956c896e0b
chore: remove temporal ignores
2023-07-05 16:57:16 +08:00
Tienson Qin
920c5f6839
fix: can't create children blocks for property blocks
2023-07-05 16:55:33 +08:00
Tienson Qin
98087e250c
enhance(property): create new block when search not matched
2023-07-05 16:53:03 +08:00
Tienson Qin
716b8df9c5
enhance: display block container instead of reference for property value
2023-07-05 14:45:02 +08:00
Tienson Qin
289804da86
enhance(property): create new page when search not matched
2023-07-05 14:26:41 +08:00
Tienson Qin
880ac87451
enhance: property value auto-complete
2023-07-05 13:17:20 +08:00
Tienson Qin
59ebedb6c5
enhance: disable user selection for properties if selected blocks
2023-07-05 12:00:28 +08:00
Tienson Qin
4069761420
fix: replace special id with original name instead of name
2023-07-05 11:57:02 +08:00
Tienson Qin
4fa4afa156
fix: can't delete graph with the same name twice fails
2023-07-05 08:24:05 +08:00
Tienson Qin
5dab2228a0
fix: switch to the next graph after unlinking the current one
2023-07-05 08:15:46 +08:00
Tienson Qin
969a677341
fix: re-render root UI once db loaded
2023-07-05 07:47:07 +08:00
Gabriel Horner
fa01aefa24
Add an explicit new-db! for new db graphs to simplify other fns
...
Previously open-db! and upsert-blocks! had graph creation
and connection responsibilities. These shouldn't be needed if
new and existing databases have clear entry points
2023-07-04 13:06:21 -04:00
Gabriel Horner
a98ea631c5
Fix: Disallow creating same db graph twice
...
Allowing this was leading to data loss cases
2023-07-04 12:38:46 -04:00
Gabriel Horner
9d58c8dcf8
Add command for creating db graph
2023-07-04 11:30:56 -04:00
Tienson Qin
db94f4e638
css tweaks for select
2023-07-04 19:19:09 +08:00
Tienson Qin
a37bb6664f
feat: support both page and block types
2023-07-04 18:58:56 +08:00
Tienson Qin
6f8500cbe7
Add page/block types
2023-07-04 15:32:15 +08:00
Tienson Qin
ab40fd0076
fix: property update
2023-07-04 14:54:43 +08:00
Tienson Qin
36914279f0
fix: multiple values ux
2023-07-04 14:53:14 +08:00
Tienson Qin
e9a3be9127
enhance: add context menu for properties
2023-07-04 14:41:06 +08:00
Tienson Qin
49a7026d90
enhance: don't show delete button when there're no values
2023-07-04 14:22:05 +08:00
Tienson Qin
0c4c0322ff
enhance: enter to trigger date picker and checkbox
2023-07-04 14:05:55 +08:00
Tienson Qin
a6d96ffb0b
fix: property key input
2023-07-04 13:39:10 +08:00