feat(activities): edit detail in place and tighten the board peek
Let people change activity fields and their own notes with photos from the detail page, open full detail from the card title, and toggle the side peek with a chevron. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -22,8 +22,9 @@ withDefaults(
|
||||
selectMode?: boolean;
|
||||
selectedIds?: Set<string>;
|
||||
peekId?: string | null;
|
||||
previewId?: string | null;
|
||||
}>(),
|
||||
{ copy: () => DEAL_BOARD_COPY, selectedIds: () => new Set(), peekId: null },
|
||||
{ copy: () => DEAL_BOARD_COPY, selectedIds: () => new Set(), peekId: null, previewId: null },
|
||||
);
|
||||
|
||||
const emit = defineEmits<{
|
||||
@@ -33,6 +34,7 @@ const emit = defineEmits<{
|
||||
drop: [stageId: string, event: DragEvent, index?: number];
|
||||
addDeal: [stageId: string];
|
||||
openDeal: [dealId: string];
|
||||
detailDeal: [dealId: string];
|
||||
menuDeal: [dealId: string];
|
||||
toggleSelect: [dealId: string];
|
||||
bulkDelete: [];
|
||||
@@ -111,6 +113,7 @@ function submitAdd() {
|
||||
:select-mode="selectMode"
|
||||
:selected-ids="selectedIds"
|
||||
:peek-id="peekId"
|
||||
:preview-id="previewId"
|
||||
:is-first="index === 0"
|
||||
:is-last="index === stages.length - 1"
|
||||
@drag-start="(d, e) => emit('dragStart', d, e)"
|
||||
@@ -119,6 +122,7 @@ function submitAdd() {
|
||||
@drop="(id, e, index) => emit('drop', id, e, index)"
|
||||
@add-deal="emit('addDeal', $event)"
|
||||
@open-deal="emit('openDeal', $event)"
|
||||
@detail-deal="emit('detailDeal', $event)"
|
||||
@menu-deal="emit('menuDeal', $event)"
|
||||
@toggle-select="emit('toggleSelect', $event)"
|
||||
@bulk-delete="emit('bulkDelete')"
|
||||
|
||||
Reference in New Issue
Block a user