diff --git a/src/extensions/arcade/slack/scrapbook.ts b/src/extensions/arcade/slack/scrapbook.ts index ce007cc3..04dae9be 100644 --- a/src/extensions/arcade/slack/scrapbook.ts +++ b/src/extensions/arcade/slack/scrapbook.ts @@ -75,6 +75,13 @@ Slack.action(Actions.CHOOSE_SESSIONS, async ({ ack, body }) => { } ] }, + include: { + goal: { + select: { + name: true, + } + }, + }, }); log(`\`\`\`${JSON.stringify(sessions)}\`\`\``) diff --git a/src/extensions/arcade/slack/views/scrapbook.ts b/src/extensions/arcade/slack/views/scrapbook.ts index 95edd98f..255145f2 100644 --- a/src/extensions/arcade/slack/views/scrapbook.ts +++ b/src/extensions/arcade/slack/views/scrapbook.ts @@ -114,6 +114,10 @@ export class ChooseSessions { text: `${work} - ${session.createdAt.getMonth() + 1}/${session.createdAt.getDate()}`, emoji: true, }, + description: { + type: "plain_text", + text: `Goal: ${session.goal.name}`, + }, value: session.id, } }), @@ -146,4 +150,4 @@ export class ChooseSessions { }, }))); } -} \ No newline at end of file +}