feat(bot): quiet finance topics and support purchase payers

This commit is contained in:
2026-03-22 20:27:43 +04:00
parent 7d706eba07
commit 7665af0268
22 changed files with 1044 additions and 81 deletions

View File

@@ -276,8 +276,13 @@ export const enBotTranslations: BotTranslationCatalog = {
purchase: {
sharedPurchaseFallback: 'shared purchase',
processing: 'Checking that purchase...',
proposal: (summary: string, calculationNote: string | null, participants: string | null) =>
`I think this shared purchase was: ${summary}.${calculationNote ? `\n${calculationNote}` : ''}${participants ? `\n\n${participants}` : ''}\nConfirm or cancel below.`,
proposal: (
summary: string,
payer: string | null,
calculationNote: string | null,
participants: string | null
) =>
`I think this shared purchase was: ${summary}.${payer ? `\n${payer}` : ''}${calculationNote ? `\n${calculationNote}` : ''}${participants ? `\n\n${participants}` : ''}\nConfirm or cancel below.`,
calculatedAmountNote: (explanation: string | null) =>
explanation
? `I calculated the total as ${explanation}. Is that right?`
@@ -295,6 +300,12 @@ export const enBotTranslations: BotTranslationCatalog = {
participantExcluded: (displayName) => `- ${displayName} (excluded)`,
participantToggleIncluded: (displayName) => `${displayName}`,
participantToggleExcluded: (displayName) => `${displayName}`,
payerHeading: 'Paid by:',
payerSelected: (displayName) => `Paid by: ${displayName}`,
payerQuestion: 'Who actually bought this?',
payerFallbackQuestion: 'I could not tell who bought this. Pick the payer below.',
payerButton: (displayName) => `${displayName} paid`,
payerSelectedToast: (displayName) => `Set payer to ${displayName}.`,
confirmButton: 'Confirm',
calculatedConfirmButton: 'Looks right',
calculatedFixAmountButton: 'Fix amount',