Commit Graph

64 Commits

Author SHA1 Message Date
Tienson Qin
e259be0c51 feat: quick add (#11986)
* feat: quick add

* enhance(ux): auto open block for editing for quick add

* enhance(ux): show notification after quick add

* add migration for quick add page
2025-07-07 16:18:53 +08:00
Tienson Qin
2708743660 enhance(ux): don't clear input after adding a page to Library
fixes https://github.com/logseq/db-test/issues/352
2025-06-25 15:58:44 +08:00
Tienson Qin
c986fafb12 enhance(ux): preserve choices order in multi-select 2025-04-24 14:57:14 +08:00
Tienson Qin
4169f20a28 Merge branch 'feat/db' into perf/app-start 2025-04-07 20:06:45 +08:00
Tienson Qin
f66627c280 fix: page auto-complete in query builder
This commit also adds `loading?` to ui/select to display a spinner
when it's loading data from the worker db.
2025-04-03 14:52:52 +08:00
Tienson Qin
50314f025c add unset property 2025-03-13 00:19:24 +08:00
Tienson Qin
93ae0047be feat: allow tags to be used as properties 2024-12-17 22:04:27 +08:00
Tienson Qin
77c514e3de Disable users to add or delete internal tags 2024-12-17 22:04:27 +08:00
Tienson Qin
80c811e930 enhance: select component support header 2024-11-11 09:53:09 +08:00
charlie
3da57d0ee3 enhance(ui): polish select cp 2024-11-05 14:46:24 +08:00
Gabriel Horner
500da0d7e1 fix(regression): 2nd modal doesn't close for remove graph cmd
or any commands using dialog-select!. Modal used to display search
commands didn't close after selecting an item
2024-10-14 14:01:06 -04:00
charlie
669299dd7a enhance(ui): refactor the classic select modal with the shui dialog 2024-10-11 18:38:34 +08:00
charlie
ffb3e138c4 enhance(ui): refactor the classic select modal with the shui dialog 2024-10-11 17:49:16 +08:00
Tienson Qin
deb3507bb0 enhance: copy code block
1. search and store code lang instead of mode
2. select uses frontend.components.select instead of shui input + auto-complete
2024-10-02 12:58:15 +08:00
charlie
93ba8fafa7 enhance(ux): polish classic select for the property dropdown editor 2024-08-29 12:43:32 +08:00
Tienson Qin
b9f9fa0ca6 wip: Demo switch to use db graph 2024-08-10 13:42:37 +08:00
Tienson Qin
6c653094dd wip: class objects table 2024-06-29 00:50:30 +08:00
Tienson Qin
e7cd76644b enhance: put remove property after search results 2024-05-22 17:53:45 +08:00
Tienson Qin
a1d4bca586 fix: selected choices not updated reactively on UI 2024-05-22 06:45:45 +08:00
Tienson Qin
45f14d4b76 refactor: property/schema.properties
Replace [:block/schema :properties] with ref type property/schema.properties.

This commit also introduces :logseq.class/base so that all the other
classes will be its children.
2024-05-09 08:29:11 +08:00
Gabriel Horner
94e6f78dc0 fix: entering case sensitive properties
Case sensitive properties worked for p1/P1 but not actor1/Actor1
2024-04-24 15:07:22 -04:00
Gabriel Horner
8cc620e7a2 fix: frontend lints 2024-03-12 11:08:37 -04:00
Tienson Qin
5efb1536c2 fix: replace all onmousedown/up with onpointerdown/up
onMouseDown can't be used in dropdown trigger
2024-03-12 15:50:27 +08:00
Tienson Qin
d119a15229 enhance: use radix checkbox globally 2024-03-11 21:40:32 +08:00
Tienson Qin
83e4560a1a enhance(ux): property value input 2024-03-11 21:04:02 +08:00
Tienson Qin
623043d363 enhance: j jump to a property key or value (selection mode)
We can support jump to any block in the future.
More enhancements need to be done including:
1. still focus on the block or property key/value after any property
operation
2. up/down/left/right support maybe?
2024-02-28 21:34:09 +08:00
charlie
bc37599acc fix(ui): polish details for the properties select 2024-02-06 16:18:31 +08:00
Gabriel Horner
f7e890b662 enhance: dev command to update db graph with its db.sqlite 2023-12-20 17:02:02 -05:00
Tienson Qin
02e9f8eaa7 fix: add assets support on memory-fs 2023-11-15 16:05:04 +08:00
Gabriel Horner
80ac797c8a fix: multiple choice not working due to #10132
looks like there's a breaking change with ui/button's options
2023-11-14 16:56:08 -05:00
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
fea69f8337 fix: repeated react warnings with multiple choice properties
and with pages that have hierarchy
2023-11-06 15:15:39 -05:00
Gabriel Horner
030e4f6581 fix: basic query builder selection
Wasn't working for file or db graphs b/c of underlying component
changes. Part of LOG-2808
2023-11-03 16:56:51 -04:00
Tienson Qin
307258343e fix: lint warnings 2023-10-08 19:14:25 +08:00
Tienson Qin
7c9edcba6d enhance: enum support other positions than in block properties 2023-10-02 09:38:28 +08:00
Tienson Qin
0464d167c0 refactor select components 2023-09-27 04:13:47 +08:00
Tienson Qin
8748a01160 fix properties ux 2023-09-26 01:25:14 +08:00
Tienson Qin
22d3d71040 multiple values select enhancements 2023-09-26 01:25:14 +08:00
Gabriel Horner
e6b02acdfa feat: new property value pages can input their class as well
e.g. 'Some Name #Person' will create a Person page for 'Some Name'.
Autocompletion is provided in dropdown after 'Some Name #'
2023-09-14 13:31:14 -04:00
Gabriel Horner
651866ba0b fix: searching in :classes field 2023-09-07 09:50:53 -04:00
Tienson Qin
ff078afb8e fix: select objects from specified classes 2023-09-05 21:56:36 +08:00
Tienson Qin
93643dafd5 feat: specify multple classes for object type 2023-09-05 20:19:31 +08:00
Gabriel Horner
fea174d661 Fix: Number property values can be clicked on without failing 2023-08-21 17:44:05 -04:00
Gabriel Horner
b5ff661457 fix: regression on warning user about built-in property
Also remove unused select component option
2023-08-16 11:54:43 -04:00
Tienson Qin
802b954605 enhance: block input 2023-08-14 14:33:30 +08:00
Gabriel Horner
023a47562d Fix regression on configure page with properties
Was unable to add multiple page or schema properties. Caused by move to
select component which exited page modal by default
2023-08-04 14:11:25 -04:00
Tienson Qin
a775746d97 fix: remove existing properties/alias/tags from auto-complete 2023-08-04 11:08:34 +08:00
Tienson Qin
99ecf6cd42 fix: use select/select component for new property input 2023-08-03 18:53:50 +08:00
Gabriel Horner
5f91e6cf0f Merge branch 'master' into feat/db 2023-07-24 12:21:19 -04:00
Tienson Qin
c5c253b510 enhance: select auto-complete support dropdown 2023-07-19 15:24:09 +08:00