Fix CSS layout width and add more user friendly messages

This commit is contained in:
khalid@traclabs.com
2026-04-23 01:10:54 -05:00
parent 5229ccdb0f
commit c61f3acae9
6 changed files with 86 additions and 45 deletions

View File

@@ -1,37 +1,37 @@
export const SMS_TEMPLATES = {
PROPOSAL_SUMMARY: (summary: string, _proposalId: string) =>
`Proposed change: ${summary}\n\nReply YES to apply or NO to cancel.`,
`I'd like to: ${summary}\n\nReply YES to apply or NO to cancel.`,
APPLIED: (summary: string) =>
`Done! ${summary} Your site will update shortly.`,
`Done! ${summary} Your site will update in a moment.`,
REJECTED: () =>
`Got it — change cancelled. Send a new message anytime.`,
`No problem — I cancelled that change. Just text me whenever you'd like to make an edit!`,
LLM_UNAVAILABLE: () =>
`Sorry, I couldn't process that right now. Please try again in a few minutes.`,
`Sorry, I'm having trouble processing that right now. Could you try again in a few minutes?`,
ROUTING_AMBIGUOUS: (options: string) =>
`I'm not sure which section you mean. Did you mean: ${options}? Reply with the number or name.`,
`I'm not sure which part of your site you mean. Could you be more specific? Your site has: ${options}`,
ROUTING_NO_MATCH: (list: string) =>
`I couldn't find a section matching that request. Your current sections are: ${list}. Try again?`,
`I couldn't find a matching section on your site. You currently have: ${list}. Want to try again?`,
PROPOSAL_EXPIRED: () =>
`That change request has expired. Please send your edit again to start over.`,
`That change request has expired. Just send your edit again and I'll set it up!`,
PROPOSAL_ALREADY_APPLIED: () =>
`That change was already applied.`,
`That change was already made to your site!`,
INVALID_CONFIRM: () =>
`Reply YES to apply or NO to cancel.`,
`Just reply YES to apply or NO to cancel.`,
RATE_LIMITED: () =>
`You've sent several requests recently. Please wait a few minutes before trying again.`,
`You've been busy! Give me a few minutes to catch up, then try again.`,
MMS_NOT_SUPPORTED: () =>
`Image uploads aren't supported yet. Please describe your change in text.`,
`I can't handle images yet — just describe what you'd like to change in a text message!`,
HELP: () =>
`I can help you edit your website via text! Just tell me what to change. Examples:\n- "Change the hero headline to Welcome Home"\n- "Hide the testimonials section"\n- "Add an event: Wine Tasting, June 15, 7pm"\n- "What does my about section say?"\n\nAfter each edit, I'll show you the change and you reply YES to apply or NO to cancel.`,
`I can help you update your website right from here! Just text me what you'd like to change. For example:\n\n- "Change the headline to Welcome Home"\n- "Hide the testimonials"\n- "Add an event: Wine Tasting, June 15, 7pm"\n- "What's on my site right now?"\n\nI'll show you the change first, and you reply YES to make it live or NO to cancel.`,
} as const;