The open-source AI receptionist for businesses. Answers every call, books the appointment and hands over to a person when needed. You own the code and the data.
TypeScript ai-receptionistanswering-serviceappointment-bookinglivekitlocal-firstmcpopen-sourceself-hostedsiptelephonytypescriptvoice-agentvoice-ai
Server admin texts and phone fixes: shorter ledes, server admins, links, one (?) per line (PR 1924)
Janika792ed4767e4
diff --git a/apps/web/src/admin/CalendarTools.tsx b/apps/web/src/admin/CalendarTools.tsxindex 7c0a7c9e..760f4cc7 100644--- a/apps/web/src/admin/CalendarTools.tsx+++ b/apps/web/src/admin/CalendarTools.tsx@@ -77,8 +77,9 @@ function optionsOf(t: Translate, tool: CalendarTool, hasApp: boolean): SelectOpt]}-function describe(t: Translate, tool: CalendarTool, mode: CalendarToolMode): string {- if (mode === 'off') return t('admin.calendarTools.offState')+/** A tool that is on says how it connects; one that is off says nothing (the line under the rows says it once). */+function describe(t: Translate, tool: CalendarTool, mode: CalendarToolMode): string | undefined {+ if (mode === 'off') return undefinedconst texts = TOOL[tool]if (mode === 'keys' || !texts.oauthState) return t(texts.keysState)return t(texts.oauthState)@@ -129,6 +130,9 @@ export function CalendarTools() {}/>))}+ {data && tools.some(tool => data.modes[tool] === 'off') && (+ <p className="help">{t('admin.calendarTools.offState')}</p>+ )}</Loading>{problem && (<p className="k-field-msg" role="alert">diff --git a/apps/web/src/admin/Memberships.tsx b/apps/web/src/admin/Memberships.tsxindex 3c6a1995..1cd5ea0a 100644--- a/apps/web/src/admin/Memberships.tsx+++ b/apps/web/src/admin/Memberships.tsx@@ -503,7 +503,7 @@ export function WorkspaceMembersCard({ workspace: w, users, notify, reload }: Wo)}{adding && (<AddDialog- title={t('admin.memberships.workspace.addTitle', { workspace: w.name })}+ title={t('admin.memberships.workspace.addMember')}submitLabel={t('admin.memberships.workspace.addSubmit')}ready={!!pick}onClose={() => setAdding(false)}diff --git a/apps/web/src/admin/Onboarding.tsx b/apps/web/src/admin/Onboarding.tsxindex b59bda48..12b8ebc3 100644--- a/apps/web/src/admin/Onboarding.tsx+++ b/apps/web/src/admin/Onboarding.tsx@@ -5,7 +5,8 @@// Overview (Funnel.tsx), the setup reports in the Audit log.import type { FounderEmailData, SetupEmailsData } from '@linedesk/actions'import { type MessageKey, msg } from '@linedesk/i18n'-import { useT } from '@linedesk/i18n/react'+import { T, useT } from '@linedesk/i18n/react'+import { appLink } from '../ui/AppLink.tsx'import { useMemo, useState } from 'react'import { setQueryData, useQuery } from '../cachedQuery.ts'import { fmt } from '../i18n/format.ts'@@ -26,8 +27,12 @@ export const loadSetupEmails = async () => (await runAdmin('setupEmails.get', {}* then, so it cannot be turned on; one already on can still be turned off.*/function notConnectedLine(on: boolean): MessageKey {- return on ? msg('admin.onboarding.emailNotConnectedOn') : msg('admin.onboarding.emailNotConnectedOff')+ return on ? msg('admin.onboarding.emailNotConnectedOnLink') : msg('admin.onboarding.emailNotConnectedOffLink')}+/** That line, "Providers" a link to the email providers. */+const NotConnected = ({ on }: { on: boolean }) => (+ <T k={notConnectedLine(on)} values={{ link: appLink('#admin/providers/email') }} />+)export function SetupEmails() {const t = useT()@@ -54,7 +59,7 @@ export function SetupEmails() {><SettingRowtitle={t('admin.onboarding.sendSetupEmails')}- description={note && t(note)}+ description={note && <NotConnected on={on} />}control={<Loadingwhat={t('admin.onboarding.setupEmails')}@@ -172,7 +177,7 @@ export function FounderEmail() {</form><SettingRowtitle={t('admin.onboarding.sendFounderEmail')}- description={!data.emailConnected && t(notConnectedLine(on))}+ description={!data.emailConnected && <NotConnected on={on} />}control={<Switchon={on}diff --git a/apps/web/src/admin/PasskeyStepUp.test.ts b/apps/web/src/admin/PasskeyStepUp.test.tsindex 0c9ff03f..2fa71475 100644--- a/apps/web/src/admin/PasskeyStepUp.test.ts+++ b/apps/web/src/admin/PasskeyStepUp.test.ts@@ -62,7 +62,7 @@ test('the passkey dialog says what it confirms: a workspace to delete by its namconst what = stepUpLabel('workspace.delete', { workspaceId: 'ws_1', name: 'Riverside Electric' })expect(what).toBe('delete workspace Riverside Electric')expect(stepUpReason(what)).toMatch(/^Delete workspace Riverside Electric\. /)- expect(stepUpLabel('instanceAdmin.grant')).toBe('make an instance admin')+ expect(stepUpLabel('instanceAdmin.grant')).toBe('make a server admin')})test('the passkey texts follow the active language (pseudo-locale)', async () => {diff --git a/apps/web/src/admin/StatusCard.tsx b/apps/web/src/admin/StatusCard.tsxindex 39506591..559e8fa6 100644--- a/apps/web/src/admin/StatusCard.tsx+++ b/apps/web/src/admin/StatusCard.tsx@@ -175,7 +175,8 @@ export type KeyFixes = {}/** A command to run, in the row's text, with a Copy button that says "Copied" for a moment. */-function Command({ code }: { code: string }) {+/** `help`: the row's (?), kept with the Copy button so it never wraps onto a line of its own. */+function Command({ code, help }: { code: string; help?: string }) {const t = useT()const [state, setState] = useState<'idle' | 'copied' | 'failed'>('idle')useEffect(() => {@@ -195,10 +196,25 @@ function Command({ code }: { code: string }) {title={state === 'failed' ? t('common.copy.selectIt') : t('common.copy.copy')}aria-label={state === 'copied' ? t('common.copy.copied') : t('common.copy.copyThis', { text: code })}/>+ {help && <HelpTip text={help} />}</span>)}+/** A sentence with its (?) kept on the line of its last word, so the (?) never wraps onto a line of its own. */+function WithHelp({ text, help }: { text: string; help: string }) {+ const at = text.lastIndexOf(' ')+ return (+ <>+ {text.slice(0, at + 1)}+ <span className="adm-nowrap">+ {text.slice(at + 1)}+ <HelpTip text={help} />+ </span>+ </>+ )+}+/** One part as a row of the list; with `link` the whole row opens `href` (Overview, Billing). */export function StatusRow({ row, link, keys }: { row: Row; link: boolean; keys?: KeyFixes }) {const t = useT()@@ -221,11 +237,11 @@ export function StatusRow({ row, link, keys }: { row: Row; link: boolean; keys?:sub={row.problem ? (<span className={cx('adm-status-problem', bad && 'adm-status-bad')}>- {row.problem}+ {row.help && !row.command && !row.docs ? <WithHelp text={row.problem} help={row.help} /> : row.problem}{row.command && (<>{' '}- <Command code={row.command} />+ <Command code={row.command} help={row.help ?? undefined} /></>)}{row.docs && (@@ -234,7 +250,7 @@ export function StatusRow({ row, link, keys }: { row: Row; link: boolean; keys?:<ExternalLink href={row.docs}>{t('admin.status.agent.docs')}</ExternalLink></>)}- {row.help && <HelpTip text={row.help} />}+ {row.help && !row.command && row.docs && <HelpTip text={row.help} />}</span>) : null}diff --git a/apps/web/src/admin/admin.css b/apps/web/src/admin/admin.cssindex 9615d12d..ddbe9bc9 100644--- a/apps/web/src/admin/admin.css+++ b/apps/web/src/admin/admin.css@@ -970,16 +970,6 @@z-index: 1;margin-left: 6px;}-/* Phones (the list wraps a row below 560px): a value that no longer fits next to the name keeps to the right edge- on the next line, as on wide screens, instead of starting under the mark. */-@media (max-width: 559px) {- .adm-status-row .k-row-aside {- margin-left: auto;- }- .adm-status-row .k-row-main {- flex-basis: 110px;- }-}/* A command or a docs link in a problem: above the row's stretched link, so they copy and open instead. */.adm-status-problem .adm-cmd,.adm-status-problem .k-link {@@ -2282,3 +2272,8 @@padding-top: 0;border-top: 0;}++/* A last word and its (?) that wrap together (StatusCard's WithHelp). */+.adm-nowrap {+ white-space: nowrap;+}diff --git a/packages/i18n/locales/de/admin.json b/packages/i18n/locales/de/admin.jsonindex 4eafdbb7..1cbeba6b 100644--- a/packages/i18n/locales/de/admin.json+++ b/packages/i18n/locales/de/admin.json@@ -977,7 +977,6 @@"memberships.workspace.addMember": "Mitglied hinzufügen…","memberships.workspace.addSubmit": "Mitglied hinzufügen","memberships.workspace.addTip": "Einen vorhandenen Nutzer hinzufügen",- "memberships.workspace.addTitle": "Mitglied zu {workspace} hinzufügen","memberships.workspace.empty": "Keine Mitglieder.","memberships.workspace.invitedBy": "Eingeladen von {inviter} · gültig bis {date}","memberships.workspace.invitedByExpired": "Eingeladen von {inviter} · abgelaufen",@@ -1020,8 +1019,6 @@"onboarding.email.firstCall": "Erster Anruf","onboarding.email.founder": "Persönliche E-Mail","onboarding.email.week": "Woche",- "onboarding.emailNotConnectedOff": "Verbinde zuerst E-Mail unter Anbieter: Bis dahin erreicht keine Einrichtungs-E-Mail irgendwen.",- "onboarding.emailNotConnectedOn": "E-Mail ist unter Anbieter nicht verbunden: Bis dahin geht keine raus.","onboarding.founderAddress": "Absenderadresse","onboarding.founderAddressHelp": "Sie muss auf einer Domain liegen, für die dein E-Mail-Anbieter sendet.","onboarding.founderEmail": "Persönliche E-Mail von einem Gründer",diff --git a/packages/i18n/locales/en/admin.json b/packages/i18n/locales/en/admin.jsonindex 5ed0d729..75667ce5 100644--- a/packages/i18n/locales/en/admin.json+++ b/packages/i18n/locales/en/admin.json@@ -631,7 +631,7 @@"bills.rules.field.rechargeCapPerWorkspaceCents": "Recharge cap added per workspace","bills.rules.field.rechargeCapPerWorkspaceCents.help": "Auto-recharges stop for the month at a bill's cap. Each workspace after the first raises the cap by this much.","bills.rules.field.trialConcurrentCalls": "Calls at the same time per bill, in the trial",- "bills.rules.field.trialConcurrentCalls.help": "During the free trial a bill answers at most this many calls at once over all its workspaces, so a fresh trial number cannot be flooded. An instance admin's cap for a bill overrides it.",+ "bills.rules.field.trialConcurrentCalls.help": "During the free trial a bill answers at most this many calls at once over all its workspaces, so a fresh trial number cannot be flooded. A server admin's cap for a bill overrides it.","bills.rules.field.trialDays": "Free trial","bills.rules.field.trialDays.help": "How long a new sign-up uses the product before the first plan charge. The card is saved at Checkout.","bills.rules.field.workspaceMonthlyCents": "Plan price per workspace, monthly",@@ -993,10 +993,9 @@"memberships.user.theWorkspace": "the workspace","memberships.user.title": "Workspaces","memberships.user.workspace": "Workspace",- "memberships.workspace.addMember": "Add member…",+ "memberships.workspace.addMember": "Add a member","memberships.workspace.addSubmit": "Add member","memberships.workspace.addTip": "Add an existing user",- "memberships.workspace.addTitle": "Add a member to {workspace}","memberships.workspace.empty": "No members.","memberships.workspace.invitedBy": "Invited by {inviter} · expires {date}","memberships.workspace.invitedByExpired": "Invited by {inviter} · expired",@@ -1040,8 +1039,8 @@"onboarding.email.firstCall": "First call","onboarding.email.founder": "Personal email","onboarding.email.week": "Week",- "onboarding.emailNotConnectedOff": "Connect email under Providers first: until then no setup email can reach anyone.",- "onboarding.emailNotConnectedOn": "Email is not connected under Providers: none go out until it is.",+ "onboarding.emailNotConnectedOffLink": "Connect email under <link>Providers</link> first: until then this email can't be sent.",+ "onboarding.emailNotConnectedOnLink": "Email is not connected under <link>Providers</link>: none go out until it is.","onboarding.founderAddress": "From address","onboarding.founderAddressHelp": "It must be on a domain your email provider sends for.","onboarding.founderEmail": "Personal email from a founder",@@ -1607,14 +1606,14 @@"sections.access.description": "Who may sign up and from where, its limits, and the emails new workspaces get.","sections.access.label": "Sign-up & access","sections.audit.label": "Audit log",- "sections.audit.summary": "Who changed what, newest first. Setup reports are here too; Stripe events are under Billing.",+ "sections.audit.summary": "Who changed what, newest first.","sections.billing.description": "Bills, payments and refunds, the prices and rules, and the billing switch.","sections.billing.label": "Billing","sections.branding.description": "Your name, logo and colors instead of Linedesk.","sections.branding.label": "Branding","sections.callQuality.description": "How good calls are: the levels assistants can pick, the reply delay, after-call transcription and the calls the evaluation flagged.","sections.callQuality.label": "Call quality",- "sections.features.description": "What workspaces get on this server, by area. Change opens a feature's settings.",+ "sections.features.description": "What workspaces get on this server.","sections.features.label": "Features","sections.group.assistant": "Assistant","sections.group.customers": "Customers",@@ -1628,7 +1627,7 @@"sections.providers.label": "Providers","sections.users.description": "Everyone who can sign in.","sections.users.label": "Users",- "sections.workspaces.description": "Every workspace on this server, the ones at risk, and usage by month.",+ "sections.workspaces.description": "Every workspace on this server.","sections.workspaces.label": "Workspaces","settings.calendarTools.help": "Which calendar tools members may connect. The apps for connecting with one click are set up under <link>Providers › Calendar</link>.","settings.calendarTools.title": "Calendar tools",@@ -1701,8 +1700,8 @@"stepUp.what.billingRules": "change the billing rules","stepUp.what.clientPartner": "Changing a workspace's partner","stepUp.what.impersonate": "sign in as this user",- "stepUp.what.instanceAdminGrant": "make an instance admin",- "stepUp.what.instanceAdminRevoke": "remove an instance admin",+ "stepUp.what.instanceAdminGrant": "make a server admin",+ "stepUp.what.instanceAdminRevoke": "remove a server admin","stepUp.what.issuePasskeyEnrolment": "issue a passkey enrollment code","stepUp.what.membershipAdd": "add someone to a workspace","stepUp.what.membershipRemove": "remove an admin from a workspace",@@ -1896,7 +1895,7 @@"users.search": "Search users","workspaces.badge.disabled": "Disabled","workspaces.cap.aside": "Empty: no cap",- "workspaces.cap.description": "On the estimated cost of this month's calls (UTC). Once reached, the assistant stops answering: callers hear that the business will call back, and each call is filed as missed with Call back. Owners and instance admins get an email at 80% and 100%.",+ "workspaces.cap.description": "On the estimated cost of this month's calls (UTC). Once reached, the assistant stops answering: callers hear that the business will call back, and each call is filed as missed with Call back. Owners and server admins get an email at 80% and 100%.","workspaces.cap.label": "Cap in USD","workspaces.cap.none": "{name} has no spending cap.","workspaces.cap.placeholder": "No cap",diff --git a/packages/i18n/locales/es/admin.json b/packages/i18n/locales/es/admin.jsonindex a9a82e14..b3bc08cf 100644--- a/packages/i18n/locales/es/admin.json+++ b/packages/i18n/locales/es/admin.json@@ -977,7 +977,6 @@"memberships.workspace.addMember": "Agregar miembro…","memberships.workspace.addSubmit": "Agregar miembro","memberships.workspace.addTip": "Agregar un usuario existente",- "memberships.workspace.addTitle": "Agregar un miembro a {workspace}","memberships.workspace.empty": "No hay miembros.","memberships.workspace.invitedBy": "Invitado por {inviter} · vence el {date}","memberships.workspace.invitedByExpired": "Invitado por {inviter} · vencida",@@ -1020,8 +1019,6 @@"onboarding.email.firstCall": "Primera llamada","onboarding.email.founder": "Correo personal","onboarding.email.week": "Semana",- "onboarding.emailNotConnectedOff": "Conecta primero el correo en Proveedores: hasta entonces, ningún correo de configuración le llega a nadie.",- "onboarding.emailNotConnectedOn": "El correo no está conectado en Proveedores: no sale ninguno hasta que lo esté.","onboarding.founderAddress": "Dirección del remitente","onboarding.founderAddressHelp": "Debe estar en un dominio desde el que envía tu proveedor de correo.","onboarding.founderEmail": "Correo personal de un fundador",diff --git a/packages/i18n/locales/fr/admin.json b/packages/i18n/locales/fr/admin.jsonindex 05f740e7..07ca3988 100644--- a/packages/i18n/locales/fr/admin.json+++ b/packages/i18n/locales/fr/admin.json@@ -977,7 +977,6 @@"memberships.workspace.addMember": "Ajouter un membre…","memberships.workspace.addSubmit": "Ajouter le membre","memberships.workspace.addTip": "Ajouter un utilisateur existant",- "memberships.workspace.addTitle": "Ajouter un membre à {workspace}","memberships.workspace.empty": "Aucun membre.","memberships.workspace.invitedBy": "Invité par {inviter} · expire le {date}","memberships.workspace.invitedByExpired": "Invité par {inviter} · expirée",@@ -1020,8 +1019,6 @@"onboarding.email.firstCall": "Premier appel","onboarding.email.founder": "E-mail personnel","onboarding.email.week": "Semaine",- "onboarding.emailNotConnectedOff": "Connectez d'abord l'e-mail dans Fournisseurs : d'ici là, aucun e-mail de configuration ne peut arriver.",- "onboarding.emailNotConnectedOn": "L'e-mail n'est pas connecté dans Fournisseurs : aucun ne part tant qu'il ne l'est pas.","onboarding.founderAddress": "Adresse d'expédition","onboarding.founderAddressHelp": "Elle doit être sur un domaine pour lequel votre fournisseur d'e-mail envoie.","onboarding.founderEmail": "E-mail personnel d'un fondateur",diff --git a/packages/i18n/locales/ja/admin.json b/packages/i18n/locales/ja/admin.jsonindex 2bf86167..e488a205 100644--- a/packages/i18n/locales/ja/admin.json+++ b/packages/i18n/locales/ja/admin.json@@ -977,7 +977,6 @@"memberships.workspace.addMember": "メンバーを追加…","memberships.workspace.addSubmit": "メンバーを追加","memberships.workspace.addTip": "既存のユーザーを追加",- "memberships.workspace.addTitle": "{workspace}にメンバーを追加","memberships.workspace.empty": "メンバーはいません。","memberships.workspace.invitedBy": "{inviter}が招待 · 有効期限:{date}","memberships.workspace.invitedByExpired": "{inviter}が招待 · 期限切れ",@@ -1020,8 +1019,6 @@"onboarding.email.firstCall": "最初の通話","onboarding.email.founder": "個人メール","onboarding.email.week": "1週間",- "onboarding.emailNotConnectedOff": "先に「プロバイダー」でメールを接続してください。それまでセットアップメールは誰にも届きません。",- "onboarding.emailNotConnectedOn": "「プロバイダー」でメールが接続されていません。接続されるまで送信されません。","onboarding.founderAddress": "送信元アドレス","onboarding.founderAddressHelp": "メールプロバイダーが送信できるドメインのアドレスにしてください。","onboarding.founderEmail": "創業者からの個人メール",diff --git a/packages/i18n/locales/pt-BR/admin.json b/packages/i18n/locales/pt-BR/admin.jsonindex 192dd5c5..ffd8053b 100644--- a/packages/i18n/locales/pt-BR/admin.json+++ b/packages/i18n/locales/pt-BR/admin.json@@ -977,7 +977,6 @@"memberships.workspace.addMember": "Adicionar membro…","memberships.workspace.addSubmit": "Adicionar membro","memberships.workspace.addTip": "Adicionar um usuário existente",- "memberships.workspace.addTitle": "Adicionar um membro a {workspace}","memberships.workspace.empty": "Nenhum membro.","memberships.workspace.invitedBy": "Convidado por {inviter} · expira em {date}","memberships.workspace.invitedByExpired": "Convidado por {inviter} · expirado",@@ -1020,8 +1019,6 @@"onboarding.email.firstCall": "Primeira chamada","onboarding.email.founder": "E-mail pessoal","onboarding.email.week": "Semana",- "onboarding.emailNotConnectedOff": "Conecte o e-mail em Provedores primeiro: até lá, nenhum e-mail de configuração chega a ninguém.",- "onboarding.emailNotConnectedOn": "O e-mail não está conectado em Provedores: nenhum é enviado até que esteja.","onboarding.founderAddress": "Endereço do remetente","onboarding.founderAddressHelp": "Precisa estar em um domínio pelo qual o seu provedor de e-mail envia.","onboarding.founderEmail": "E-mail pessoal de um fundador",