Skip to content

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.

Workspace and account settings onto the shared blocks: rows, one card, texts (PR 1922)

Janik9c50c6e933ff
diff --git a/apps/web/src/app.css b/apps/web/src/app.css
index 4837a632..68e7fed6 100644
--- a/apps/web/src/app.css
+++ b/apps/web/src/app.css
@@ -763,19 +763,6 @@ a.auth-switch {
margin-left: 6px;
vertical-align: middle;
}
-.team-leave {
- display: flex;
- align-items: center;
- gap: 12px;
-}
-/* Phone: what the step does at full width, its button under it (beside it the text was a narrow column). */
-@media (max-width: 560px) {
- .team-leave {
- flex-direction: column-reverse;
- align-items: flex-start;
- gap: 10px;
- }
-}
.team-inv-actions {
display: flex;
gap: 2px;
@@ -1713,25 +1700,6 @@ a.k-btn {
.pn-release {
color: var(--danger);
}
-.pn-carrier {
- display: flex;
- align-items: center;
- gap: 6px;
- margin: -6px 0 0;
- font-size: 12.5px;
- line-height: 18px;
- color: var(--ink-muted);
-}
-.pn-carrier-value {
- color: var(--ink);
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-/* The carrier's skeleton (or its problem) sits in the line, after "Carrier:". */
-.pn-carrier-loading .sk-text {
- margin: 4px 0;
-}
/* Whether the assistant answers a number: its status mark and words (Settings › Phone numbers). */
.pn-answering {
display: inline-flex;
diff --git a/apps/web/src/integrations/catalog.test.ts b/apps/web/src/integrations/catalog.test.ts
index 79d49fb9..6d1dcf1d 100644
--- a/apps/web/src/integrations/catalog.test.ts
+++ b/apps/web/src/integrations/catalog.test.ts
@@ -494,7 +494,8 @@ describe('the catalog list (LIN-767)', () => {
test('ones this server does not offer leave their category and fold into one list, in catalog order', () => {
const v = view()
- expect(v.folded.map(i => i.id)).toEqual(['google', 'microsoft', 'caldav', 'calcom', 'calendly'])
+ // Google is suggested on top (with whom to ask), so it is not folded again.
+ expect(v.folded.map(i => i.id)).toEqual(['microsoft', 'caldav', 'calcom', 'calendly'])
expect(v.groups.flatMap(g => g.items).some(i => calendarsOff(i.id) === 'unavailable')).toBe(false)
})
test('a category with nothing offered disappears, and so does its chip', () => {
@@ -514,6 +515,12 @@ describe('the catalog list (LIN-767)', () => {
expect(view({ searching: true }).suggested).toEqual([])
expect(view({ kind: null }).suggested).toEqual([])
})
+ test('a suggested one is listed once: not again in its category', () => {
+ const v = view()
+ const below = [...v.groups.flatMap(g => g.items), ...v.folded].map(i => i.id)
+ for (const id of v.suggested.map(i => i.id)) expect(below).not.toContain(id)
+ expect(view({ only: 'crm' }).groups[0]?.items.map(i => i.id)).toContain('hubspot')
+ })
test('a category filter folds only its own', () => {
expect(view({ only: 'crm' }).folded).toEqual([])
expect(view({ only: 'calendars' }).folded.length).toBe(5)
diff --git a/apps/web/src/integrations/catalog.ts b/apps/web/src/integrations/catalog.ts
index a81a7aec..ae747548 100644
--- a/apps/web/src/integrations/catalog.ts
+++ b/apps/web/src/integrations/catalog.ts
@@ -334,9 +334,10 @@ export function suggestedFor(
}
/**
- * What the catalog shows (LIN-767): the suggested ones on top (only for All, not while searching), the categories with
- * what this server offers, and the ones it does not offer folded into one line at the end (in catalog order). `chips`:
- * the categories that have something this server offers; a category with nothing else is no chip.
+ * What the catalog shows (LIN-767): the suggested ones on top (only for All, not while searching; then not again in
+ * their category), the categories with what this server offers, and the ones it does not offer folded into one line at
+ * the end (in catalog order). `chips`: the categories that have something this server offers; a category with nothing
+ * else is no chip.
*/
export function catalogView(
found: readonly Integration[],
@@ -353,11 +354,14 @@ export function catalogView(
},
) {
const offered = (i: Integration) => status(i.id) !== 'unavailable'
+ const suggested = searching || only ? [] : suggestedFor(kind, status)
+ // Listed once: a suggested one is not repeated in its category below (settings audit, 2026-11-26).
+ const rest = found.filter(i => !suggested.includes(i))
return {
- suggested: searching || only ? [] : suggestedFor(kind, status),
- groups: byCategory(found.filter(offered), only),
+ suggested,
+ groups: byCategory(rest.filter(offered), only),
folded: byCategory(
- found.filter(i => !offered(i)),
+ rest.filter(i => !offered(i)),
only,
).flatMap(g => g.items),
chips: CATEGORIES.filter(c => CATALOG.some(i => i.category === c && offered(i))),
diff --git a/apps/web/src/settings/Carrier.tsx b/apps/web/src/settings/Carrier.tsx
index f4fd04d3..8f4fca96 100644
--- a/apps/web/src/settings/Carrier.tsx
+++ b/apps/web/src/settings/Carrier.tsx
@@ -5,12 +5,13 @@
import type { CarrierStatusData, CarrierTestData, WorkspaceCarrier } from '@linedesk/actions'
import { carrierFields } from '@linedesk/actions'
import { T, useT } from '@linedesk/i18n/react'
-import { appLink, LinkButton } from '../ui/AppLink.tsx'
+import { appLink } from '../ui/AppLink.tsx'
import { type FormEvent, useState } from 'react'
import { RadioCard } from '../ui/controls.tsx'
import { Dialog, SecretInput, FormField } from '../ui/form.tsx'
import { Button, Note } from '../ui/kit.tsx'
import { Loading, Skeleton } from '../ui/LoadStates.tsx'
+import { SettingRow } from '../ui/SettingRow.tsx'
import {
type CarrierDraft,
carrierChoiceText,
@@ -43,41 +44,40 @@ export function useCarrierStatus(canEdit: boolean): CarrierStatusData | null {
}
/**
- * The carrier as a quiet line under the Phone numbers title, with Change; and its dialog. `serverProvider`: the
- * carrier the session reports, named for the default while the workspace uses it.
+ * The carrier as a setting row under the numbers (its name as the value, Change at the right end); and its dialog.
+ * `serverProvider`: the carrier the session reports, named for the default while the workspace uses it.
*/
export function CarrierLine({ serverProvider = null }: { serverProvider?: string | null }) {
const t = useT()
const query = useQuery(CARRIER, loadCarrier)
const status = query.data ?? null
const [open, setOpen] = useState(false)
- // While it loads, the line is already in place, so the numbers below it never move down.
- if (!status)
- return (
- <div className="pn-carrier">
- {t('settings.carrier.line.label')}
- <Loading
- what={t('settings.carrier.line.loading')}
- loading
- error={query.error}
- onRetry={() => void query.reload()}
- skeleton={<Skeleton shape="text" width={140} />}
- className="pn-carrier-loading"
- />
- </div>
- )
return (
<>
- <p className="pn-carrier">
- <T
- k="settings.carrier.line.value"
- values={{ value: <span className="pn-carrier-value">{carrierSummary(status)}</span> }}
- />
- <LinkButton onClick={() => setOpen(true)} title={t('settings.carrier.line.changeTip')}>
- {t('common.action.change')}
- </LinkButton>
- </p>
- {open && (
+ <SettingRow
+ title={t('settings.carrier.line.title')}
+ help={carrierPurpose()}
+ control={
+ status ? (
+ <>
+ <span className="k-setrow-value">{carrierSummary(status)}</span>
+ <Button size="sm" title={t('settings.carrier.line.changeTip')} onClick={() => setOpen(true)}>
+ {t('common.action.change')}
+ </Button>
+ </>
+ ) : (
+ // While it loads the row is already in place, so nothing below it moves.
+ <Loading
+ what={t('settings.carrier.line.loading')}
+ loading
+ error={query.error}
+ onRetry={() => void query.reload()}
+ skeleton={<Skeleton width={160} height={28} />}
+ />
+ )
+ }
+ />
+ {open && status && (
<CarrierDialog
status={status}
serverProvider={status.carrier === 'default' ? serverProvider : null}
diff --git a/apps/web/src/settings/DangerZone.tsx b/apps/web/src/settings/DangerZone.tsx
index 9a9ce6cc..aeb27558 100644
--- a/apps/web/src/settings/DangerZone.tsx
+++ b/apps/web/src/settings/DangerZone.tsx
@@ -24,7 +24,8 @@ import { LeaveWorkspace } from '../team/TeamPage.tsx'
import { useTeam } from '../team/team-api.ts'
import { useSupportAccess } from '../supportAccess.ts'
import { DangerConfirmDialog } from '../ui/DangerConfirmDialog.tsx'
-import { Loading, Skeleton } from '../ui/LoadStates.tsx'
+import { Loading } from '../ui/LoadStates.tsx'
+import { SettingRow, SettingRows, SkeletonSettingRows } from '../ui/SettingRow.tsx'
import { Button, Note } from '../ui/kit.tsx'
import { deleteOwnConfirmation, ownAccountWarning, reopenAfterSignIn, takeReopen } from './dangerZoneModel.ts'
import { Section } from './fields.tsx'
@@ -90,47 +91,49 @@ export function DangerZone({ workspaceName, isInstanceAdmin }: Props) {
const team = useTeam()
const supportAccess = useSupportAccess()
const data = team.data ?? null
+ const title = t('settings.workspace.nav.danger.label')
// Leaving and deleting are the person's own: never during support access (apps/api/src/impersonation-guard.ts).
if (supportAccess)
return (
- <Section id="team-leave" title={t('settings.workspace.nav.danger.label')}>
+ <Section id="team-leave" title={title}>
<span className="help">{t('settings.readOnly.supportAccess')}</span>
</Section>
)
if (!data)
return (
- <Section id="team-leave" title={t('settings.danger.leave.title')}>
+ <Section id="team-leave" title={title}>
<Loading
what={t('settings.danger.leave.loading')}
loading
error={team.error}
onRetry={() => void team.reload()}
- skeleton={<Skeleton width={150} height={32} />}
+ skeleton={<SkeletonSettingRows rows={2} control="button" />}
/>
</Section>
)
const role = data.members.find(m => m.userId === data.me)?.role
// The workspace's white-label partner (docs/white-label.md), also while its team is suspended and has no memberships.
const partner = data.partner
+ // One card, one row per step, its button at the right end like every setting row (settings audit, 2026-11-26).
return (
- <>
- <LeaveWorkspace data={data} isInstanceAdmin={isInstanceAdmin} />
- {role === 'owner' && partner && (
- <RemovePartner
- workspaceName={workspaceName}
- partner={partner}
- invited={data.members
- .filter(m => m.invitedByPartner)
- .map(m => ({ memberId: m.memberId, name: m.name, email: m.email }))}
- />
- )}
- {role === 'owner' && <DeleteWorkspace workspaceName={workspaceName} />}
- {role === 'admin' && (
- <Section id="ws-delete" title={t('settings.danger.delete.action')}>
- <span className="help">{t('settings.danger.delete.onlyOwner')}</span>
- </Section>
- )}
- </>
+ <Section id="team-leave" title={title}>
+ <SettingRows>
+ <LeaveWorkspace data={data} isInstanceAdmin={isInstanceAdmin} />
+ {role === 'owner' && partner && (
+ <RemovePartner
+ workspaceName={workspaceName}
+ partner={partner}
+ invited={data.members
+ .filter(m => m.invitedByPartner)
+ .map(m => ({ memberId: m.memberId, name: m.name, email: m.email }))}
+ />
+ )}
+ {role === 'owner' && <DeleteWorkspace workspaceName={workspaceName} />}
+ {role === 'admin' && (
+ <SettingRow title={t('settings.danger.delete.action')} description={t('settings.danger.delete.onlyOwner')} />
+ )}
+ </SettingRows>
+ </Section>
)
}
@@ -148,15 +151,24 @@ function DeleteWorkspace({ workspaceName }: Pick<Props, 'workspaceName'>) {
if (workspaceId && takeReopen(workspaceId)) setOpen(true)
}, [workspaceId])
return (
- <Section id="ws-delete" title={t('settings.danger.delete.action')}>
- <div className="team-leave">
- <Button variant="danger-outline" title={t('settings.danger.delete.buttonTip')} onClick={() => setOpen(true)}>
- {t('settings.danger.delete.button')}
- </Button>
- <span className="help">{t('settings.danger.delete.help', { name: workspaceName })}</span>
- </div>
+ <>
+ <SettingRow
+ id="ws-delete"
+ title={t('settings.danger.delete.action')}
+ description={t('settings.danger.delete.help', { name: workspaceName })}
+ control={
+ <Button
+ size="sm"
+ variant="danger-outline"
+ title={t('settings.danger.delete.buttonTip')}
+ onClick={() => setOpen(true)}
+ >
+ {t('settings.danger.delete.button')}
+ </Button>
+ }
+ />
{open && workspaceId && <DeleteDialog workspaceId={workspaceId} onClose={() => setOpen(false)} />}
- </Section>
+ </>
)
}
@@ -269,13 +281,17 @@ function RemovePartner({
const [asking, setAsking] = useState(false)
const [removing, setRemoving] = useState<Set<string>>(new Set())
return (
- <Section id="ws-partner" title={t('settings.danger.partner.title')}>
- <div className="team-leave">
- <Button variant="danger-outline" onClick={() => setAsking(true)}>
- {t('settings.danger.partner.action')}
- </Button>
- <span className="help">{t('settings.danger.partner.help', { partner })}</span>
- </div>
+ <>
+ <SettingRow
+ id="ws-partner"
+ title={t('settings.danger.partner.title')}
+ description={t('settings.danger.partner.help', { partner })}
+ control={
+ <Button size="sm" variant="danger-outline" onClick={() => setAsking(true)}>
+ {t('settings.danger.partner.action')}
+ </Button>
+ }
+ />
{asking && (
<DangerConfirmDialog
confirm={{
@@ -309,6 +325,6 @@ function RemovePartner({
/>
</DangerConfirmDialog>
)}
- </Section>
+ </>
)
}
diff --git a/apps/web/src/settings/OwnPhoneSystem.tsx b/apps/web/src/settings/OwnPhoneSystem.tsx
index e1c3c03a..90612e3d 100644
--- a/apps/web/src/settings/OwnPhoneSystem.tsx
+++ b/apps/web/src/settings/OwnPhoneSystem.tsx
@@ -18,7 +18,7 @@ import { Loading, SkeletonList } from '../ui/LoadStates.tsx'
import { PhoneInput } from '../ui/PhoneInput.tsx'
import { TextInput } from './fields.tsx'
import { callAction, useWriteAction } from './settings-api.ts'
-import { LinkButton } from '../ui/AppLink.tsx'
+import { SettingRow } from '../ui/SettingRow.tsx'
const SIP_TRUNK = 'workspace.sipTrunk'
const loadSipTrunk = () => callAction<SipTrunkData>('sipTrunk.get')
@@ -28,19 +28,30 @@ export function sipAddress(e164: string, trunk: Pick<SipTrunkData, 'host' | 'por
return `sip:${e164}@${trunk.host}:${trunk.port};transport=${trunk.transport}`
}
-/** The own phone system as a quiet line under the carrier, with Connect (or Details); and its dialog. */
+/**
+ * The own phone system as a setting row under the carrier (how many numbers come through it, Connect or Details); and
+ * its dialog. Not shown at all while none is connected and this server can't take such calls (sipTrunk.get).
+ */
export function OwnPhoneSystemLine() {
const t = useT()
const count = useRows('phone_numbers').filter(n => n.carrier_account === 'sip').length
+ const trunk = useQuery(count ? null : SIP_TRUNK, loadSipTrunk).data
const [open, setOpen] = useState(false)
+ if (!count && !trunk?.available) return null
return (
<>
- <p className="pn-carrier">
- {t('settings.sip.line.value', { count })}
- <LinkButton onClick={() => setOpen(true)} title={t('settings.sip.line.tip')}>
- {count ? t('settings.sip.line.details') : t('settings.sip.line.connect')}
- </LinkButton>
- </p>
+ <SettingRow
+ title={t('settings.sip.line.title')}
+ help={t('settings.sip.line.tip')}
+ control={
+ <>
+ <span className="k-setrow-value">{t('settings.sip.line.count', { count })}</span>
+ <Button size="sm" onClick={() => setOpen(true)}>
+ {count ? t('settings.sip.line.details') : t('settings.sip.line.connect')}
+ </Button>
+ </>
+ }
+ />
{open && <OwnPhoneSystemDialog onClose={() => setOpen(false)} />}
</>
)
@@ -326,12 +337,12 @@ function PutThrough({ outbound, guide }: { outbound: SipOutboundData | null; gui
<SecretInput id="sip-out-password" value={password} onChange={setPassword} invalid={!!problem} />
</FormField>
<div className="pn-sip-actions">
- <Button type="submit" variant="primary" busy={busy} disabled={busy}>
- {t('common.action.save')}
- </Button>
<Button variant="ghost" onClick={() => setEditing(false)} disabled={busy}>
{t('common.action.cancel')}
</Button>
+ <Button type="submit" variant="primary" busy={busy} disabled={busy}>
+ {t('common.action.save')}
+ </Button>
{outbound && (
<Button variant="ghost" className="pn-release" onClick={() => void send(null)} disabled={busy}>
{t('settings.sip.transfer.remove')}
@@ -487,12 +498,12 @@ function TestCall() {
{busy && <Note tone="info">{t('settings.sip.test.ringing')}</Note>}
{result && <Note tone={result.ok ? 'success' : 'danger'}>{result.text}</Note>}
<div className="pn-sip-actions">
- <Button type="submit" variant="primary" busy={busy} disabled={busy || !to}>
- {t('settings.sip.test.call')}
- </Button>
<Button variant="ghost" onClick={() => setOpen(false)} disabled={busy}>
{t('common.action.close')}
</Button>
+ <Button type="submit" variant="primary" busy={busy} disabled={busy || !to}>
+ {t('settings.sip.test.call')}
+ </Button>
</div>
</form>
)
diff --git a/apps/web/src/settings/PhoneNumbers.tsx b/apps/web/src/settings/PhoneNumbers.tsx
index 5b61cf6f..dec21fbe 100644
--- a/apps/web/src/settings/PhoneNumbers.tsx
+++ b/apps/web/src/settings/PhoneNumbers.tsx
@@ -55,13 +55,14 @@ import { notAnsweringWhy } from '../inbox/goLive.ts'
import { type Presence, usePresence } from '../shell/presence.ts'
import { useAssistantName, useAssistants, useClaimedRejection, useRows, useRun } from '../store.tsx'
import { RadioCard, Select } from '../ui/controls.tsx'
-import { Dialog, FormField } from '../ui/form.tsx'
+import { Card, Dialog, FormField } from '../ui/form.tsx'
import { AppLink } from '../ui/AppLink.tsx'
import { Badge, Button, Note } from '../ui/kit.tsx'
import { StatusMark } from '../ui/StatusMark.tsx'
import { List, ListEmpty, ListRow, MenuButton } from '../ui/list.tsx'
import { PhoneInput } from '../ui/PhoneInput.tsx'
import { Loading, Skeleton, SkeletonList, SkeletonPart, useLoading, useLoadState } from '../ui/LoadStates.tsx'
+import { SettingRows } from '../ui/SettingRow.tsx'
import { sectionHash, sectionParts } from '../ui/SettingsLayout.tsx'
import { CarrierLine, useCarrierStatus } from './Carrier.tsx'
import { OwnPhoneSystemLine } from './OwnPhoneSystem.tsx'
@@ -131,102 +132,8 @@ export function PhoneNumbers({ canEdit, status: serverStatus, isInstanceAdmin, e
}, [linkedNumber])
const canAdd = canEdit && !!status?.available
return (
- <Section
- id="st-phone"
- title={t('settings.phone.title')}
- actions={
- canAdd && (
- <Button size="sm" icon="plus" onClick={() => setAdding(true)}>
- {t('settings.phone.add')}
- </Button>
- )
- }
- >
- {canEdit && <CarrierLine serverProvider={serverStatus?.provider ?? null} />}
- {canEdit && <OwnPhoneSystemLine />}
- {canEdit && status && !status.available && (
- <Unavailable
- detail={status.detail}
- isInstanceAdmin={isInstanceAdmin}
- ownCarrier={!!carrier && carrier.carrier !== 'default'}
- />
- )}
- <Loading
- what={t('settings.phone.what')}
- loading={numbersLoad !== 'ready'}
- error={numbersLoad === 'slow'}
- skeleton={<SkeletonList rows={1} aside action />}
- >
- {numbers.length > 0 && statusWaiting && (
- <span className="sr-only" role="status">
- {t('common.load.loading', { what: t('settings.phone.row.statusWhat') })}
- </span>
- )}
- {numbers.length > 0 ? (
- <List label={t('settings.phone.title')} busy={statusWaiting}>
- {numbers.map(n => (
- <ListRow
- key={n.id}
- title={<span className="st-mono">{formatNumber(n.e164)}</span>}
- sub={t('settings.phone.row.sub', {
- assistant: answeredBy(n, assistants)?.name ?? t('settings.phone.row.theAssistant'),
- // A number of the business's own phone system: that system decides which calls it sends.
- mode: n.carrier_account === 'sip' ? t('settings.sip.rowMode') : numberModeLabel[n.mode],
- })}
- aside={
- // Forwarding nobody has seen work yet (the go-live checklist's rule): not "Answering" until it is,
- // and the check is in the number's dialog.
- forwardingUnverified(n, calls) ? (
- <button
- type="button"
- className="pn-status-link"
- title={t('settings.phone.row.checkTip')}
- onClick={() => setManaging({ id: n.id, release: false })}
- >
- <Badge>
- <StatusMark state="untested" label={t('settings.phone.row.unverified')} />
- {t('settings.phone.row.unverified')}
- </Badge>
- </button>
- ) : (
- <AnsweringMark
- presence={presence}
- waiting={statusWaiting}
- reserved={statusView.phase === 'reserve'}
- />
- )
- }
- actions={
- <MenuButton
- title={t('settings.phone.row.actions', { number: formatNumber(n.e164) })}
- items={[
- {
- id: 'manage',
- label: canEdit ? t('settings.phone.row.manage') : t('settings.phone.row.details'),
- onSelect: () => setManaging({ id: n.id, release: false }),
- },
- ...(canEdit
- ? [
- {
- id: 'release',
- label: n.purchased
- ? t('settings.phone.release.menu')
- : t('settings.phone.disconnect.menu'),
- danger: true,
- onSelect: () => setManaging({ id: n.id, release: true }),
- },
- ]
- : []),
- ]}
- />
- }
- />
- ))}
- </List>
- ) : (
- <ListEmpty>{canEdit ? t('settings.phone.empty') : t('settings.phone.emptyMember')}</ListEmpty>
- )}
- </Loading>
+ <>
+ {/* Why calls are not answered: above the card, not a box inside it (settings audit, 2026-11-26). */}
{numbersLoad === 'ready' && !statusWaiting && (
<NotAnsweringNote
number={numbers.find(n => !answering && !forwardingUnverified(n, calls))}
@@ -234,27 +141,131 @@ export function PhoneNumbers({ canEdit, status: serverStatus, isInstanceAdmin, e
canFix={isInstanceAdmin}
/>
)}
- {adding && (
- <Dialog title={t('settings.phone.addTitle')} size="md" onClose={() => setAdding(false)}>
- <ConnectNumber
- status={status}
- // The workspace's own carrier account is not billed by us: its numbers cost what that carrier charges.
- extraNumberCents={billedExtraNumberCents(extraNumberCents, status)}
- onDone={() => setAdding(false)}
- onCancel={() => setAdding(false)}
+ <Section
+ id="st-phone"
+ title={t('settings.phone.title')}
+ actions={
+ canAdd && (
+ <Button size="sm" icon="plus" onClick={() => setAdding(true)}>
+ {t('settings.phone.add')}
+ </Button>
+ )
+ }
+ >
+ {canEdit && status && !status.available && (
+ <Unavailable
+ detail={status.detail}
+ isInstanceAdmin={isInstanceAdmin}
+ ownCarrier={!!carrier && carrier.carrier !== 'default'}
/>
- </Dialog>
- )}
- {managed && (
- <ManageNumber
- number={managed}
- assistants={assistants}
- canEdit={canEdit}
- release={managing?.release}
- onClose={() => setManaging(null)}
- />
+ )}
+ <Loading
+ what={t('settings.phone.what')}
+ loading={numbersLoad !== 'ready'}
+ error={numbersLoad === 'slow'}
+ skeleton={<SkeletonList rows={1} aside action />}
+ >
+ {numbers.length > 0 && statusWaiting && (
+ <span className="sr-only" role="status">
+ {t('common.load.loading', { what: t('settings.phone.row.statusWhat') })}
+ </span>
+ )}
+ {numbers.length > 0 ? (
+ <List label={t('settings.phone.title')} busy={statusWaiting}>
+ {numbers.map(n => (
+ <ListRow
+ key={n.id}
+ title={<span className="st-mono">{formatNumber(n.e164)}</span>}
+ sub={t('settings.phone.row.sub', {
+ assistant: answeredBy(n, assistants)?.name ?? t('settings.phone.row.theAssistant'),
+ // A number of the business's own phone system: that system decides which calls it sends.
+ mode: n.carrier_account === 'sip' ? t('settings.sip.rowMode') : numberModeLabel[n.mode],
+ })}
+ aside={
+ // Forwarding nobody has seen work yet (the go-live checklist's rule): not "Answering" until it is,
+ // and the check is in the number's dialog.
+ forwardingUnverified(n, calls) ? (
+ <button
+ type="button"
+ className="pn-status-link"
+ title={t('settings.phone.row.checkTip')}
+ onClick={() => setManaging({ id: n.id, release: false })}
+ >
+ <Badge>
+ <StatusMark state="untested" label={t('settings.phone.row.unverified')} />
+ {t('settings.phone.row.unverified')}
+ </Badge>
+ </button>
+ ) : (
+ <AnsweringMark
+ presence={presence}
+ waiting={statusWaiting}
+ reserved={statusView.phase === 'reserve'}
+ />
+ )
+ }
+ actions={
+ <MenuButton
+ title={t('settings.phone.row.actions', { number: formatNumber(n.e164) })}
+ items={[
+ {
+ id: 'manage',
+ label: canEdit ? t('settings.phone.row.manage') : t('settings.phone.row.details'),
+ onSelect: () => setManaging({ id: n.id, release: false }),
+ },
+ ...(canEdit
+ ? [
+ {
+ id: 'release',
+ label: n.purchased
+ ? t('settings.phone.release.menu')
+ : t('settings.phone.disconnect.menu'),
+ danger: true,
+ onSelect: () => setManaging({ id: n.id, release: true }),
+ },
+ ]
+ : []),
+ ]}
+ />
+ }
+ />
+ ))}
+ </List>
+ ) : (
+ <ListEmpty>{canEdit ? t('settings.phone.empty') : t('settings.phone.emptyMember')}</ListEmpty>
+ )}
+ </Loading>
+ {adding && (
+ <Dialog title={t('settings.phone.addTitle')} size="md" onClose={() => setAdding(false)}>
+ <ConnectNumber
+ status={status}
+ // The workspace's own carrier account is not billed by us: its numbers cost what that carrier charges.
+ extraNumberCents={billedExtraNumberCents(extraNumberCents, status)}
+ onDone={() => setAdding(false)}
+ onCancel={() => setAdding(false)}
+ />
+ </Dialog>
+ )}
+ {managed && (
+ <ManageNumber
+ number={managed}
+ assistants={assistants}
+ canEdit={canEdit}
+ release={managing?.release}
+ onClose={() => setManaging(null)}
+ />
+ )}
+ </Section>
+ {/* Where numbers come from: the carrier and the own phone system, as setting rows in their own card. */}
+ {canEdit && (
+ <Card id="st-phone-carrier">
+ <SettingRows>
+ <CarrierLine serverProvider={serverStatus?.provider ?? null} />
+ <OwnPhoneSystemLine />
+ </SettingRows>
+ </Card>
)}
- </Section>
+ </>
)
}
diff --git a/apps/web/src/settings/account/Preferences.tsx b/apps/web/src/settings/account/Preferences.tsx
index 551a2639..144db701 100644
--- a/apps/web/src/settings/account/Preferences.tsx
+++ b/apps/web/src/settings/account/Preferences.tsx
@@ -123,7 +123,7 @@ export function Preferences({
<MissingLanguageNote />
<FeatureLine
title={t('common.language.label')}
- summary={t('account.language.summary', { brand: brandName() })}
+ summary={t('account.language.summary')}
help={t('account.language.help', { brand: brandName() })}
state={{ text: shown, on: false, value: true }}
open={open}
diff --git a/apps/web/src/settings/account/index.tsx b/apps/web/src/settings/account/index.tsx
index a8c570f6..1a9428ca 100644
--- a/apps/web/src/settings/account/index.tsx
+++ b/apps/web/src/settings/account/index.tsx
@@ -285,13 +285,12 @@ function Profile({ account, reload, hasWorkspace }: SectionProps & { hasWorkspac
invalid={!trimmed}
/>
</FormField>
- <FormField
- label={t('account.profile.email')}
- help={canChangeEmail ? t('account.profile.emailTipChange') : t('account.profile.emailTip')}
- >
- <div className="ac-inline">
- <span className="ac-value">{account.user.email}</span>
- {canChangeEmail && !changingEmail && (
+ {/* The address is on the card above: here only the way to change it, where it can change (not shown twice). */}
+ {canChangeEmail && !changingEmail && (
+ <SettingRow
+ title={t('account.profile.email')}
+ help={t('account.profile.emailTipChange')}
+ control={
<Button
size="sm"
title={t('account.profile.changeEmailTitle')}
@@ -302,14 +301,14 @@ function Profile({ account, reload, hasWorkspace }: SectionProps & { hasWorkspac
>
{t('account.profile.change')}
</Button>
- )}
- </div>
- {emailChanged && (
- <span className="help" role="status">
- {emailChanged}
- </span>
- )}
- </FormField>
+ }
+ />
+ )}
+ {emailChanged && (
+ <span className="help" role="status">
+ {emailChanged}
+ </span>
+ )}
{/* Inside the name's form, so a group of its own: Enter and its buttons never save the name. */}
{changingEmail && (
<ChangeEmail
@@ -923,7 +922,23 @@ function Sessions() {
const others = sessions ? sessions.length - 1 : 0
return (
- <Section id="ac-sessions" title={t('account.nav.sessions.label')}>
+ <Section
+ id="ac-sessions"
+ title={t('account.nav.sessions.label')}
+ // All the others at once: in the card's header like every card's own action, not a second button under the rows.
+ actions={
+ others > 0 && (
+ <Button
+ size="sm"
+ title={t('account.sessions.signOutOthersTitle')}
+ disabled={request.busy}
+ onClick={() => void signOut(signOutOtherSessions, t('account.sessions.othersSignedOut'))}
+ >
+ {t('account.sessions.signOutOthers')}
+ </Button>
+ )
+ }
+ >
{list === 'signInAgain' && (
<SettingRow title={t('account.sessions.signInAgain')} control={<SignInAgainButton />} />
)}
@@ -969,18 +984,6 @@ function Sessions() {
</div>
)}
<FormStatus request={request} />
- {others > 0 && (
- <div className="ac-actions">
- <Button
- size="sm"
- title={t('account.sessions.signOutOthersTitle')}
- disabled={request.busy}
- onClick={() => void signOut(signOutOtherSessions, t('account.sessions.othersSignedOut'))}
- >
- {t('account.sessions.signOutOthers')}
- </Button>
- </div>
- )}
</Section>
)
}
diff --git a/apps/web/src/settings/carrierModel.test.ts b/apps/web/src/settings/carrierModel.test.ts
index 0e6c0fcb..fcebf40c 100644
--- a/apps/web/src/settings/carrierModel.test.ts
+++ b/apps/web/src/settings/carrierModel.test.ts
@@ -119,9 +119,9 @@ describe('carrier copy', () => {
})
test('an own account says who bills and what it needs', () => {
expect(carrierChoiceText('twilio', 'telnyx')).toBe(
- 'You have a Twilio account already. New numbers are bought there, and Twilio bills you. Needs your Twilio API key, entered here.',
+ 'Twilio bills numbers and minutes. Needs your API key.',
)
- expect(carrierChoiceText('telnyx', null)).toContain('Telnyx bills you')
+ expect(carrierChoiceText('telnyx', null)).toContain('Telnyx bills numbers and minutes')
})
test('numbers in the own account block a switch; other numbers stay as they are', () => {
expect(existingNumbersText('twilio', 1)).toBe(
diff --git a/apps/web/src/team/TeamPage.tsx b/apps/web/src/team/TeamPage.tsx
index 84022ac4..f758870d 100644
--- a/apps/web/src/team/TeamPage.tsx
+++ b/apps/web/src/team/TeamPage.tsx
@@ -1,7 +1,7 @@
// Workspace settings › Team: who is in the workspace, with which role, and who is invited. Owners and admins
// invite, change roles and remove, and edit a teammate's profile and notifications (MemberEdit.tsx); members see
// the list read-only. Every change is a team.* action. Leaving the
-// workspace (LeaveWorkspace) is in the Danger zone section.
+// workspace (LeaveWorkspace, a row of the Danger zone card) is in the Danger zone section.
import {
type AssignableRole,
assignableRoles,
@@ -25,6 +25,7 @@ import { Avatar, Badge, Button, Note } from '../ui/kit.tsx'
import { DangerConfirmDialog } from '../ui/DangerConfirmDialog.tsx'
import { List, ListRow, MenuButton, type MenuItem } from '../ui/list.tsx'
import { Loading, SkeletonList } from '../ui/LoadStates.tsx'
+import { SettingRow } from '../ui/SettingRow.tsx'
import { sectionParts } from '../ui/SettingsLayout.tsx'
import { teamApi, useTeam } from './team-api.ts'
import { MemberEditDialog } from './MemberEdit.tsx'
@@ -433,13 +434,12 @@ export function LeaveWorkspace({ data, isInstanceAdmin }: { data: TeamData; isIn
// (the API refuses it, partner_managed), so there is no Leave to offer.
if (me.partner)
return (
- <Section id="team-leave" title={t('team.leave.title')}>
- <span className="help">
- <T k="team.leave.viaPartner" values={{ partner: me.partner, link: appLink('#partner') }} />
- </span>
- </Section>
+ <SettingRow
+ title={t('team.leave.title')}
+ description={<T k="team.leave.viaPartner" values={{ partner: me.partner, link: appLink('#partner') }} />}
+ />
)
- // The one owner hands the workspace over before leaving it (or deletes it).
+ // The one owner hands the workspace over before leaving it (or deletes it): only the way to do that, no button.
const lastOwner = me.role === 'owner'
const lastWorkspace = !isInstanceAdmin && workspaces !== null && workspaces.length <= 1
// Until the workspace list is known, "is this my last workspace" is not: a leave then would keep the account silently.
@@ -466,22 +466,30 @@ export function LeaveWorkspace({ data, isInstanceAdmin }: { data: TeamData; isIn
}
}
return (
- <Section id="team-leave" title={t('team.leave.title')}>
- <div className="team-leave">
- <Button
- variant="danger-outline"
- disabled={lastOwner || loadingWorkspaces}
- title={lastOwner ? t('team.leave.ownerTitle') : t('team.leave.loseAccess')}
- onClick={() => setAsking(true)}
- >
- {t('team.leave.button')}
- </Button>
- {lastOwner && (
- <span className="help">
+ <>
+ <SettingRow
+ title={t('team.leave.title')}
+ description={
+ lastOwner ? (
<T k="team.leave.ownerHelp" values={{ link: appLink('#workspace/team') }} />
- </span>
- )}
- </div>
+ ) : (
+ t('team.leave.loseAccess')
+ )
+ }
+ control={
+ !lastOwner && (
+ <Button
+ size="sm"
+ variant="danger-outline"
+ disabled={loadingWorkspaces}
+ title={t('team.leave.loseAccess')}
+ onClick={() => setAsking(true)}
+ >
+ {t('team.leave.button')}
+ </Button>
+ )
+ }
+ />
{asking && (
<Dialog
title={t('team.leave.title')}
@@ -521,7 +529,7 @@ export function LeaveWorkspace({ data, isInstanceAdmin }: { data: TeamData; isIn
{error && <FormMessage>{error}</FormMessage>}
</Dialog>
)}
- </Section>
+ </>
)
}
diff --git a/apps/web/src/ui/AppLink.test.tsx b/apps/web/src/ui/AppLink.test.tsx
index f3002c2a..ee7f4b1e 100644
--- a/apps/web/src/ui/AppLink.test.tsx
+++ b/apps/web/src/ui/AppLink.test.tsx
@@ -33,7 +33,7 @@ test('an action in text looks like the link but is a button', () => {
test('a message tag renders the link around its own words, the sentence stays one message', () => {
const html = renderToStaticMarkup(<T k="account.notify.oneplace" values={{ link: appLink('#assistant/emails') }} />)
expect(html).toContain(
- 'Call emails for the team are set in one place: <a class="k-link" href="#assistant/emails">Assistant › Email notifications</a>.',
+ 'Call emails: <a class="k-link" href="#assistant/emails">Assistant › Email notifications</a>',
)
})
diff --git a/apps/web/src/ui/FeatureLine.tsx b/apps/web/src/ui/FeatureLine.tsx
index 7df92469..ecb22f05 100644
--- a/apps/web/src/ui/FeatureLine.tsx
+++ b/apps/web/src/ui/FeatureLine.tsx
@@ -62,7 +62,7 @@ type LineProps = {
onToggle: () => void
/** A line that only shows numbers (Reply delay, Flagged calls) opens with Show, not Change. */
view?: boolean
- /** The button's word when it is neither Change nor Show (Export calls: Export…). */
+ /** The button's word when it is neither Change nor Show (Export calls: Export). */
label?: string
children: ReactNode
}
diff --git a/packages/i18n/locales/de/account.json b/packages/i18n/locales/de/account.json
index 1e385ea6..b96f18c0 100644
--- a/packages/i18n/locales/de/account.json
+++ b/packages/i18n/locales/de/account.json
@@ -232,7 +232,6 @@
"profile.confirmEmail": "Bestätige, dass {email} dir gehört. Bis dahin kannst du keine API-Schlüssel oder Webhooks erstellen, niemanden einladen und keinen Anbieter oder keine Telefonnummer einrichten.",
"profile.email": "E-Mail",
"profile.emailChanged": "E-Mail-Adresse auf {email} geändert. Deine anderen Sitzungen wurden abgemeldet.",
- "profile.emailTip": "Mit dieser Adresse meldest du dich an, und Anmeldecodes und E-Mails gehen an sie.",
"profile.emailTipChange": "Mit dieser Adresse meldest du dich an, und Anmeldecodes und E-Mails gehen an sie. Um sie zu ändern, bestätige die neue Adresse mit einem Code.",
"profile.enterName": "Gib deinen Namen ein.",
"profile.name": "Name",
diff --git a/packages/i18n/locales/de/settings.json b/packages/i18n/locales/de/settings.json
index 1501d902..cf7602ab 100644
--- a/packages/i18n/locales/de/settings.json
+++ b/packages/i18n/locales/de/settings.json
@@ -648,9 +648,7 @@
"carrier.label.default": "{brand}-Standard",
"carrier.label.own": "Dein eigenes {name}",
"carrier.line.changeTip": "Anbieterkonto ändern",
- "carrier.line.label": "Telefonanbieter:",
"carrier.line.loading": "Der Telefonanbieter",
- "carrier.line.value": "Telefonanbieter: {value}",
"carrier.noStore.admin": "API-Schlüssel werden verschlüsselt gespeichert, und auf diesem Server ist kein Verschlüsselungsschlüssel gesetzt. Unter <link>Server-Admin › Anbieter</link> steht, was zu setzen ist.",
"carrier.noStore.ask": "API-Schlüssel werden verschlüsselt gespeichert, und auf diesem Server ist kein Verschlüsselungsschlüssel gesetzt. Bitte den Betreiber dieses Servers, ihn einzurichten.",
"carrier.noStore.title": "Dein eigenes Konto kann auf diesem Server noch nicht gespeichert werden.",
@@ -682,7 +680,6 @@
"danger.keep.theirs": "Konten der Mitglieder behalten",
"danger.keep.theseAndMine": "Diese Konten behalten, deins eingeschlossen",
"danger.leave.loading": "Das Team",
- "danger.leave.title": "Workspace verlassen",
"danger.list.accounts": "{count, plural, one {# Konto wird gelöscht, weil es keinen anderen Workspace hat} other {# Konten werden gelöscht, weil sie keinen anderen Workspace haben}}",
"danger.list.calls": "{count, plural, one {# Anruf} other {# Anrufe}} mit ihren Transkripten und Aufnahmen",
"danger.list.contacts": "{count, plural, one {# Kontakt} other {# Kontakte}}",
@@ -1661,7 +1658,6 @@
"sip.line.connect": "Verbinden",
"sip.line.details": "Details",
"sip.line.tip": "Eigene Telefonanlage oder SIP-Anbieter über einen SIP-Trunk verbinden",
- "sip.line.value": "Eigene Telefonanlage: {count, plural, =0 {nicht verbunden} one {# Nummer} other {# Nummern}}",
"sip.manageDescription": "Von deiner eigenen Telefonanlage (SIP-Trunk)",
"sip.manageNote": "Deine Telefonanlage entscheidet, welche Anrufe sie hierher sendet. SIP-Adresse und Benutzername stehen unter „Eigene Telefonanlage“.",
"sip.notActive": "Die letzte Änderung hat den Anrufdienst noch nicht erreicht. Bis dahin nutzen Anrufe die bisherigen Nummern und das bisherige Passwort. Der Server versucht es innerhalb weniger Minuten erneut.",
diff --git a/packages/i18n/locales/de/team.json b/packages/i18n/locales/de/team.json
index 8b0c7919..f4f5afdd 100644
--- a/packages/i18n/locales/de/team.json
+++ b/packages/i18n/locales/de/team.json
@@ -56,7 +56,6 @@
"leave.leaving": "Wird verlassen…",
"leave.loseAccess": "Du verlierst sofort den Zugriff",
"leave.ownerHelp": "Du bist der Inhaber. Mach zuerst jemand anderen zum Inhaber (<link>Team</link>).",
- "leave.ownerTitle": "Du bist der Inhaber: Mach zuerst jemand anderen zum Inhaber",
"leave.signInFirst.text": "Zum Löschen deines Kontos brauchst du eine Anmeldung aus den letzten 10 Minuten. Danach kommst du hierher zurück.",
"leave.signInFirst.title": "Melde dich zuerst erneut an.",
"leave.title": "Workspace verlassen",
diff --git a/packages/i18n/locales/en/account.json b/packages/i18n/locales/en/account.json
index 6dda6c68..458f79bc 100644
--- a/packages/i18n/locales/en/account.json
+++ b/packages/i18n/locales/en/account.json
@@ -45,8 +45,8 @@
"authenticator.requestFailed": "The server could not do this (error {status}). Try again.",
"authenticator.scan": "Scan this QR code with your authenticator app, then enter the 6-digit code it shows.",
"authenticator.setUp": "Set up",
- "authenticator.stateNeedsPasskey": "Not set up · add a passkey first, the app is only its fallback",
- "authenticator.stateNone": "Not set up · the fallback for when your passkey is not at hand",
+ "authenticator.stateNeedsPasskey": "Not set up · add a passkey first",
+ "authenticator.stateNone": "Not set up · backup for your passkey",
"authenticator.stateOn": "Set up · a code from the app opens Server admin for {hours} hours in this browser",
"authenticator.tip": "The fallback to your passkey for Server admin, for an emergency or a computer without your passkey: a code from an app such as Google Authenticator, 1Password or Authy. Your passkey stays required.",
"authenticator.title": "Authenticator app",
@@ -119,7 +119,7 @@
"language.help": "The language {brand} shows for you. Everyone in the workspace picks their own. Automatic follows your browser.",
"language.missing": "{brand} isn't available in {language} yet.",
"language.saveFailed": "Could not save your language.",
- "language.summary": "The language {brand} shows for you",
+ "language.summary": "For the app",
"legal.label": "Terms and privacy",
"load.methodsFailed": "Could not load your sign-in methods.",
"load.signedOut": "You are signed out.",
@@ -148,7 +148,7 @@
"notify.card.setup": "setup emails",
"notify.card.withSummary": "Push notifications say what the call was about.",
"notify.iosInstall": "On iPhone and iPad, add {brand} to your Home Screen first (Share, Add to Home Screen), then open it from there.",
- "notify.oneplace": "Call emails for the team are set in one place: <link>Assistant › Email notifications</link>.",
+ "notify.oneplace": "Call emails: <link>Assistant › Email notifications</link>",
"notify.perWorkspace": "Each workspace has its own. Switch workspace to change another's.",
"notify.permission.default": "Your browser asks once when you turn notifications on.",
"notify.permission.denied": "Blocked by the browser. Allow notifications for this site in the browser’s site settings, then reload the page.",
@@ -234,7 +234,6 @@
"profile.confirmEmail": "Confirm that {email} is yours. Until then you cannot create API keys or webhooks, invite people, or set up a carrier or phone number.",
"profile.email": "Email",
"profile.emailChanged": "Email changed to {email}. Your other sessions were signed out.",
- "profile.emailTip": "You sign in with this address, and sign-in codes and emails go to it.",
"profile.emailTipChange": "You sign in with this address, and sign-in codes and emails go to it. To change it, confirm the new address with a code.",
"profile.enterName": "Enter your name.",
"profile.name": "Name",
@@ -250,7 +249,7 @@
"sessions.signOut": "Sign out",
"sessions.signOutDevice": "Sign out {device}",
"sessions.signOutFailed": "Could not sign that session out.",
- "sessions.signOutOthers": "Sign out all other sessions",
+ "sessions.signOutOthers": "Sign out others",
"sessions.signOutOthersFailed": "Could not sign the other sessions out.",
"sessions.signOutOthersTitle": "Sign out everywhere except this device",
"sessions.signedOut": "Session signed out.",
diff --git a/packages/i18n/locales/en/settings.json b/packages/i18n/locales/en/settings.json
index 9d3ec3e8..fb519bb1 100644
--- a/packages/i18n/locales/en/settings.json
+++ b/packages/i18n/locales/en/settings.json
@@ -641,7 +641,7 @@
"carrier.choice.default": "Simplest, nothing to set up. Numbers come from the carrier whoever runs this server set up.",
"carrier.choice.defaultDev": "Simplest, nothing to set up. Development mode: test numbers, nothing is bought.",
"carrier.choice.defaultNamed": "Simplest, nothing to set up. Numbers come from {server}, set up by whoever runs this server.",
- "carrier.choice.own": "You have a {name} account already. New numbers are bought there, and {name} bills you. Needs your {name} API key, entered here.",
+ "carrier.choice.own": "{name} bills numbers and minutes. Needs your API key.",
"carrier.dialog.confirmDefault": "Back to the default carrier: the {name} keys are deleted from {brand}, and numbers come from the carrier this server is set up with.",
"carrier.dialog.removeKeys": "Remove {name} keys",
"carrier.dialog.test": "Test connection",
@@ -655,9 +655,8 @@
"carrier.label.default": "{brand} default",
"carrier.label.own": "Your own {name}",
"carrier.line.changeTip": "Change the carrier account",
- "carrier.line.label": "Carrier:",
"carrier.line.loading": "the carrier",
- "carrier.line.value": "Carrier: {value}",
+ "carrier.line.title": "Carrier",
"carrier.noStore.admin": "API keys are stored encrypted, and this server has no encryption key set. <link>Server admin › Providers</link> says what to set.",
"carrier.noStore.ask": "API keys are stored encrypted, and this server has no encryption key set. Ask whoever runs this server to set it up.",
"carrier.noStore.title": "Your own account can't be saved on this server yet.",
@@ -674,7 +673,7 @@
"danger.delete.action": "Delete workspace",
"danger.delete.after": "This cannot be undone.",
"danger.delete.busy": "Deleting…",
- "danger.delete.button": "Delete workspace…",
+ "danger.delete.button": "Delete…",
"danger.delete.buttonTip": "Deletes it with all its calls, contacts, numbers and settings",
"danger.delete.finding": "Finding out what this deletes…",
"danger.delete.help": "Deletes {name} and all its data for good.",
@@ -689,7 +688,6 @@
"danger.keep.theirs": "Keep their accounts",
"danger.keep.theseAndMine": "Keep these accounts, yours included",
"danger.leave.loading": "The team",
- "danger.leave.title": "Leave workspace",
"danger.list.accounts": "{count, plural, one {# account will be deleted because it has no other workspace} other {# accounts will be deleted because they have no other workspace}}",
"danger.list.calls": "{count, plural, one {# call} other {# calls}}, with their transcripts and recordings",
"danger.list.contacts": "{count, plural, one {# contact} other {# contacts}}",
@@ -704,7 +702,7 @@
"danger.own.deleted.title": "Your own account will be deleted too.",
"danger.own.stays.text": "You land on the page that waits for an invitation to another workspace.",
"danger.own.stays.title": "Your account stays.",
- "danger.partner.action": "Remove partner…",
+ "danger.partner.action": "Remove…",
"danger.partner.after": "What happens",
"danger.partner.bill": "The workspace leaves the partner's plan. You add your own card before calls are answered again.",
"danger.partner.busy": "Removing…",
@@ -715,7 +713,7 @@
"danger.partner.invitedStay": "People the team of {partner} invited here stay, unless you pick them below.",
"danger.partner.team": "Everyone on the team of {partner} loses access at once. Their API keys here stop working.",
"danger.partner.text": "Remove {partner} from this workspace?",
- "danger.partner.title": "Partner",
+ "danger.partner.title": "Remove partner",
"danger.passkeyNote": "You confirm with your passkey after you click Delete workspace.",
"danger.signIn.button": "Sign in again",
"danger.signIn.buttonTip": "Sign out, sign in again and come back to this dialog",
@@ -780,11 +778,11 @@
"developers.zapier.title": "Connect Zapier",
"developers.zapier.unreachable": "Zapier can't reach {address}: it needs an https address on the internet. Ask your server admin.",
"export.button": "Export CSV",
- "export.description": "A CSV file with each call's caller, urgency, outcome and summary, for a spreadsheet or your CRM.",
+ "export.description": "Download calls as a spreadsheet.",
"export.done": "Exported {count, plural, one {# call} other {# calls}}.",
"export.exporting": "Exporting…",
"export.from": "From",
- "export.open": "Export…",
+ "export.open": "Export",
"export.title": "Export calls",
"export.to": "To",
"export.truncated": "Exported the newest {count, number} calls. Pick a shorter range for the rest.",
@@ -1694,9 +1692,10 @@
"sip.guide.threecx.transport": "On the tab Options, set Transport Protocol to {transport}. Save.",
"sip.guide.threecx.trunk": "In the 3CX admin console, open Voice & Chat › Add Trunk. As Provider, pick Generic VoIP Provider (Registration). OK.",
"sip.line.connect": "Connect",
+ "sip.line.count": "{count, plural, =0 {Not connected} one {# number} other {# numbers}}",
"sip.line.details": "Details",
"sip.line.tip": "Connect your own phone system or SIP provider over a SIP trunk",
- "sip.line.value": "Own phone system: {count, plural, =0 {not connected} one {# number} other {# numbers}}",
+ "sip.line.title": "Own phone system",
"sip.manageDescription": "From your own phone system (SIP trunk)",
"sip.manageNote": "Your phone system decides which calls it sends here. The SIP address and user name are under Own phone system.",
"sip.notActive": "The last change has not reached the call service yet. Until it has, calls use the numbers and the password from before. The server tries again within a few minutes.",
diff --git a/packages/i18n/locales/en/team.json b/packages/i18n/locales/en/team.json
index 7e573a73..f7f8669f 100644
--- a/packages/i18n/locales/en/team.json
+++ b/packages/i18n/locales/en/team.json
@@ -50,13 +50,12 @@
"invite.sending": "Sending…",
"invite.sent": "Invitation sent to {email}.",
"invite.signOutContinue": "Sign out and continue",
- "leave.button": "Leave workspace…",
+ "leave.button": "Leave…",
"leave.deleteAccount": "Also delete my account (this is your only workspace)",
"leave.description": "You lose access at once. Only a new invitation brings you back.",
"leave.leaving": "Leaving…",
"leave.loseAccess": "You lose access at once",
- "leave.ownerHelp": "You are the owner. Make someone else the owner first (<link>Team</link>).",
- "leave.ownerTitle": "You are the owner: make someone else the owner first",
+ "leave.ownerHelp": "Make someone else owner in <link>Team</link> first.",
"leave.signInFirst.text": "Deleting your account needs a sign-in from the last 10 minutes. You come back here afterwards.",
"leave.signInFirst.title": "Sign in again first.",
"leave.title": "Leave workspace",
diff --git a/packages/i18n/locales/es/account.json b/packages/i18n/locales/es/account.json
index 1c8d8d24..7983d809 100644
--- a/packages/i18n/locales/es/account.json
+++ b/packages/i18n/locales/es/account.json
@@ -232,7 +232,6 @@
"profile.confirmEmail": "Confirma que {email} es tuyo. Hasta entonces no puedes crear claves de API ni webhooks, invitar personas ni configurar un operador o número de teléfono.",
"profile.email": "Correo electrónico",
"profile.emailChanged": "Se cambió el correo a {email}. Se cerraron tus otras sesiones.",
- "profile.emailTip": "Inicias sesión con esta dirección, y los códigos de inicio de sesión y los correos llegan a ella.",
"profile.emailTipChange": "Inicias sesión con esta dirección, y los códigos de inicio de sesión y los correos llegan a ella. Para cambiarla, confirma la dirección nueva con un código.",
"profile.enterName": "Ingresa tu nombre.",
"profile.name": "Nombre",
diff --git a/packages/i18n/locales/es/settings.json b/packages/i18n/locales/es/settings.json
index d519a0a7..19e95a6b 100644
--- a/packages/i18n/locales/es/settings.json
+++ b/packages/i18n/locales/es/settings.json
@@ -648,9 +648,7 @@
"carrier.label.default": "Predeterminado de {brand}",
"carrier.label.own": "Tu propia cuenta de {name}",
"carrier.line.changeTip": "Cambiar la cuenta del operador",
- "carrier.line.label": "Operador:",
"carrier.line.loading": "el operador",
- "carrier.line.value": "Operador: {value}",
"carrier.noStore.admin": "Las claves de API se guardan cifradas y este servidor no tiene una clave de cifrado configurada. En <link>Administración del servidor › Proveedores</link> se indica qué configurar.",
"carrier.noStore.ask": "Las claves de API se guardan cifradas y este servidor no tiene una clave de cifrado configurada. Pide a quien administra este servidor que la configure.",
"carrier.noStore.title": "Tu propia cuenta todavía no se puede guardar en este servidor.",
@@ -682,7 +680,6 @@
"danger.keep.theirs": "Conservar sus cuentas",
"danger.keep.theseAndMine": "Conservar estas cuentas, incluida la tuya",
"danger.leave.loading": "el equipo",
- "danger.leave.title": "Salir del espacio de trabajo",
"danger.list.accounts": "{count, plural, one {Se eliminará # cuenta porque no tiene otro espacio de trabajo} many {Se eliminarán # cuentas porque no tienen otro espacio de trabajo} other {Se eliminarán # cuentas porque no tienen otro espacio de trabajo}}",
"danger.list.calls": "{count, plural, one {# llamada} many {# llamadas} other {# llamadas}}, con sus transcripciones y grabaciones",
"danger.list.contacts": "{count, plural, one {# contacto} many {# contactos} other {# contactos}}",
@@ -1661,7 +1658,6 @@
"sip.line.connect": "Conectar",
"sip.line.details": "Detalles",
"sip.line.tip": "Conecta tu sistema telefónico propio o tu proveedor SIP por una troncal SIP",
- "sip.line.value": "Sistema telefónico propio: {count, plural, =0 {sin conectar} one {# número} many {# números} other {# números}}",
"sip.manageDescription": "Desde tu sistema telefónico propio (troncal SIP)",
"sip.manageNote": "Tu sistema telefónico decide qué llamadas envía aquí. La dirección SIP y el nombre de usuario están en Sistema telefónico propio.",
"sip.notActive": "El último cambio todavía no ha llegado al servicio de llamadas. Hasta entonces, las llamadas usan los números y la contraseña anteriores. El servidor vuelve a intentarlo en unos minutos.",
diff --git a/packages/i18n/locales/es/team.json b/packages/i18n/locales/es/team.json
index 38255f3c..4832e22d 100644
--- a/packages/i18n/locales/es/team.json
+++ b/packages/i18n/locales/es/team.json
@@ -56,7 +56,6 @@
"leave.leaving": "Saliendo…",
"leave.loseAccess": "Pierdes el acceso de inmediato",
"leave.ownerHelp": "Eres el propietario. Primero haz propietario a otra persona (<link>Equipo</link>).",
- "leave.ownerTitle": "Eres el propietario: primero haz propietario a otra persona",
"leave.signInFirst.text": "Para eliminar tu cuenta, necesitas haber iniciado sesión en los últimos 10 minutos. Después vuelves aquí.",
"leave.signInFirst.title": "Primero vuelve a iniciar sesión.",
"leave.title": "Salir del espacio de trabajo",
diff --git a/packages/i18n/locales/fr/account.json b/packages/i18n/locales/fr/account.json
index 31ccd40b..dfa50e18 100644
--- a/packages/i18n/locales/fr/account.json
+++ b/packages/i18n/locales/fr/account.json
@@ -232,7 +232,6 @@
"profile.confirmEmail": "Confirmez que {email} vous appartient. D'ici là, vous ne pouvez pas créer de clés d'API ni de webhooks, inviter des personnes, ni configurer un opérateur ou un numéro de téléphone.",
"profile.email": "E-mail",
"profile.emailChanged": "Adresse e-mail changée en {email}. Vos autres sessions ont été déconnectées.",
- "profile.emailTip": "Vous vous connectez avec cette adresse, et les codes de connexion et les e-mails y sont envoyés.",
"profile.emailTipChange": "Vous vous connectez avec cette adresse, et les codes de connexion et les e-mails y sont envoyés. Pour la changer, confirmez la nouvelle adresse avec un code.",
"profile.enterName": "Saisissez votre nom.",
"profile.name": "Nom",
diff --git a/packages/i18n/locales/fr/settings.json b/packages/i18n/locales/fr/settings.json
index 9be1e5a6..2454ecb5 100644
--- a/packages/i18n/locales/fr/settings.json
+++ b/packages/i18n/locales/fr/settings.json
@@ -648,9 +648,7 @@
"carrier.label.default": "Par défaut de {brand}",
"carrier.label.own": "Votre propre compte {name}",
"carrier.line.changeTip": "Changer le compte de l'opérateur",
- "carrier.line.label": "Opérateur :",
"carrier.line.loading": "l'opérateur",
- "carrier.line.value": "Opérateur : {value}",
"carrier.noStore.admin": "Les clés d'API sont stockées chiffrées et ce serveur n'a pas de clé de chiffrement définie. <link>Administration du serveur › Fournisseurs</link> indique quoi définir.",
"carrier.noStore.ask": "Les clés d'API sont stockées chiffrées et ce serveur n'a pas de clé de chiffrement définie. Demandez à la personne qui gère ce serveur de la configurer.",
"carrier.noStore.title": "Votre propre compte ne peut pas encore être enregistré sur ce serveur.",
@@ -682,7 +680,6 @@
"danger.keep.theirs": "Conserver leurs comptes",
"danger.keep.theseAndMine": "Conserver ces comptes, y compris le vôtre",
"danger.leave.loading": "l'équipe",
- "danger.leave.title": "Quitter l'espace de travail",
"danger.list.accounts": "{count, plural, one {# compte sera supprimé car il n'a pas d'autre espace de travail} many {# comptes seront supprimés car ils n'ont pas d'autre espace de travail} other {# comptes seront supprimés car ils n'ont pas d'autre espace de travail}}",
"danger.list.calls": "{count, plural, one {# appel} many {# appels} other {# appels}}, avec leurs transcriptions et enregistrements",
"danger.list.contacts": "{count, plural, one {# contact} many {# contacts} other {# contacts}}",
@@ -1661,7 +1658,6 @@
"sip.line.connect": "Connecter",
"sip.line.details": "Détails",
"sip.line.tip": "Connecter votre propre système téléphonique ou fournisseur SIP par un trunk SIP",
- "sip.line.value": "Système téléphonique propre : {count, plural, =0 {non connecté} one {# numéro} many {# numéros} other {# numéros}}",
"sip.manageDescription": "Depuis votre propre système téléphonique (trunk SIP)",
"sip.manageNote": "Votre système téléphonique décide des appels qu'il envoie ici. L'adresse SIP et le nom d'utilisateur se trouvent dans Système téléphonique propre.",
"sip.notActive": "La dernière modification n'est pas encore arrivée au service d'appels. D'ici là, les appels utilisent les numéros et le mot de passe d'avant. Le serveur réessaie dans les minutes qui viennent.",
diff --git a/packages/i18n/locales/fr/team.json b/packages/i18n/locales/fr/team.json
index f7210fde..2aa87300 100644
--- a/packages/i18n/locales/fr/team.json
+++ b/packages/i18n/locales/fr/team.json
@@ -56,7 +56,6 @@
"leave.leaving": "Départ…",
"leave.loseAccess": "Vous perdez l'accès immédiatement",
"leave.ownerHelp": "Vous êtes le propriétaire. Désignez d'abord quelqu'un d'autre comme propriétaire (<link>Équipe</link>).",
- "leave.ownerTitle": "Vous êtes le propriétaire : désignez d'abord quelqu'un d'autre",
"leave.signInFirst.text": "La suppression de votre compte demande une connexion de moins de 10 minutes. Vous revenez ici ensuite.",
"leave.signInFirst.title": "Reconnectez-vous d'abord.",
"leave.title": "Quitter l'espace de travail",
diff --git a/packages/i18n/locales/ja/account.json b/packages/i18n/locales/ja/account.json
index 73ae724f..97e244ec 100644
--- a/packages/i18n/locales/ja/account.json
+++ b/packages/i18n/locales/ja/account.json
@@ -232,7 +232,6 @@
"profile.confirmEmail": "{email}があなたのものであることを確認してください。確認するまで、APIキーやWebhookの作成、メンバーの招待、通信事業者や電話番号の設定はできません。",
"profile.email": "メールアドレス",
"profile.emailChanged": "メールアドレスを{email}に変更しました。他のセッションはサインアウトされました。",
- "profile.emailTip": "このアドレスでサインインし、サインインコードやメールもこのアドレスに届きます。",
"profile.emailTipChange": "このアドレスでサインインし、サインインコードやメールもこのアドレスに届きます。変更するには、新しいアドレスをコードで確認してください。",
"profile.enterName": "名前を入力してください。",
"profile.name": "名前",
diff --git a/packages/i18n/locales/ja/settings.json b/packages/i18n/locales/ja/settings.json
index b43a5184..0e52fff1 100644
--- a/packages/i18n/locales/ja/settings.json
+++ b/packages/i18n/locales/ja/settings.json
@@ -648,9 +648,7 @@
"carrier.label.default": "{brand}のデフォルト",
"carrier.label.own": "自分の{name}",
"carrier.line.changeTip": "通信事業者のアカウントを変更",
- "carrier.line.label": "通信事業者:",
"carrier.line.loading": "通信事業者",
- "carrier.line.value": "通信事業者:{value}",
"carrier.noStore.admin": "APIキーは暗号化して保存されますが、このサーバーには暗号化キーが設定されていません。設定内容は<link>「サーバー管理 › プロバイダー」</link>で確認できます。",
"carrier.noStore.ask": "APIキーは暗号化して保存されますが、このサーバーには暗号化キーが設定されていません。このサーバーの運用者に設定を依頼してください。",
"carrier.noStore.title": "このサーバーにはまだ自分のアカウントを保存できません。",
@@ -682,7 +680,6 @@
"danger.keep.theirs": "メンバーのアカウントを残す",
"danger.keep.theseAndMine": "自分を含め、これらのアカウントを残す",
"danger.leave.loading": "チーム",
- "danger.leave.title": "ワークスペースから退出",
"danger.list.accounts": "{count, plural, other {ほかのワークスペースがない#件のアカウントが削除されます}}",
"danger.list.calls": "{count, plural, other {#件の通話}}(文字起こしと録音を含む)",
"danger.list.contacts": "{count, plural, other {#件の連絡先}}",
@@ -1661,7 +1658,6 @@
"sip.line.connect": "接続",
"sip.line.details": "詳細",
"sip.line.tip": "自社の電話システムまたはSIPプロバイダーをSIPトランクで接続",
- "sip.line.value": "自社の電話システム:{count, plural, =0 {未接続} other {番号#件}}",
"sip.manageDescription": "自社の電話システムから(SIPトランク)",
"sip.manageNote": "ここに送る通話は、電話システム側で決まります。SIPアドレスとユーザー名は「自社の電話システム」にあります。",
"sip.notActive": "最後の変更がまだ通話サービスに反映されていません。反映されるまで、通話には以前の番号とパスワードが使われます。サーバーが数分以内に再試行します。",
diff --git a/packages/i18n/locales/ja/team.json b/packages/i18n/locales/ja/team.json
index 731ff324..a89d1b31 100644
--- a/packages/i18n/locales/ja/team.json
+++ b/packages/i18n/locales/ja/team.json
@@ -56,7 +56,6 @@
"leave.leaving": "退出しています…",
"leave.loseAccess": "すぐにアクセスできなくなります",
"leave.ownerHelp": "あなたはオーナーです。先に他の人をオーナーにしてください(<link>チーム</link>)。",
- "leave.ownerTitle": "あなたはオーナーです:先に他の人をオーナーにしてください",
"leave.signInFirst.text": "アカウントを削除するには、10分以内にサインインしている必要があります。その後、この画面に戻ります。",
"leave.signInFirst.title": "先にもう一度サインインしてください。",
"leave.title": "ワークスペースから退出",
diff --git a/packages/i18n/locales/pt-BR/account.json b/packages/i18n/locales/pt-BR/account.json
index 5791b3ce..aac4b04d 100644
--- a/packages/i18n/locales/pt-BR/account.json
+++ b/packages/i18n/locales/pt-BR/account.json
@@ -232,7 +232,6 @@
"profile.confirmEmail": "Confirme que {email} é seu. Até lá, você não pode criar chaves de API ou webhooks, convidar pessoas nem configurar uma operadora ou número de telefone.",
"profile.email": "E-mail",
"profile.emailChanged": "E-mail alterado para {email}. Suas outras sessões foram encerradas.",
- "profile.emailTip": "Você entra com este endereço, e os códigos de login e os e-mails vão para ele.",
"profile.emailTipChange": "Você entra com este endereço, e os códigos de login e os e-mails vão para ele. Para alterá-lo, confirme o novo endereço com um código.",
"profile.enterName": "Digite seu nome.",
"profile.name": "Nome",
diff --git a/packages/i18n/locales/pt-BR/settings.json b/packages/i18n/locales/pt-BR/settings.json
index 62fd5d5f..a72b4ecb 100644
--- a/packages/i18n/locales/pt-BR/settings.json
+++ b/packages/i18n/locales/pt-BR/settings.json
@@ -648,9 +648,7 @@
"carrier.label.default": "Padrão do {brand}",
"carrier.label.own": "Sua própria conta da {name}",
"carrier.line.changeTip": "Alterar a conta da operadora",
- "carrier.line.label": "Operadora:",
"carrier.line.loading": "a operadora",
- "carrier.line.value": "Operadora: {value}",
"carrier.noStore.admin": "As chaves de API são guardadas criptografadas e este servidor não tem uma chave de criptografia definida. <link>Administração do servidor › Provedores</link> diz o que definir.",
"carrier.noStore.ask": "As chaves de API são guardadas criptografadas e este servidor não tem uma chave de criptografia definida. Peça a quem administra este servidor para configurá-la.",
"carrier.noStore.title": "Sua própria conta ainda não pode ser salva neste servidor.",
@@ -682,7 +680,6 @@
"danger.keep.theirs": "Manter as contas deles",
"danger.keep.theseAndMine": "Manter estas contas, incluindo a sua",
"danger.leave.loading": "a equipe",
- "danger.leave.title": "Sair do espaço de trabalho",
"danger.list.accounts": "{count, plural, one {# conta será excluída porque não tem outro espaço de trabalho} many {# contas serão excluídas porque não têm outro espaço de trabalho} other {# contas serão excluídas porque não têm outro espaço de trabalho}}",
"danger.list.calls": "{count, plural, one {# chamada} many {# chamadas} other {# chamadas}}, com as transcrições e gravações",
"danger.list.contacts": "{count, plural, one {# contato} many {# contatos} other {# contatos}}",
@@ -1661,7 +1658,6 @@
"sip.line.connect": "Conectar",
"sip.line.details": "Detalhes",
"sip.line.tip": "Conectar seu próprio sistema telefônico ou provedor SIP por um tronco SIP",
- "sip.line.value": "Sistema telefônico próprio: {count, plural, =0 {não conectado} one {# número} many {# números} other {# números}}",
"sip.manageDescription": "Do seu próprio sistema telefônico (tronco SIP)",
"sip.manageNote": "Seu sistema telefônico decide quais chamadas envia para cá. O endereço SIP e o nome de usuário estão em Sistema telefônico próprio.",
"sip.notActive": "A última alteração ainda não chegou ao serviço de chamadas. Até lá, as chamadas usam os números e a senha de antes. O servidor tenta de novo em alguns minutos.",
diff --git a/packages/i18n/locales/pt-BR/team.json b/packages/i18n/locales/pt-BR/team.json
index 6c502419..ca26d7e2 100644
--- a/packages/i18n/locales/pt-BR/team.json
+++ b/packages/i18n/locales/pt-BR/team.json
@@ -56,7 +56,6 @@
"leave.leaving": "Saindo…",
"leave.loseAccess": "Você perde o acesso na hora",
"leave.ownerHelp": "Você é o proprietário. Primeiro torne outra pessoa proprietária (<link>Equipe</link>).",
- "leave.ownerTitle": "Você é o proprietário: primeiro torne outra pessoa proprietária",
"leave.signInFirst.text": "Para excluir sua conta, é preciso ter entrado nos últimos 10 minutos. Depois, você volta para cá.",
"leave.signInFirst.title": "Entre novamente primeiro.",
"leave.title": "Sair do espaço de trabalho",