fix(whatsapp-inbox): name both ways to route receipts for multi-company senders (#1424)

Field feedback after the first live receipt: the link confirmation told a
multi-company sender only to set a default company in the panel, so the
per-receipt path looked unsupported even though it is the one that
actually runs when no default is set. Now it names both: set a default,
or send one receipt at a time and answer the company question after each.

The guidance also moves to its own paragraph. Run together with the AI
disclosure it read as one sentence, which is how a real user came away
believing the bot had called itself a "mänsklig AI-assistent".

New copy test asserts the promise (both options present, disclosure kept
in its own paragraph, single-company message unchanged) rather than the
exact wording, so a rewrite stays free but a dropped option fails.
Mutation-checked against the previous copy.

Co-authored-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Jakob Wennberg
2026-08-05 19:43:37 +02:00
committed by GitHub
co-authored by Jakob Wennberg Claude Fable 5
parent 77d20287b9
commit c84f951a5c
2 changed files with 44 additions and 2 deletions
@@ -77,9 +77,13 @@ const SV = {
'Två tips: skicka som _dokument_ (gem-ikonen) för bästa skärpa, och en fil per kvitto. Flersidiga kvitton skickas som PDF.'
const outro =
'Jag är en AI-assistent. Skriv *hjälp* för mänsklig support, *stopp* för att koppla från.'
// Two real ways to route a receipt, and the old copy named only one,
// which read as if the per-receipt path did not exist. Own paragraph:
// run together with the outro it read as a single sentence.
const multi =
companyCount > 1
? `Du är med i ${companyCount} företag i Accounted. Välj standardföretag i panelen så hamnar kvitton rätt. `
? `Du är med i ${companyCount} företag i Accounted. Välj antingen ett standardföretag i panelen, ` +
'eller skicka ett kvitto i taget så frågar jag vilket företag det gäller direkt efter varje kvitto.\n\n'
: ''
return `${intro}\n\n${tips}\n\n${multi}${outro}`
},
@@ -206,7 +210,8 @@ const EN: typeof SV = {
'I am an AI assistant. Type *hjälp* for human support, *stopp* to disconnect.'
const multi =
companyCount > 1
? `You belong to ${companyCount} companies in Accounted. Pick a default company in the panel so receipts land in the right one. `
? `You belong to ${companyCount} companies in Accounted. Either pick a default company in the panel, ` +
'or send one receipt at a time and I will ask which company it belongs to right after each one.\n\n'
: ''
return `${intro}\n\n${tips}\n\n${multi}${outro}`
},