Skip to content

Commit 8c859b1

Browse files
committed
demo(app-showcase): add single-lookup bulk action (reassign_account)
Exercises the searchable single-lookup picker (objectui#2186): a `lookup` param with no `multiple` now renders a searchable reference combobox over showcase_account, not a bare dropdown. Verified in objectstack dev — select rows → Reassign Account → search/pick one → every selected project's `account` is set to the single chosen id.
1 parent 64e6ba5 commit 8c859b1

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

examples/app-showcase/src/views/project.view.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ export const ProjectViews = defineView({
2626
// control the dialog gained in #2185:
2727
// • set_labels → multi-select on a `select` param (fixed options)
2828
// • assign_team → multi-select on a `lookup` param (users; array patch)
29+
// • reassign_account → single-select on a `lookup` param (searchable
30+
// reference picker, not a bare dropdown)
2931
// • reschedule → the new `date` control + a single-select together
30-
// A def with no `multiple` still renders a single-select, unchanged.
3132
bulkActionDefs: [
3233
{
3334
name: 'set_labels',
@@ -68,6 +69,22 @@ export const ProjectViews = defineView({
6869
},
6970
],
7071
},
72+
{
73+
name: 'reassign_account',
74+
label: 'Reassign Account',
75+
operation: 'update',
76+
confirmText: 'Move every selected project to this account?',
77+
params: [
78+
{
79+
name: 'account',
80+
label: 'Account',
81+
type: 'lookup',
82+
object: 'showcase_account',
83+
labelField: 'name',
84+
required: true,
85+
},
86+
],
87+
},
7188
{
7289
name: 'reschedule',
7390
label: 'Reschedule',

0 commit comments

Comments
 (0)