* Add type schema for enum values
* Refactor: closed values instead of enum to limit values
There's no need to add the enum type, we just want to limit the
values.
* feat: :page type supports closed values
* fix: can't set property values for text/number types
* fix: don't trigger on-chosen when unmounting any select component
* fix: can't apply both page classes limitation and closed values
* fix: merge conflicts
* fix: ui not refresh when changing closed value
* fix: can't set icon for closed value
One query was failing to load namespaced pages since datascript
fails hard for reverse lookups or {...} syntax on non-existent
attributes.
Also disabled or logged queries that don't have an equivalent
yet for DB graphs
Left a few uses of gp-mldoc/default-config but only in file graph
specific locations or functionality that wasn't related to db graphs
e.g. handler. plugin. Also removed format/get-default-config as it was unused
Part of LOG-2741
Fixes LOG-2748. Also fix config.edn being saved when invalid
which would result in confusing scenarios where an invalid config
could persist into other contexts like a settings change
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
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
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
dev: graph parser IoC hook
test: use test db for diff-merge tests
fix: ci lint
dev: refactoring post block-parsing process
feat: diff-merge 2 way merge integration
fix: key namespace of uuid in fix-duplicated-id
fix: duplicated uuid ci
parse-graph didn't have all the extract-options that the app does.
Adding them fixed the bugs.
Also fix publishing bug where old :all-pages-public? option wasn't
respected