Commit Graph

20 Commits

Author SHA1 Message Date
Tienson Qin
6a47648c6c Replace enum type with available choices (#10438)
* 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
2023-11-14 18:48:34 +08:00
Gabriel Horner
cda755ef36 fix: 2 bugs with collapsible block state and properties
When 2 db graphs exist, the built-in-properties check failed because it
failed to db lookup for the new repo. Just simplified it so that db
lookup is only needed once across repos. Also limited check to hidden
built-in properties since visible built-in properties should be
treated like user properties and be collapsable
2023-10-31 11:40:03 -04:00
Tienson Qin
8c7098b21f enhance: move enum property choices to hidden page
related to LOG-2871
2023-10-30 20:35:39 +08:00
Gabriel Horner
241384c9be chore: clean up repeated uses of fetching page+property uuids 2023-10-24 09:29:30 -04:00
Gabriel Horner
f1d17ad56b fix: typing markdown heading displays correctly
Also fixed structured tag popup displaying
in heading which didn't make sense. Since this was fixed
right after gp-block/extract-blocks is called, this likely
fixed related issues where format/extract-blocks is called e.g. paste.
Fixes LOG-2821.
2023-10-23 18:01:50 -04:00
Gabriel Horner
2c1ccf99dc fix: markdown tables didn't recognize built-in v2 properties
also fix enum values not usable for api fn
2023-10-23 12:28:55 -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
Tienson Qin
336cdfbfc5 fix: whiteboard e2e tests 2023-10-18 10:34:29 +08: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
6daef07c5c fix: multi-word tags should be stripped from content
Also fixed an unrelated docstring
2023-10-12 15:14:34 -04:00
Tienson Qin
9f0eec2402 fix: whiteboard not working because of properties 2023-10-12 21:17:31 +08:00
Gabriel Horner
4b0100cb25 chore: cleanup page-property file based ns
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
2023-10-02 15:59:43 -04:00
Gabriel Horner
b2802e9a54 fix: named blocks and function macro
Had to update properties queries. Also loosened pu/lookup so that
user properties can use it
2023-09-20 16:26:13 -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
Gabriel Horner
2327fa3103 Fix query table settings failing on click and enhance dev commands
to display properties as named maps
2023-08-22 16:18:21 -04:00
Tienson Qin
3a530496e3 fix: built-in property id changes after app reload 2023-08-07 20:32:38 +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
2913af2d96 fix: order list 2023-08-01 20:14:49 +08:00
Tienson Qin
dbcd082f08 wip: handle built-in properties 2023-08-01 19:03:16 +08:00