feat(web): no_recipient toast copy arm (#18)

buildCallUndeliverableToast renders "{peerLabel} couldn't ring anyone."
for the single-failure terminal case; multi-failure + non-terminal paths
fall through to existing lines (which already fold the new reason in by
peer label). TDD — four new assertions.
This commit is contained in:
Jannis Braun
2026-04-24 21:15:21 +02:00
parent 26a4925032
commit b16ece93b8
2 changed files with 38 additions and 0 deletions
@@ -76,6 +76,8 @@ export function buildCallUndeliverableToast(
return `Could not reach ${label}. Try again in a moment.`;
case 'livekit_unavailable':
return 'Voice is not configured on this instance.';
case 'no_recipient':
return `${label} couldn't ring anyone.`;
default:
return `Call to ${label} could not be placed.`;
}