Commit Graph

312 Commits (22ac81a9d5f579fec61ba0487a4bfcb38312072f)

Author SHA1 Message Date
Gabriel Horner deb2a1aaad fix: render v2 tables correctly
also added shui properties so they are built-in
and editable
2023-08-24 16:42:24 -04:00
Gabriel Horner 775a38f91d fix: sorting for keyword columns 2023-08-22 17:15:32 -04:00
Gabriel Horner 6ad560e4cb fix: query table column selection
also fix lint in related ns
2023-08-22 16:27:04 -04:00
Gabriel Horner ef03f12da7 Fix typos and get fn back to a reasonable size 2023-08-22 08:55:29 -04:00
Tienson Qin 6f8b9712d9 fix: other unit test 2023-08-18 21:42:37 +08:00
Gabriel Horner 0f1f8873f3 fix: existing tags and alias are now excluded
if they already exist on a block. Also fixed lower case version
of properties not being excluded. Also fixed lint in component ns
2023-08-16 15:40:24 -04:00
Gabriel Horner 172ee0ae24 Provide sqlite.cli for reusable sqlite fns
Already had to do read-graph 3 times and will soon need to it outside
logseq so worth putting this behind an api ns
2023-08-15 18:08:44 -04:00
Tienson Qin e2c28aa91a enhance: hide block refs count for blocks created in property 2023-08-07 18:53:28 +08:00
Tienson Qin 668a17c2af enhance: be able to collapse/expand properties 2023-08-07 17:31:34 +08:00
Tienson Qin 6ec79d48cb feat: property icon emoji picker 2023-08-07 15:03:03 +08:00
Tienson Qin 5d2e65b8f8 enhance: use row layout for multiple pages 2023-08-04 12:21:09 +08:00
Gabriel Horner 6537f0dfab Loosen property name check for db graphs
properties don't need to be keywords for db graphs since property names
aren't involved in property storage. This change allows for property
names to have whitespace and be invalid edn.

See #6753 for example bugs that db-validation-property-name? catches
2023-08-03 17:00:49 -04:00
Gabriel Horner 47cea36e7d fix: add back disallowing adding hidden built-in properties
Without this adding a built in prop and value leads to it disappearing
with no explanation. Also cleaned up gp-property into sections mostly
to differentiate between file and db graph properties
2023-08-03 10:11:23 -04:00
Gabriel Horner d3ba0de946 fix: user can't add hidden built-in properties to blocks
Allowing this leads to errors e.g. user adds 'query-properties' property
and then adding value throws error b/c of internal schema type :coll
2023-08-02 15:39:18 -04:00
Gabriel Horner e85557bacd Fix graph-parser lint
Also bump property perf for db-graph as it's a little slower but
still within reasonable range
2023-08-01 16:48:35 -04:00
Gabriel Horner 991c0994e5 All query-dsl tests pass for db graphs
Add to CI. Also fix graph-parser lint and typo
2023-08-01 16:34:48 -04:00
Tienson Qin 4f24c80b33 fix: add back support for alias and tags 2023-08-02 03:09:55 +08:00
Tienson Qin 15cb78fbf7 fix: add pre-configured properties when creating a new db graph 2023-08-02 01:49:23 +08:00
Tienson Qin 8e9a189ba1 handle whiteboard built-in properties 2023-08-01 21:48:36 +08:00
Tienson Qin db5e0a6571 handle pdf annotation properties 2023-08-01 21:23:00 +08:00
Tienson Qin dbcd082f08 wip: handle built-in properties 2023-08-01 19:03:16 +08:00
Gabriel Horner 40237b912f Remove nonexistent :block/unordered from test 2023-07-24 12:32:08 -04:00
Gabriel Horner 5f91e6cf0f Merge branch 'master' into feat/db 2023-07-24 12:21:19 -04:00
Gabriel Horner ba53bf297c Remove last use of :block/unordered
This was coming directly from the block's ast so it was harder to trace
2023-07-24 10:26:02 -04:00
Gabriel Horner 2b90b0462a Remove explicit :block/unordered that should already be deleted 2023-07-24 10:26:02 -04:00
Gabriel Horner 48009adaf9 chore: reuse common helper for stringifying datoms 2023-07-20 18:37:22 -04:00
Gabriel Horner d7eeea28dd Add a test that ensures file and db graphs have expected datoms 2023-07-20 18:27:07 -04:00
Tienson Qin 23d3091fce Added :block/instance to db schema 2023-07-10 16:44:51 +08:00
Tienson Qin 3820cb7ff6 feat: structured pages 2023-07-10 03:01:40 +08:00
Tienson Qin 70406332dc fix: namespace whiteboard pages import 2023-06-27 14:00:33 +08:00
Tienson Qin 23d918dcc2 Merge branch 'master' into feat/db 2023-06-26 20:10:41 +08:00
Andelf a59ecb370d chore(deps): bump diff-merge to 0.1.0 2023-06-26 19:20:04 +08:00
Andelf 1c6fe4be82 enhance(sync): add merge step to update local 2023-06-26 19:20:04 +08:00
Tienson Qin fd6b587235 Merge branch 'master' into feat/db 2023-06-21 14:09:16 +08:00
rcmerci 8a1c54173b [wip] property edit 2023-06-20 18:08:40 +08:00
Junyi Du bea081c5b0 test: more remove indent test 2023-06-16 00:42:30 +08:00
Junyi Du e50e129fba dev(docstring): remove indentation 2023-06-16 00:42:30 +08:00
Tienson Qin 6cbbd66333 Revert "Trim whitespaces for org mode files too"
This reverts commit 3fd7492e0ab90fc1d4890ea4b4005743cbbe0856.
2023-06-16 00:42:30 +08:00
Tienson Qin bccf5888c7 add tests 2023-06-16 00:42:30 +08:00
Tienson Qin 54706785c3 Trim whitespaces for org mode files too 2023-06-16 00:42:30 +08:00
Tienson Qin b1236b4e89 fix: trim whitespaces for block's content
Let's say we have a page like this:
- a
  - b
 b' content

After parsing, block `b` content should be `b\nb' content`
2023-06-16 00:42:30 +08:00
Tienson Qin 32173ff95e fix: new page doesn't have block/uuid 2023-06-14 17:29:55 +08:00
Gabriel Horner 3f1d32dd6c Update clj-kondo and bb-tasks for deps projects 2023-06-13 14:48:50 +08:00
Gabriel Horner df2edd44ac Rename temp :block keys to be explicit about their use
:block is a heavily used namespace. We should at least
be explicit about keys that aren't being transacted
2023-05-26 09:13:38 -04:00
Gabriel Horner 33285a354d Fix table and view properties not hidden on display
fix #9489
2023-05-26 09:10:46 -04:00
Gabriel Horner 51a23934a4 Fix parse-graph not ignoring correctly for relative dir
parse-graph now returns absolute file paths
2023-05-19 21:49:58 -04:00
Gabriel Horner 47508ac2ac Add :hidden config support to graph-parser.cli
Also fix lints and tests from previous commits
2023-05-18 23:25:15 +08:00
Gabriel Horner 91beda09d5 Split out graph fns and reuse them b/n gp-cli and electron
Also added test
2023-05-18 23:25:15 +08:00
Gabriel Horner fe24b61beb Fix asset link creating invalid page for org mode 2023-05-15 11:55:59 +08:00
Gabriel Horner 7335a6f623 Fix org mode page refs - close #9367 2023-05-15 11:55:59 +08:00