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)
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
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
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
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
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
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
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
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
- 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
and provide a rules var just for db graphs.
Also simplify query-dsl db-graph support as query-dsl/parse-query
doesn't need to know about db graphs for how it's used