Gabriel Horner
d571e90d3e
fix: new hidden pages showing up in search
...
part of LOG-2854
2023-10-26 13:58:44 -04:00
Gabriel Horner
e5e25bb403
update schema for new hidden page attributes
...
part of LOG-2854. Also update --closed-maps to use library fn
2023-10-26 12:05:12 -04:00
Ben Yorke
184dfd7d54
More design tweaks
2023-10-26 14:24:12 +02:00
Gabriel Horner
2acac87094
fix: macros were not being saved
...
macros were being discarded as unknown blocks when they should've been
saved as a block with a known type. Introduced a new type number as
macros don't have most of the attributes that blocks or pages do.
Features like collapsible queries now work in db graphs. Also removed
an outdated reference that assumed macro was a page (which it no longer
is)
2023-10-25 17:05:31 -04:00
Gabriel Horner
211dd6aea7
enhance: disable preferred-format and setting org-mode
...
for db graphs. Also deprecate in config
2023-10-24 17:15:05 -04:00
Ben Yorke
7a7c3b9c62
Design refresh
2023-10-24 17:35:51 +02:00
Ben Yorke
3325f47136
resizing
2023-10-21 16:28:17 +02:00
Gabriel Horner
4fd591620b
validate entities that are changed per transact!
...
This should help us catch bugs due to invalid data fairly quickly.
This only runs when in dev?
part of LOG-2818
2023-10-20 16:57:00 -04:00
Gabriel Horner
f860553d89
enhance: add enum choices to built-in table properties
...
Also hide all built-in table properties like we do for file graphs
2023-10-19 11:57:27 -04:00
Gabriel Horner
b4e5e4b640
enhance: tags dropdown autocompletes to classes
...
Autocompleting all pages including journals and built-in pages is
noisy and misleading. By autocompleting classes we give user
a better experience and avoid creating buggy edge cases like built-ins as a
class. Properties can also choose to class page autocompletion by
choosing "Logseq Class" for their property's :classes
2023-10-18 16:43:40 -04:00
Gabriel Horner
c7c438b85a
fix: last-modified-at not being set for files
...
Also fixed a bug with the all-files view where the current time was
being displayed instead of a file's last modified time. Also updated
db graph's schema for files
2023-10-17 16:12:24 -04:00
Gabriel Horner
edaf9b286a
chore: move frontend db namespaces to a dedicated parent ns
...
Moved these namespaces to logseq.db.frontend.* to make their purpose
explicit and make the namespaces easier to maintain
2023-10-16 17:24:51 -04:00
Gabriel Horner
b1b830c872
fix tests I forgot to update with :block/format fix
2023-10-16 16:14:53 -04:00
Ben Yorke
69e02edaeb
Merge branch 'master' into feat/cmdk
2023-10-16 21:02:12 +02:00
Ben Yorke
9d6154937a
Save dialog
2023-10-16 20:39:04 +02:00
Gabriel Horner
e09a5d9988
fix: pages didn't consistenly have :block/format
...
Making attributes consistent reduce bugs in components and query layer (where
most wouldn't know to use get-else)
2023-10-16 12:58:11 -04:00
Gabriel Horner
8756600fd7
Add CI job to test creating and validating a db graph
...
also update older actions
2023-10-13 10:53:01 -04:00
Gabriel Horner
1aa1d46474
fix: db and most frontend lints
2023-10-12 16:30:04 -04:00
Gabriel Horner
cd6b50459d
fix: bring back property creation from new class modal
...
also loosened property schema as irreversible :type
has changed how :block/schema is set
2023-10-12 13:36:34 -04:00
Gabriel Horner
82bcd01525
simplify :map declarations in db schema
...
Make :closed opt in rather than required in order for --closed-maps
to work
2023-10-12 10:02:45 -04:00
Gabriel Horner
4f7baaaffe
fix: icon page failed to load
...
caused by icon having wrong type
2023-10-12 09:22:11 -04:00
Gabriel Horner
8eeeef536b
fix: using enum values shouldn't create unknown blocks
...
also updated enum schema
2023-10-11 18:07:08 -04:00
Gabriel Horner
c8ccc79e82
fix: db/ident and schema/version shouldn't create unknown blocks
...
Also log unknown blocks and make their entity more explicit with the
goal of eventually resolving all unknown blocks. Also added
a query bb task. Part of LOG-2818
2023-10-11 16:02:13 -04:00
Gabriel Horner
fe7a46eac9
Move db malli schema into db dep since it's stable
...
Also add a validate-db task. Part of LOG-2739
2023-10-11 08:40:26 -04: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
7138be295f
remove :blocks-container-id usage
2023-10-11 00:46:47 +08:00
Ben Yorke
2d659e8058
Indice being built async + jakob feedback
2023-10-10 15:47:19 +02:00
Ben Yorke
2730f3bc0e
another round of logging
2023-10-09 17:08:40 +02:00
Ben Yorke
145c519e1a
Add logging to highlight query
2023-10-09 16:05:14 +02:00
Ben Yorke
6247cc35fe
Abandon perf fix attempt
2023-10-09 15:00:35 +02:00
Tienson Qin
00445910c7
fix: both tagged blocks and pages are objects
2023-10-09 00:43:36 +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
Tienson Qin
85d1a82340
fix: cleanup block parents created from properties when reset value
2023-10-04 20:53:08 +08: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
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
fcd4ee1d33
chore: block/pre-block isn't used in db graphs
...
Move related fn into a file only ns and fix lints in that ns
2023-09-29 22:21:34 -04:00
Ben Yorke
79a11f8b88
Jakob IV
2023-09-29 17:03:31 +02:00
Ben Yorke
2ab619e44a
Fix build error
2023-09-29 16:21:14 +02:00
Ben Yorke
328cd58c9f
Jakob round III
2023-09-29 16:11:20 +02:00
Ben Yorke
3106eeff99
Fix breaking normalization
2023-09-29 11:24:21 +02:00
Ben Yorke
7868b3aee7
Jakob feedback
2023-09-29 11:17:52 +02:00
Tienson Qin
83723cb5fd
fix: page icon display
2023-09-27 21:50:29 +08:00
Ben Yorke
3893d26445
Fix lower case bug
2023-09-26 15:32:13 +02:00
Gabriel Horner
7ba09bdb69
fix: has.*property rules incorrectly match blocks that had date properties
...
Adding a property to a block and then deleting it used to leave empty
values on all property types. Thx to the recent multi-select ux update
, this mainly just happens with the date type
2023-09-26 09:29:29 -04:00
Gabriel Horner
93d544e96a
fix: toggling ordered list number
...
also removed and fixed related property type that was invalid
2023-09-25 16:55:29 -04:00
Gabriel Horner
4d819ac1b3
fix: slides and aliased page navigation for db version
...
Update a few fixmes for properties.
Also add built-in prop which we've documented for slides.
Also show hide for built-ins properties as built-ins also use it
2023-09-25 15:29:24 -04:00
Gabriel Horner
82994cb79d
fix: tests related to :block/type arity change
2023-09-25 12:30:21 -04:00
Ben Yorke
e3407138cd
Updates
2023-09-25 16:21:41 +02:00
Tienson Qin
0e8653985d
refactor: allow a block to have multiple types
...
For example, a whiteboard page can be used both as a property and a class.
2023-09-25 10:46:00 +08:00
Ben Yorke
2ee777ae97
Updates
2023-09-24 21:31:45 +02:00
Gabriel Horner
358987d7b3
Fix icon property and update property related fixmes
2023-09-21 16:34:06 -04:00
rcmerci
b12432bcd6
feat(rtc): support :block/alias sync
...
also update `ref-type-attributes`, `card-many-attributes`,
`card-many-ref-type-attributes`, `card-one-ref-type-attributes`
in ns `logseq.db.schema`
2023-09-21 00:31:38 +08:00
Gabriel Horner
71060a847e
fix publishing lint
2023-09-20 10:45:12 -04:00
Gabriel Horner
6cf19c60f8
fix: exclude-from-graph-view and public properties
...
Hide them as no need to see them by default but still need to be
accessible to modify. public's queries hadn't been updated to work with db graph yet
2023-09-20 09:26:37 -04:00
Ben Yorke
246e904457
cmdk2 updates
2023-09-15 13:30:51 +02:00
Tienson Qin
b2161ac5ec
feat: collapse/expand block values
2023-09-13 18:45:15 +08:00
Tienson Qin
5162598665
fix: use db/new-block-id to keep the order for :block/uuid
2023-09-12 13:30:50 +08:00
Gabriel Horner
36edf87db3
Move config.edn template to a library
...
so it can be used outside Electron e.g. when creating graphs from CLI.
Put a symlink in the old templates/config.edn location to make new
location easier to find but it's not needed for anything to work
2023-09-08 13:52:45 -04:00
Gabriel Horner
3e9c536818
fix: publishing lints that have been broken for awhile
...
just removing unused code
2023-09-08 12:11:10 -04:00
Gabriel Horner
5f66ca027e
enhance: Use path-refs calculation in CLI namespaces
...
Also moved path-refs truncation into outliner so that it applies consistently
across environments
2023-09-08 11:57:35 -04:00
Gabriel Horner
5b99078d6a
fix typos
2023-09-08 09:08:53 -04:00
Gabriel Horner
41bd76a704
Merge branch 'master' into feat/db
2023-09-07 17:52:25 -04:00
Gabriel Horner
4b15a727a9
Add readme, lint and CI for outliner dep
...
Also got outliner lints passing
2023-09-06 17:03:04 -04:00
Gabriel Horner
a93fe4d81b
Move recalculate-block-path-refs to outliner dep
...
Moved dependent query fns also into the outliner dep. Removed
get-block-children-ids from model as there was only one use of it after
the refactor. Also setup testing for outliner and moved in a test for it
2023-09-06 16:20:29 -04:00
Gabriel Horner
ea8d6679de
Fix frontend and graph-parser tests
...
A number of outliner tests were failing which is distracting when trying
to separate out outliner namespaces. Most failures were caused by
introduction of state/get-selection-blocks into outliner layer. A few
are caused by trivial count change in datoms. Removed config/test? from
outliner as it's unused
2023-09-06 11:57:41 -04:00
Tienson Qin
89186a438e
perf: avoid unnessary block component rendering
2023-09-06 21:38:08 +08:00
Gabriel Horner
c07da6cc80
Move handler.common.repo fn into sqlite-util
...
This makes create-graph* namespaces independent of frontend
as they should be to be used externally
2023-09-06 08:59:40 -04:00
Gabriel Horner
b264d17309
Move db-graph property fns to its own logseq.db ns
...
db-graph related fns like these shouldn't be in the graph-parser dep as
that dep should only really be used with file graphs as much as possible.
This is also being done in preparation for making the create-graph ns independent of
the frontend
Also db- prefixes in fns were dropped since the ns now carries the db-
prefix
2023-09-05 17:15:45 -04:00
Tienson Qin
60ab58c2ad
fix: can't tag a block if the tag name has spaces
2023-09-06 01:08:33 +08:00
Andelf
5058f599e3
enhance(fs): check graph folder for bad name and nested graph
2023-09-04 17:44:43 +08:00
Tienson Qin
33f8a24397
perf enhancement
...
1. add :block/tx-id to check whether block has been updated
2. avoid rendering blocks if they're not updated
2023-09-04 14:15:46 +08:00
Gabriel Horner
b3efb93335
Move initial namespaces to start outliner dep
2023-09-01 17:23:34 -04:00
Ben Yorke
0f7f9adf9b
Merge github-bendyorke:logseq/logseq into feat/cmdk
2023-08-31 16:08:22 +02:00
Ben Yorke
24006b3d82
updates
2023-08-25 15:54:00 +02:00
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
Zhizhen He
4cb23ab193
ci: upgrade typos to 1.16.8
2023-08-24 10:29:51 -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
Gabriel Horner
9fff912f1e
Improve on create graph script
...
- Split out reusable fns to their own ns
- Created graph now initializes all the same data as in the app
- Had to make a copy of block-with-timestamps for nbb compatibility
and started using it in a couple places that are easy to QA
2023-08-20 02:38:53 -04:00
Tienson Qin
6f8b9712d9
fix: other unit test
2023-08-18 21:42:37 +08:00
Gabriel Horner
e41adc6399
Disable more property editing for publishing app
...
Also fix some minor lints
2023-08-17 09:42:08 -04: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
Andelf
08e22c44af
fixup! fix(sqlite): multitab support
2023-08-16 18:54:30 +08:00
Andelf
0836e4f6cc
fix(sqlite): multitab support
2023-08-16 18:45:20 +08:00
Andelf
fd0ccf2add
fix(sqlite): graph list and unlinking for in-browser graph
2023-08-16 18:31:02 +08:00
Andelf
eb4476c0b6
fix(sqlite): wrong db query
2023-08-16 14:54:51 +08:00
Tienson Qin
6087d3dfbd
fix: browser db loading
2023-08-16 13:37:35 +08: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
Gabriel Horner
bcc37eb298
Update publishing to optionally work with db graphs
...
Also updated commandline script
2023-08-15 16:35:03 -04:00
Andelf
849173d081
fix(sqlite,browser): dup today journal page
2023-08-15 23:15:25 +08:00
Andelf
7cf2d5d387
chore: DB version for browser support ( #10016 )
...
- impl storage
- still not working: refreshing, init code
2023-08-15 21:07:31 +08:00
Tienson Qin
4bff0b975f
Add :block/link to ref-type-attributes
2023-08-15 19:22:49 +08:00
Tienson Qin
d75e5c6e72
chore: rename :block/instance to :block/link
2023-08-15 15:15:49 +08: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