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 settings pages: Stripe on Billing, one save model, the sign-up bugs (PR 1921)
Janikaf1115262cc4
diff --git a/apps/api/src/billing-settings.ts b/apps/api/src/billing-settings.tsindex 4402994d..6844ac0b 100644--- a/apps/api/src/billing-settings.ts+++ b/apps/api/src/billing-settings.ts@@ -86,7 +86,7 @@ async function stripeKeys(tx: Tx): Promise<StripeKeys | null> {}}-/** What Server admin › Billing › Stripe shows next to the switch. */+/** What Server admin › Billing shows next to the switch. */export async function billingState(tx: Tx, env: Env = serverEnv()): Promise<BillingEnabledData> {const keys = await stripeKeys(tx)const mode = keys ? stripeKeyMode(keys.secretKey) : null@@ -216,14 +216,14 @@ export async function boundAccount(tx: Pick<Tx, 'select'>): Promise<Binding | nuasync function connectedAccount(tx: Tx): Promise<Binding> {const keys = await stripeKeys(tx)const mode = keys && stripeKeyMode(keys.secretKey)- if (!keys || !mode) throw new Reject('Connect Stripe first: both keys under Billing › Stripe.')+ if (!keys || !mode) throw new Reject('Connect Stripe first: both keys under Providers › Billing.')let id: string | undefinedtry {id = (await (await loadBillingProvider(keys, stripeFetch)).account())?.id} catch {- throw new Reject('Stripe did not confirm the account. Test the keys under Billing › Stripe, then try again.')+ throw new Reject('Stripe did not confirm the account. Test the keys under Providers › Billing, then try again.')}- if (!id) throw new Reject('Stripe did not confirm the account. Test the keys under Billing › Stripe, then try again.')+ if (!id) throw new Reject('Stripe did not confirm the account. Test the keys under Providers › Billing, then try again.')return { id, mode }}@@ -261,7 +261,7 @@ export const billingSettingsHandlers: Record<string, Handler> = {const state = await billingState(tx)let binding: Binding | null = nullif (input.on) {- if (!state.connected) throw new Reject('Connect Stripe first: both keys under Billing › Stripe.')+ if (!state.connected) throw new Reject('Connect Stripe first: both keys under Providers › Billing.')if (state.mode === 'live' && !state.liveAllowed) throw new Reject(LIVE_KEYS_REFUSED)binding = await connectedAccount(tx)const bound = await boundAccount(tx)diff --git a/apps/web/src/admin/AdminMode.tsx b/apps/web/src/admin/AdminMode.tsxindex 15ec2358..4c480d3b 100644--- a/apps/web/src/admin/AdminMode.tsx+++ b/apps/web/src/admin/AdminMode.tsx@@ -381,7 +381,10 @@ export function AdminMode({ currentUserId, onExit }: Props) {) : (<><div className="adm-head-row">- <h2>{t(meta.label)}</h2>+ <h2>+ {t(meta.label)}+ {'help' in meta && meta.help && <HelpTip text={t(meta.help)} />}+ </h2><div className="adm-head-actions" ref={setHeadActions} /></div>{meta.description && <p>{t(meta.description)}</p>}diff --git a/apps/web/src/admin/Billing.test.tsx b/apps/web/src/admin/Billing.test.tsxindex 9257ca41..deb4ca43 100644--- a/apps/web/src/admin/Billing.test.tsx+++ b/apps/web/src/admin/Billing.test.tsx@@ -173,7 +173,8 @@ test('with the bot check off, the sign-up limits warn that only the limits protetest('open sign-up says so, and its limits are editable with plain labels', () => {data['admin.billing.selfServe'] = selfServe({})const html = renderSignup()- expect(html).toContain('Open')+ expect(html).toContain('aria-checked="true" aria-label="Self-serve sign-up"')+ expect(html).not.toContain('>Closed<')expect(html).toContain('Anyone can sign up and start a trial now.')expect(html).not.toContain('switched on but closed')expect(html).toContain('Sign-up limits')@@ -227,24 +228,22 @@ test("Billing's own page: lines like Features under Operations and Setup, each aexpect(html).toContain('<h3 class="k-line-group">Operations</h3>')expect(html).toContain('<h3 class="k-line-group">Setup</h3>')expect(html.indexOf('Operations')).toBeLessThan(html.indexOf('Setup'))+ // Operations' three lines; Setup: the billing switch, Stripe Tax (both lines here, no Stripe page), Prices and rules.expect(html.match(/class="k-card k-feature"/g)).toHaveLength(6)- // Each line's button is a link to its page: Connect for Stripe not connected, Change for Prices and rules.- expect(html).toContain(- '<a class="k-btn k-btn-secondary k-btn-sm" href="#admin/billing/stripe"><span>Connect</span></a>',- )+ expect(html).toContain('aria-label="Bill workspaces through Stripe"')+ expect(html).toContain('aria-label="Stripe Tax"')+ expect(html).not.toContain('href="#admin/billing/stripe"')expect(html).toContain('href="#admin/billing/rules"><span>Change</span></a>')expect(html).toContain('href="#admin/billing/review"><span>Open</span></a>')expect(html).toContain('href="#admin/billing/bills?status=')expect(html).toContain('href="#admin/billing/events')- // Sign-up has one place: Sign-up & access.- expect(html).toContain('href="#admin/access"><span>Open</span></a>')+ // Sign-up has one place, Sign-up & access: no line for it here.+ expect(html).not.toContain('href="#admin/access"')expect(html).not.toContain('href="#admin/billing/signup"')// The states, as badges in the marks' tones: failed events need the admin, owing and held bills a look.- expect(html).toContain('<span class="k-badge k-badge-neutral">Not connected</span>')expect(html).toContain('<span class="k-badge k-badge-warning">1 held</span>')expect(html).toContain('<span class="k-badge k-badge-warning">2 owe money</span>')expect(html).toContain('<span class="k-badge k-badge-danger">2 need a look</span>')- expect(html).toContain('<span class="k-badge k-badge-neutral">Closed</span>')expect(html).not.toContain('ib-tab')expect(html).not.toContain('Bills by status')})diff --git a/apps/web/src/admin/Billing.tsx b/apps/web/src/admin/Billing.tsxindex 5a76af11..e1796277 100644--- a/apps/web/src/admin/Billing.tsx+++ b/apps/web/src/admin/Billing.tsx@@ -51,6 +51,7 @@ import { type AdminAction, DetailActions, RowActions, useActionRunner } from './import type { AdminData } from './api.ts'import { runAdmin } from './api.ts'import { BillingSwitch } from './BillingSwitch.tsx'+import { CALL_QUALITY, loadCallQuality } from './CallQuality.tsx'import {ago,BILL_FILTERS,@@ -59,7 +60,6 @@ import {billsHref,blankIsNone,changedFields,- customFields,defaultText,eventFilterOfHash,eventsHref,@@ -79,6 +79,7 @@ import {reasonProblem,rulesForm,rulesFromForm,+ sameText,ruleUnit,SIGNUP_GROUPS,type SignupForm,@@ -223,7 +224,7 @@ export function Billing({ id, onOpen, notify, keysRef, data, headActions }: Propif (!tab) return <BillDetail id={id!} notify={notify} slot={headActions ?? null} />switch (tab) {case 'overview':- return <BillingHome />+ return <BillingHome data={data} notify={notify} />case 'bills':return <BillsList onOpen={onOpen} keysRef={keysRef} />case 'review':@@ -232,13 +233,6 @@ export function Billing({ id, onOpen, notify, keysRef, data, headActions }: Propreturn <EventsCard notify={notify} />case 'rules':return <RulesCard notify={notify} />- case 'stripe':- return (- <>- <StripeCard data={data} />- <TaxCard notify={notify} />- </>- )}}@@ -248,7 +242,6 @@ const TAB_LABELS: Record<BillingTab, MessageKey> = {review: msg('admin.bills.tab.review'),events: msg('admin.bills.tab.events'),rules: msg('admin.bills.tab.rules'),- stripe: msg('admin.bills.tab.stripe'),}/** The title of a part of Billing (`#admin/billing/<tab>`); null on Billing's own page and for a bill. */@@ -258,8 +251,8 @@ export function billingPartTitle(t: Translate, id: string | null): string | null}/**- * The line under a part's title and its help, for the parts that are one card (Review, Stripe events): shown in the- * page header, so the card does not repeat the title. Null for the other parts and for a bill.+ * The line under a part's title and its help (Review, Stripe events, Prices and rules): shown in the page header, so the+ * page does not repeat the title and the (?) sits after it. Null for the other parts and for a bill.*/export function billingPartIntro(t: Translate, id: string | null): { description: string; help: string } | null {const tab = billingTab(id)@@ -267,6 +260,7 @@ export function billingPartIntro(t: Translate, id: string | null): { descriptionreturn { description: t('admin.bills.review.description'), help: t('admin.bills.review.radarHelp') }if (tab === 'events')return { description: t('admin.bills.events.descriptionShort'), help: t('admin.bills.events.description') }+ if (tab === 'rules') return { description: t('admin.bills.rules.intro'), help: t('admin.bills.rules.description') }return null}@@ -275,8 +269,11 @@ export function billingPartIntro(t: Translate, id: string | null): { description/** Billing at a glance (also the Overview's Needs you, NeedsYou.tsx). */export const useSummary = () => useQuery(SUMMARY, loadSummary, KEPT)-/** Billing's own page: its parts as lines like Features', each opening the part's own page. */-function BillingHome() {+/**+ * Billing's own page: its parts as lines like Features', each opening the part's own page; under Setup the two+ * switches (billing through Stripe, Stripe Tax) are lines of their own (Billing › Stripe was a page of only them).+ */+function BillingHome({ data: admin, notify }: { data: AdminData | null; notify: Notify }) {const t = useT()const query = useSummary()const data = query.data@@ -293,6 +290,14 @@ function BillingHome() {hubGroups(data).map(group => (<Fragment key={group.id}><LineGroup>{group.label}</LineGroup>+ {group.id === 'setup' && (+ <>+ <section className="k-card k-feature" aria-label={t('admin.billing.switch')}>+ {admin ? <BillingSwitch data={admin} /> : <SkeletonSettingRow control="switch" />}+ </section>+ <TaxLine notify={notify} />+ </>+ )}{group.lines.map(({ id, action, ...line }) => (<LinkLine key={id} {...line} label={action} />))}@@ -305,12 +310,17 @@ function BillingHome() {/** The page while the summary loads: the groups' headings at once, their lines in their shape. */function HubSkeleton() {const t = useT()- return [t('admin.bills.hub.operations'), t('admin.bills.hub.setup')].map(label => (+ const groups: [string, ('button' | 'switch')[]][] = [+ [t('admin.bills.hub.operations'), ['button', 'button', 'button']],+ [t('admin.bills.hub.setup'), ['switch', 'switch', 'button']],+ ]+ return groups.map(([label, controls]) => (<Fragment key={label}><LineGroup>{label}</LineGroup>- {[0, 1, 2].map(line => (+ {controls.map((control, line) => (+ // biome-ignore lint/suspicious/noArrayIndexKey: placeholder lines never reorder<section key={line} className="k-card k-feature">- <SkeletonSettingRow index={line} control="button" />+ <SkeletonSettingRow index={line} control={control} /></section>))}</Fragment>@@ -740,29 +750,14 @@ function EventsCard({ notify }: { notify: Notify }) {)}-// ---- Stripe ----+// ---- Stripe Tax ----/**- * Billing › Stripe: the billing switch. Stripe's keys are connected under Providers › Billing like every other- * service's (LIN-693); the switch reads them from the admin data.+ * The Stripe Tax switch (`BillingRules.automaticTax`), a line on Billing's page under the billing switch. A change+ * reaches running subscriptions and every admin is emailed, so it is confirmed with what it means and a reason (kept in+ * the audit log, security review of #1105) and stored like any billing rule, only this field.*/-function StripeCard({ data }: { data: AdminData | null }) {- const t = useT()- return (- <Card- title={t('admin.bills.stripe.switchTitle')}- description={<T k="admin.bills.stripe.keysWhere" values={{ link: appLink('#admin/providers/billing') }} />}- >- {data ? <BillingSwitch data={data} /> : <SkeletonRows rows={1} columns={2} className="adm-sk-rows" />}- </Card>- )-}--/**- * The Stripe Tax switch (`BillingRules.automaticTax`), on the Stripe page next to billing itself: a change is confirmed- * with a reason and stored like any billing rule, only this field (the server keeps the others).- */-function TaxCard({ notify }: { notify: Notify }) {+function TaxLine({ notify }: { notify: Notify }) {const t = useT()const query = useQuery(RULES, loadRules, KEPT)const on = query.data?.effective.automaticTax@@ -770,7 +765,7 @@ function TaxCard({ notify }: { notify: Notify }) {// Asked of Stripe only while the confirm dialog turns tax on, never with the rules (security review of #1105, N-1).const taxAddress = useQuery(asking === true ? TAX_ADDRESS : null, loadTaxAddress)return (- <Card id="adm-stripe-tax" title={t('admin.bills.rules.group.tax')} className="adm-detail">+ <section id="adm-stripe-tax" className="k-card k-feature" aria-label={t('admin.bills.rules.automaticTax')}><SettingRowtitle={t('admin.bills.rules.automaticTax')}help={t('admin.bills.rules.automaticTax.help')}@@ -809,42 +804,39 @@ function TaxCard({ notify }: { notify: Notify }) {{taxChange(asking, taxAddress.error ? null : taxAddress.data, t)}</ReasonDialog>)}- </Card>+ </section>)}// ---- Self-serve sign-up ----/**- * The switch and whether sign-up is really open: switched on is not open while something it needs is missing (billing- * through Stripe, or the Turnstile keys while the bot check is on), and the card says so plainly.+ * Self-serve sign-up as a line of its own on Sign-up & access: the switch and whether sign-up is really open. Switched+ * on is not open while something it needs is missing (billing through Stripe, the Turnstile keys while the bot check is+ * on, the terms), and the line says so plainly under it. Turning it on or off still asks why: every server admin is+ * emailed with the reason (billing-admin's money check).*/export function SelfServeCard({ notify }: { notify: Notify }) {const t = useT()const query = useQuery(SELF_SERVE, loadSelfServe, KEPT)const [asking, setAsking] = useState<boolean | null>(null)const data = query.data- const link = { link: appLink('#admin/billing/stripe') }+ const link = { link: appLink('#admin/billing') }+ // Switched on but closed (a key or the terms missing) needs the admin: a red badge next to the switch, the reason+ // below. Its words never say it is open while it is not (they say what the switch does).+ const closedWhileOn = !!data?.on && !data.openreturn (- <Card- title={t('admin.bills.selfServe.title')}- actions={- data && (- <Badge tone={data.open ? 'ok' : data.on ? 'danger' : 'neutral'} dot={data.open}>- {t(data.open ? 'admin.bills.selfServe.state.open' : 'admin.bills.selfServe.state.closed')}- </Badge>- )- }- className="adm-detail"- >+ <section className="k-card k-feature" aria-label={t('admin.bills.selfServe.switch')}><SettingRowtitle={t('admin.bills.selfServe.switch')}description={- data && !data.billingInEffect && !data.on- ? t('admin.bills.selfServe.needsBilling')- : data?.open- ? t('admin.bills.selfServe.openNow')- : t('admin.bills.selfServe.help')+ data && !data.billingInEffect && !data.on ? (+ <T k="admin.bills.selfServe.needsBillingLink" values={link} />+ ) : data?.open ? (+ t('admin.bills.selfServe.openNow')+ ) : (+ t('admin.signupPage.selfServe.summary')+ )}control={<Loading@@ -854,6 +846,7 @@ export function SelfServeCard({ notify }: { notify: Notify }) {onRetry={() => void query.reload()}skeleton={<Skeleton width={34} height={20} className="sk-round" />}>+ {closedWhileOn && <Badge tone="danger">{t('admin.bills.selfServe.state.closed')}</Badge>}<Switchon={data?.on ?? false}onChange={setAsking}@@ -864,22 +857,26 @@ export function SelfServeCard({ notify }: { notify: Notify }) {</Loading>}/>- {data?.on && data.closedBecause === 'bot_check_missing' && (- <Note tone="danger">- <T k="admin.bills.selfServe.closed.botCheck" values={{ link: appLink('#admin/providers/bot_check') }} />- </Note>- )}- {data?.on && data.closedBecause === 'billing_not_in_effect' && (- <Note tone="danger">- <T k="admin.bills.selfServe.closed.billing" values={link} />- </Note>- )}- {data && data.termsMissing.length > 0 && (- <Note tone={data.on ? 'danger' : 'warning'}>- {t(data.on ? 'admin.bills.selfServe.termsMissingOn' : 'admin.bills.selfServe.termsMissing', {- vars: data.termsMissing.join(', '),- })}- </Note>+ {data && (closedWhileOn || data.termsMissing.length > 0) && (+ <div className="adm-line-notes">+ {data?.on && data.closedBecause === 'bot_check_missing' && (+ <Note tone="danger">+ <T k="admin.bills.selfServe.closed.botCheck" values={{ link: appLink('#admin/providers/bot_check') }} />+ </Note>+ )}+ {data?.on && data.closedBecause === 'billing_not_in_effect' && (+ <Note tone="danger">+ <T k="admin.bills.selfServe.closed.billing" values={link} />+ </Note>+ )}+ {data && data.termsMissing.length > 0 && (+ <Note tone={data.on ? 'danger' : 'warning'}>+ {t(data.on ? 'admin.bills.selfServe.termsMissingOn' : 'admin.bills.selfServe.termsMissing', {+ vars: data.termsMissing.join(', '),+ })}+ </Note>+ )}+ </div>)}{asking !== null && (<ReasonDialog@@ -896,7 +893,7 @@ export function SelfServeCard({ notify }: { notify: Notify }) {onClose={() => setAsking(null)}/>)}- </Card>+ </section>)}@@ -904,6 +901,8 @@ export function SelfServeCard({ notify }: { notify: Notify }) {const UNIT_END: Partial<Record<FieldUnit, MessageKey>> = {usdPerMinute: msg('admin.bills.unit.perMinute'),+ usdPerMonth: msg('admin.bills.unit.perMonth'),+ usdPerYear: msg('admin.bills.unit.perYear'),minutes: msg('admin.bills.unit.minutes'),days: msg('admin.bills.unit.days'),seconds: msg('admin.bills.unit.seconds'),@@ -933,9 +932,9 @@ type NumberFieldProps = {function NumberField(props: NumberFieldProps) {const { id, label, help, value, fallback, fallbackText, unit, error, blankIsNone: blankNone, onChange } = propsconst t = useT()- const own = (value.trim() !== '' || !!blankNone) && value.trim() !== fallback.trim()+ const own = (value.trim() !== '' || !!blankNone) && !sameText(value, fallback)const end = unit && UNIT_END[unit]- const money = unit === 'usd' || unit === 'usdPerMinute'+ const money = unit === 'usd' || unit === 'usdPerMonth' || unit === 'usdPerYear' || unit === 'usdPerMinute'return (<FormFieldid={id}@@ -1175,7 +1174,13 @@ export function SignupRulesCard({ notify }: { notify: Notify }) {><fieldset className="adm-checks adm-checks-row"><legend className="sr-only">{t('admin.bills.signupRules.reviewRiskLevels')}</legend>- {RADAR_RISK_LEVELS.filter(level => level !== 'normal').map(level => (+ {/* Elevated and Highest; Not assessed and Unknown only while one of them is ticked (so it can be unticked). */}+ {RADAR_RISK_LEVELS.filter(+ level =>+ level === 'elevated' ||+ level === 'highest' ||+ (level !== 'normal' && !!saved?.reviewRiskLevels.includes(level)),+ ).map(level => (<Checkboxkey={level}checked={form.reviewRiskLevels.includes(level)}@@ -1299,6 +1304,10 @@ function RulesCard({ notify }: { notify: Notify }) {const t = useT()const query = useQuery(RULES, loadRules, KEPT)const data = query.data+ // A level that is off on this server (Call quality) has no price to set: its fields wait until it is on. Shown while+ // that is not read yet; Standard is always on.+ const levels = useQuery(CALL_QUALITY, loadCallQuality).data?.levels+ const levelShown = (level: string) => levels?.find(l => l.level === level)?.enabled ?? trueconst saved = useMemo(() => (data ? rulesForm(data.effective) : null), [data])const defaults = useMemo(() => (data ? rulesForm(data.defaults) : null), [data])const [form, setForm] = useState<RulesForm>({})@@ -1329,7 +1338,6 @@ function RulesCard({ notify }: { notify: Notify }) {/></Card>)- const own = customFields(form, defaults).lengthconst field = (key: string, label: string, help: string, fallbackText?: string) => (<NumberFieldkey={key}@@ -1355,10 +1363,6 @@ function RulesCard({ notify }: { notify: Notify }) {: ''return (<form onSubmit={save} onKeyDown={e => onSaveKey(e, dirty)} className="adm-rules">- <p className="adm-lede">- {t('admin.bills.rules.lede', { count: own })}- <HelpTip text={t('admin.bills.rules.description')} />- </p>{data.problems.length > 0 && (<Note tone="warning">{t('admin.bills.rules.ignored', { fields: data.problems.join(', ') })}</Note>)}@@ -1374,24 +1378,26 @@ function RulesCard({ notify }: { notify: Notify }) {>{group.id === 'minutes' && (<div className="adm-rules-levels">- {Object.entries(data.defaults.levels).map(([level, fallback]) => {- const name = LEVEL_NAMES[level] ? t(LEVEL_NAMES[level]) : level- return (- <div key={level} className="adm-rules-grid">- {field(- `levels.${level}.price`,- t('admin.bills.rules.levelPrice', { level: name }),- `${t('admin.bills.rules.levelPrice.help', { level: name })}${minPrice}`,- rateOfMicros(fallback.microsPerMinute),- )}- {field(- `levels.${level}.factor`,- t('admin.bills.rules.levelFactor', { level: name }),- t('admin.bills.rules.levelFactor.help', { level: name }),- )}- </div>- )- })}+ {Object.entries(data.defaults.levels)+ .filter(([level]) => levelShown(level))+ .map(([level, fallback]) => {+ const name = LEVEL_NAMES[level] ? t(LEVEL_NAMES[level]) : level+ return (+ <div key={level} className="adm-rules-grid">+ {field(+ `levels.${level}.price`,+ t('admin.bills.rules.levelPrice', { level: name }),+ `${t('admin.bills.rules.levelPrice.help', { level: name })}${minPrice}`,+ rateOfMicros(fallback.microsPerMinute),+ )}+ {field(+ `levels.${level}.factor`,+ t('admin.bills.rules.levelFactor', { level: name }),+ t('admin.bills.rules.levelFactor.help', { level: name }),+ )}+ </div>+ )+ })}</div>)}<div className="adm-rules-grid">{group.fields.map(key => ruleField(key))}</div>diff --git a/apps/web/src/admin/BillingSwitch.test.tsx b/apps/web/src/admin/BillingSwitch.test.tsxindex c6129df4..76ecea0e 100644--- a/apps/web/src/admin/BillingSwitch.test.tsx+++ b/apps/web/src/admin/BillingSwitch.test.tsx@@ -1,4 +1,4 @@-// Server admin › Billing › Stripe during support access: read-only like every setting then, nothing loaded.+// Server admin › Billing's billing switch during support access: read-only like every setting then, nothing loaded.import { renderToStaticMarkup } from 'react-dom/server'import { expect, test, vi } from 'vitest'diff --git a/apps/web/src/admin/BillingSwitch.tsx b/apps/web/src/admin/BillingSwitch.tsxindex 23ced877..6183fcd3 100644--- a/apps/web/src/admin/BillingSwitch.tsx+++ b/apps/web/src/admin/BillingSwitch.tsx@@ -1,13 +1,14 @@-// Server admin › Billing › Stripe: the install's billing switch below the Stripe provider.+// Server admin › Billing: the install's billing switch, a line on Billing's own page (Stripe's keys are under Providers).// Billing runs only when Stripe has both keys and this switch is on (off by default), so a self-hosted install with// keys stored still bills nobody. A dev install (LINEDESK_MODE=dev) refuses live keys; the line under the switch// says which mode the stored key is in, or that billing is paused because the ledger's database guards are not intact.import type { BillingEnabledData } from '@linedesk/actions'import { type MessageKey, msg } from '@linedesk/i18n'-import { useT } from '@linedesk/i18n/react'+import { T, useT } from '@linedesk/i18n/react'import { useEffect, useState } from 'react'import { setQueryData, useQuery } from '../cachedQuery.ts'import { useSupportAccess } from '../supportAccess.ts'+import { adminLink } from '../ui/AppLink.tsx'import { Switch } from '../ui/controls.tsx'import { Loading, Skeleton } from '../ui/LoadStates.tsx'import { SettingRow } from '../ui/SettingRow.tsx'@@ -16,9 +17,8 @@ import { type AdminData, runAdmin } from './api.ts'const BILLING = 'admin.billingEnabled'const load = async () => (await runAdmin('billingEnabled.get', {})) as BillingEnabledData-/** The line under the switch: what is missing, or which mode the key is in. */+/** The line under the switch: what is missing, or which mode the key is in (not connected: `ConnectLine`). */function stateLine(data: BillingEnabledData): MessageKey {- if (!data.connected) return msg('admin.billing.notConnected')if (data.mode === 'live' && !data.liveAllowed) return msg('admin.billing.liveRefused')if (!data.guardsOk) return msg('admin.billing.guardsMissing')if (data.mode === 'live') return msg('admin.billing.liveMode')@@ -55,6 +55,19 @@ export function BillingSwitch({ data: admin }: { data: AdminData }) {}const blocked = !!data && (!data.connected || (data.mode === 'live' && !data.liveAllowed))+ // Not connected: nothing to switch yet; the line says where Stripe's keys go and its button goes there.+ if (data && !data.connected && !data.on && !supportAccess)+ return (+ <SettingRow+ title={t('admin.billing.switch')}+ description={<T k="admin.billing.connectFirst" values={{ link: adminLink('#admin/providers/billing') }} />}+ control={+ <a className="k-btn k-btn-secondary k-btn-sm" href="#admin/providers/billing">+ <span>{t('admin.bills.hub.connect')}</span>+ </a>+ }+ />+ )return (<SettingRowtitle={t('admin.billing.switch')}diff --git a/apps/web/src/admin/CallQuality.tsx b/apps/web/src/admin/CallQuality.tsxindex 632f6e0e..949d4016 100644--- a/apps/web/src/admin/CallQuality.tsx+++ b/apps/web/src/admin/CallQuality.tsx@@ -98,9 +98,7 @@ export function CallQualityCard({ notify }: { notify: Notify }) {description={data?.centsPerMinute ? (<T k="admin.callQuality.descriptionBilling" values={{ link: appLink('#admin/billing') }} />- ) : (- t('admin.callQuality.description')- )+ ) : undefined}><Loadingdiff --git a/apps/web/src/admin/Onboarding.tsx b/apps/web/src/admin/Onboarding.tsxindex ff1fe9a3..b59bda48 100644--- a/apps/web/src/admin/Onboarding.tsx+++ b/apps/web/src/admin/Onboarding.tsx@@ -11,8 +11,7 @@ import { setQueryData, useQuery } from '../cachedQuery.ts'import { fmt } from '../i18n/format.ts'import { Switch } from '../ui/controls.tsx'import { FilterChip, FilterChips } from '../ui/FilterChips.tsx'-import { Card, Input } from '../ui/form.tsx'-import { Button } from '../ui/kit.tsx'+import { Card, Input, onSaveKey, SaveBar } from '../ui/form.tsx'import { Loading, Skeleton, SkeletonRows } from '../ui/LoadStates.tsx'import { SettingRow } from '../ui/SettingRow.tsx'import { AdminList, type Column, type ListKeys } from './AdminList.tsx'@@ -88,7 +87,7 @@ const looksLikeAddress = (v: string) => /^[^\s@<>]+@[^\s@<>]+\.[^\s@<>]+$/.test(/*** The personal email from a founder (apps/api/src/founder-email.ts): the name and address it comes from, and the- * switch. Turning it on saves what is typed; while on, Save changes the sender.+ * switch. Turning it on saves what is typed; while on, a change of the sender saves with the Save bar.*/export function FounderEmail() {const t = useT()@@ -133,36 +132,44 @@ export function FounderEmail() {{data && (<><form- className="ob2-row"+ className="adm-founder-form"noValidateonSubmit={e => {e.preventDefault()if (changed && valid) void save(typed)}}+ onKeyDown={e => onSaveKey(e, changed && valid && !busy)}>- <Input- aria-label={t('admin.onboarding.founderName')}- placeholder={t('admin.onboarding.founderName')}- value={name ?? data.sender?.name ?? ''}- disabled={busy}- onChange={e => setName(e.target.value)}- />- <Input- aria-label={t('admin.onboarding.founderAddress')}- placeholder={t('admin.onboarding.founderAddress')}- type="email"- value={address ?? data.sender?.email ?? ''}- disabled={busy}- invalid={!!typed.email && !looksLikeAddress(typed.email)}- onChange={e => setAddress(e.target.value)}+ <div className="k-fields-row">+ <Input+ aria-label={t('admin.onboarding.founderName')}+ placeholder={t('admin.onboarding.founderName')}+ value={name ?? data.sender?.name ?? ''}+ disabled={busy}+ onChange={e => setName(e.target.value)}+ />+ <Input+ aria-label={t('admin.onboarding.founderAddress')}+ placeholder={t('admin.onboarding.founderAddress')}+ type="email"+ value={address ?? data.sender?.email ?? ''}+ disabled={busy}+ invalid={!!typed.email && !looksLikeAddress(typed.email)}+ onChange={e => setAddress(e.target.value)}+ />+ </div>+ <p className="help">{t('admin.onboarding.founderAddressHelp')}</p>+ {/* While it is on, a changed sender saves with the Save bar; while off, the switch below saves it. */}+ <SaveBar+ dirty={changed}+ saving={busy}+ disabled={!valid}+ onCancel={() => {+ setName(null)+ setAddress(null)+ }}/>- {on && (- <Button busy={busy} type="submit" disabled={!changed || !valid}>- {t('common.action.save')}- </Button>- )}</form>- <p className="help">{t('admin.onboarding.founderAddressHelp')}</p><SettingRowtitle={t('admin.onboarding.sendFounderEmail')}description={!data.emailConnected && t(notConnectedLine(on))}diff --git a/apps/web/src/admin/Overview.tsx b/apps/web/src/admin/Overview.tsxindex b86bb50a..11083f87 100644--- a/apps/web/src/admin/Overview.tsx+++ b/apps/web/src/admin/Overview.tsx@@ -12,6 +12,7 @@ import { cx } from '../ui/kit.tsx'import { LoadProblem, Skeleton, useLoading } from '../ui/LoadStates.tsx'import { type AdminOverview, loadOverview } from './api.ts'import { Funnel } from './Funnel.tsx'+import { formatMinutes } from './model.ts'import { EMPTY } from './parts.tsx'import { ShopifySetups } from './ShopifySetups.tsx'import { Card } from '../ui/form.tsx'@@ -150,16 +151,11 @@ export function Overview({ onOpen }: Props) {<div className="adm-stats">{o ? (<>- <Stat- label={t('admin.overview.stat.callsToday')}- value={count(o.calls.today)}- note={t('admin.overview.stat.callsTodayNote')}- /><Stat label={t('admin.overview.stat.calls7d')} value={count(o.calls.last7d)} /><Statlabel={t('admin.overview.costs.minutes7d')}- value={count(o.minutes.last7d)}- note={t('admin.overview.stat.minutesMonth', { count: o.minutes.month })}+ value={formatMinutes(o.minutes.last7d)}+ note={t('admin.overview.stat.minutesMonthText', { minutes: formatMinutes(o.minutes.month) })}/><Statlabel={t('admin.overview.costs.cost7d')}@@ -168,17 +164,14 @@ export function Overview({ onOpen }: Props) {/></>) : (- [- t('admin.overview.stat.callsToday'),- t('admin.overview.stat.calls7d'),- t('admin.overview.costs.minutes7d'),- t('admin.overview.costs.cost7d'),- ].map(label => (- <div key={label} className={cx('adm-stat', busy)} aria-busy="true">- <span>{label}</span>- <Skeleton width={56} height={22} className="adm-sk-value" />- </div>- ))+ [t('admin.overview.stat.calls7d'), t('admin.overview.costs.minutes7d'), t('admin.overview.costs.cost7d')].map(+ label => (+ <div key={label} className={cx('adm-stat', busy)} aria-busy="true">+ <span>{label}</span>+ <Skeleton width={56} height={22} className="adm-sk-value" />+ </div>+ ),+ ))}</div><ShopifySetups />diff --git a/apps/web/src/admin/ProviderGroup.tsx b/apps/web/src/admin/ProviderGroup.tsxindex 948103f0..7db00ed7 100644--- a/apps/web/src/admin/ProviderGroup.tsx+++ b/apps/web/src/admin/ProviderGroup.tsx@@ -140,7 +140,8 @@ export function ProviderGroup({ group, data, lines, health, onOpen, onOneKey, emconst answering = group.id === 'answering'const way = pickedWay ?? defaultAnsweringWay(group, data)const lists = listsOfGroup(group.id).filter(l => !answering || wayOfCategory(l.category) === way)- const note = groupNote(group)+ // Call audio's rows (LiveKit, SIP) say what is wrong themselves: no second line above them.+ const note = group.id === 'call-audio' ? null : groupNote(group)const help = groupHelp(group, embedded)const detail = groupProblem(group)?.detail// Only a problem is said here; a group that works shows its marks on the providers in use.diff --git a/apps/web/src/admin/Providers.tsx b/apps/web/src/admin/Providers.tsxindex 8320ca94..8aed511a 100644--- a/apps/web/src/admin/Providers.tsx+++ b/apps/web/src/admin/Providers.tsx@@ -37,10 +37,10 @@ export const ADMIN_INSTALL_SETUP = 'admin.installSetup'* up with AI" ("Edit with AI" once everything is set up; the agent setup page gives it a new link). "Step by step"* always opens at its first part, "Continue step by step" (started, not finished, not everything set up) where the* admin left it; nothing saved is reset. On Cloud the walkthrough is off (`enabled` false, it would only open Server- * admin › Providers), so only the agent is offered there. On top of Server admin › Providers as a note; on the- * overview's card as a quiet line.+ * admin › Providers), so only the agent is offered there. A quiet line, on top of Server admin › Providers and on the+ * overview's card (not a note: it is no warning).*/-export function AgentFirst({ lead, quiet, complete }: { lead: string; quiet?: boolean; complete?: boolean }) {+export function AgentFirst({ lead, complete }: { lead: string; complete?: boolean }) {const t = useT()const install = useQuery(ADMIN_INSTALL_SETUP, () => loadInstallSetup()).dataconst label = agentFirstLabels(install, complete)@@ -63,17 +63,11 @@ export function AgentFirst({ lead, quiet, complete }: { lead: string; quiet?: bo/></>)- if (quiet)- return (- <div className="adm-agent-line">- <span className="help">{lead}</span>- {buttons}- </div>- )return (- <Note tone="info" action={buttons}>- {lead}- </Note>+ <div className="adm-agent-line">+ <span className="help">{lead}</span>+ {buttons}+ </div>)}diff --git a/apps/web/src/admin/ReplyDelay.tsx b/apps/web/src/admin/ReplyDelay.tsxindex 725f2a24..48fa3cea 100644--- a/apps/web/src/admin/ReplyDelay.tsx+++ b/apps/web/src/admin/ReplyDelay.tsx@@ -152,11 +152,10 @@ export function ReplyDelay() {const inline = useContext(CardInline)const data = query.dataconst note = t('admin.replyDelay.note')- // Under its line on Call quality the line names it: only the note and the numbers.+ // Under its line on Call quality the line names it and says what it measures (its ?): only the numbers.if (inline)return (<div className="k-card-inline">- <p className="k-card-inline-desc">{note}</p>{!data ? (<Loadingwhat={t('admin.replyDelay.title')}diff --git a/apps/web/src/admin/Settings.tsx b/apps/web/src/admin/Settings.tsxindex f1916a94..5515fe37 100644--- a/apps/web/src/admin/Settings.tsx+++ b/apps/web/src/admin/Settings.tsx@@ -96,6 +96,7 @@ export function CallQualityPage(providers: ProvidersProps) {<FeatureLinetitle={t('admin.replyDelay.title')}summary={t('admin.callQualityPage.delay.summary')}+ help={t('admin.replyDelay.note')}state={delayState}view{...line('delay')}diff --git a/apps/web/src/admin/SettingsCards.tsx b/apps/web/src/admin/SettingsCards.tsxindex aa9e8c52..6d83cd36 100644--- a/apps/web/src/admin/SettingsCards.tsx+++ b/apps/web/src/admin/SettingsCards.tsx@@ -26,7 +26,7 @@ import { agentLabel } from '../onboarding/AgentPicker.tsx'import { externalLink } from '../settings/ZapierGuide.tsx'import { appLink, ExternalLink, LinkButton } from '../ui/AppLink.tsx'import { Switch } from '../ui/controls.tsx'-import { Card, Input, FormField } from '../ui/form.tsx'+import { Card, FormField, Input, onSaveKey, SaveBar } from '../ui/form.tsx'import { Badge, Button, cx, Note } from '../ui/kit.tsx'import { Loading, Skeleton, SkeletonRows } from '../ui/LoadStates.tsx'import { SettingRow } from '../ui/SettingRow.tsx'@@ -402,17 +402,18 @@ export function Zapier({ focused }: { focused?: boolean }) {skeleton={<Skeleton shape="text" width={240} />}>{data && (- <>- <label className="k-field-label" htmlFor="adm-zapier-app">- {t('admin.system.zapierApp')}- </label>- <form- className="ob2-row"- noValidate- onSubmit={e => {- e.preventDefault()- if (changed && valid) void save()- }}+ <form+ noValidate+ onSubmit={e => {+ e.preventDefault()+ if (changed && valid) void save()+ }}+ onKeyDown={e => onSaveKey(e, changed && valid && !busy)}+ >+ <FormField+ id="adm-zapier-app"+ label={t('admin.system.zapierApp')}+ error={valid ? null : t('admin.system.zapierAppInvalid')}><Inputid="adm-zapier-app"@@ -424,18 +425,13 @@ export function Zapier({ focused }: { focused?: boolean }) {invalid={!valid}onChange={e => setTyped(e.target.value)}/>- <Button busy={busy} type="submit" disabled={!changed || !valid}>- {t('common.action.save')}- </Button>- </form>- <p className="k-field-msg">- {!valid- ? t('admin.system.zapierAppInvalid')- : value- ? t('admin.system.zapierAppSet')- : t('admin.system.zapierAppNone')}- </p>- </>+ </FormField>+ {/* What the link does now, in grey: no link is a choice, not an error. */}+ {valid && (+ <p className="help">{value ? t('admin.system.zapierAppSet') : t('admin.system.zapierAppNone')}</p>+ )}+ <SaveBar dirty={changed} saving={busy} disabled={!valid} onCancel={() => setTyped(null)} />+ </form>)}</Loading>{problem && (diff --git a/apps/web/src/admin/SignupAccessPage.tsx b/apps/web/src/admin/SignupAccessPage.tsxindex 84601c3d..662b59a1 100644--- a/apps/web/src/admin/SignupAccessPage.tsx+++ b/apps/web/src/admin/SignupAccessPage.tsx@@ -1,6 +1,6 @@// Server admin › Sign-up & access (the nav groups, 2026-11-24; lines as on Features since 2026-11-26): under Sign-up-// whether it is open, the countries and the limits; under Emails the setup emails and the personal email from a-// founder. Each is one line with its state; Change opens its card in place.+// the self-serve switch (a line with its switch), the countries and the limits; under Emails the setup emails and the+// personal email from a founder. Each is one line with its state; Change opens its card in place.import { useT } from '@linedesk/i18n/react'import { useQuery } from '../cachedQuery.ts'import { FeatureLine, LineGroup, type LineState, onOff, useOpenLines } from '../ui/FeatureLine.tsx'@@ -16,7 +16,7 @@ import {} from './Onboarding.tsx'import { loadSignupAccess, SIGNUP_ACCESS, SignupAccess } from './SignupAccess.tsx'-type LineId = 'selfServe' | 'countries' | 'limits' | 'setupEmails' | 'founderEmail'+type LineId = 'countries' | 'limits' | 'setupEmails' | 'founderEmail'export function SignupAccessPage({ notify }: { notify: Notify }) {const t = useT()@@ -26,14 +26,6 @@ export function SignupAccessPage({ notify }: { notify: Notify }) {const setupEmails = useQuery(SETUP_EMAILS, loadSetupEmails).dataconst founder = useQuery(FOUNDER_EMAIL, loadFounderEmail).data- // Switched on but still closed (a key or the terms missing) needs the admin: red, as on the card.- const selfServeState: LineState = selfServe- ? {- text: t(selfServe.open ? 'admin.bills.selfServe.state.open' : 'admin.bills.selfServe.state.closed'),- on: selfServe.open,- danger: selfServe.on && !selfServe.open,- }- : nullconst open = access?.countries.filter(c => c.mode === 'open').length ?? 0const invited = access?.countries.filter(c => c.mode === 'invited').length ?? 0const countriesState: LineState = access@@ -44,10 +36,13 @@ export function SignupAccessPage({ notify }: { notify: Notify }) {on: open + invited > 0,}: null+ // On without Turnstile's keys checks nobody (and closes sign-up): a warning, never "on" as if it worked.const limitsState: LineState = selfServe- ? selfServe.rules.turnstile- ? { text: t('admin.signupPage.limits.botCheckOn'), on: true }- : { text: t('admin.signupPage.limits.botCheckOff'), on: false, danger: true }+ ? !selfServe.rules.turnstile+ ? { text: t('admin.signupPage.limits.botCheckOff'), on: false, danger: true }+ : selfServe.turnstileReady+ ? { text: t('admin.signupPage.limits.botCheckOn'), on: true }+ : { text: t('admin.signupPage.limits.botCheckNoKeys'), on: false, warning: true }: nullconst founderState: LineState = founder? founder.sender@@ -57,14 +52,7 @@ export function SignupAccessPage({ notify }: { notify: Notify }) {return (<><LineGroup>{t('admin.signupPage.group.signup')}</LineGroup>- <FeatureLine- title={t('admin.bills.selfServe.switch')}- summary={t('admin.signupPage.selfServe.summary')}- state={selfServeState}- {...line('selfServe')}- >- <SelfServeCard notify={notify} />- </FeatureLine>+ <SelfServeCard notify={notify} /><FeatureLinetitle={t('admin.system.signupAccess.title')}summary={t('admin.signupPage.countries.summary')}diff --git a/apps/web/src/admin/StatusCard.tsx b/apps/web/src/admin/StatusCard.tsxindex 3169a050..39506591 100644--- a/apps/web/src/admin/StatusCard.tsx+++ b/apps/web/src/admin/StatusCard.tsx@@ -475,9 +475,9 @@ export function StatusCard({ status, keys }: { status: ProviderStatusState; keys</button>{expanded && <StatusList groups={groups} health={status.health} keys={keys} />}{notSetUp ? (- <AgentFirst lead={t('admin.status.agentNotSetUpLead')} quiet />+ <AgentFirst lead={t('admin.status.agentNotSetUpLead')} />) : (- <AgentFirst lead={t('admin.status.agentAllSetLead')} quiet complete />+ <AgentFirst lead={t('admin.status.agentAllSetLead')} complete />)}</section>)diff --git a/apps/web/src/admin/SystemPrompt.tsx b/apps/web/src/admin/SystemPrompt.tsxindex 19bc1140..ec51e460 100644--- a/apps/web/src/admin/SystemPrompt.tsx+++ b/apps/web/src/admin/SystemPrompt.tsx@@ -17,7 +17,8 @@ import { useT } from '@linedesk/i18n/react'import { type FocusEvent, type FormEvent, type KeyboardEvent, useRef, useState } from 'react'import { setQueryData, useQuery } from '../cachedQuery.ts'import { LineGroup } from '../ui/FeatureLine.tsx'-import { Badge, Button, cx, Icon, Note } from '../ui/kit.tsx'+import { SaveBar } from '../ui/form.tsx'+import { Badge, Button, cx, Icon } from '../ui/kit.tsx'import { Loading, SkeletonRows } from '../ui/LoadStates.tsx'import { runAdmin } from './api.ts'import { FoldOut } from '../ui/FoldOut.tsx'@@ -195,54 +196,41 @@ function ReadOnlyText({ text, className }: { text: string; className?: string })type PartProps = {partKey: PromptTextKeyedit: SystemPromptOverride | undefined- onSave: (key: PromptTextKey, text: string) => void+ /** The text changed here and not saved yet (the page's Save bar saves every changed part at once). */+ draft: string | undefined+ onDraft: (key: PromptTextKey, text: string | null) => voidonReset: (key: PromptTextKey) => void- onEmpty: () => void+ /** Bumped by Cancel: every part shows its saved text again. */+ resetToken: number}/*** One part, drawn as a text field (LIN-356) so it is clear the text can change: each piece of fixed text between the- * variables is editable on its own, so the variables stay where they are. Leaving the part saves it; Esc undoes,- * ⌘↵ saves at once. A form, so admin mode leaves its keys alone.+ * variables is editable on its own, so the variables stay where they are. A change waits in the page's Save bar (one+ * save for every changed part, ⌘S); Esc undoes this part's change. A form, so admin mode leaves its keys alone.*/-function Part({ partKey, edit, onSave, onReset, onEmpty }: PartProps) {+function Part({ partKey, edit, draft, onDraft, onReset, resetToken }: PartProps) {const t = useT()const def: PromptTextDef = PROMPT_TEXTS[partKey]const current = textInUse(partKey, edit)- const { texts, variables } = splitText(current)+ const { texts, variables } = splitText(draft ?? current)const pieces = useRef<(HTMLSpanElement | null)[]>([])const [focused, setFocused] = useState(false)- const [dirty, setDirty] = useState(false)- const [saved, setSaved] = useState(false)const read = () =>joinText(texts.map((text, i) => pieces.current[i]?.textContent ?? text),variables,)const restore = () => {- texts.forEach((text, i) => {+ splitText(current).texts.forEach((text, i) => {const piece = pieces.current[i]if (piece) piece.textContent = text})- setDirty(false)- }- function save() {- const next = read()- setDirty(false)- if (next === current) return- if (!next.trim()) {- restore()- onEmpty()- return- }- onSave(partKey, next)- setSaved(true)- setTimeout(() => setSaved(false), 2000)+ onDraft(partKey, null)}function onBlur(e: FocusEvent<HTMLFormElement>) {if (e.currentTarget.contains(e.relatedTarget as Node | null)) returnsetFocused(false)- save()}function onKeyDown(e: KeyboardEvent<HTMLFormElement>) {if (!(e.target as HTMLElement).isContentEditable) return@@ -250,9 +238,10 @@ function Part({ partKey, edit, onSave, onReset, onEmpty }: PartProps) {e.preventDefault()restore();(e.target as HTMLElement).blur()- } else if (e.key === 'Enter' && (e.metaKey || e.ctrlKey)) {+ } else if ((e.key === 'Enter' || e.key.toLowerCase() === 's') && (e.metaKey || e.ctrlKey)) {+ // ⌘S and ⌘↵ save every changed part, as the Save bar's button does.e.preventDefault()- ;(e.target as HTMLElement).blur()+ document.querySelector<HTMLFormElement>('#adm-prompt-save')?.requestSubmit()}}const onSubmit = (e: FormEvent) => e.preventDefault()@@ -262,39 +251,35 @@ function Part({ partKey, edit, onSave, onReset, onEmpty }: PartProps) {onBlur={onBlur}onFocus={() => setFocused(true)}onKeyDown={onKeyDown}- onInput={() => setDirty(read() !== current)}+ onInput={() => {+ const next = read()+ onDraft(partKey, next === current ? null : next)+ }}onSubmit={onSubmit}data-part={partKey}>- {(edit || saved) && (+ {edit && (<div className="adm-prompt-meta">- {edit && <Badge tone="outline">{t('admin.prompt.edited')}</Badge>}- {edit?.defaultChanged && (+ <Badge tone="outline">{t('admin.prompt.edited')}</Badge>+ {edit.defaultChanged && (<Badge tone="info" title={t('admin.prompt.defaultChangedHint')}>{t('admin.prompt.defaultChanged')}</Badge>)}- {edit && !edit.fits && (+ {!edit.fits && (<Badge tone="info" title={t('admin.prompt.notInUseHint')}>{t('admin.prompt.notInUse')}</Badge>)}- {saved && (- <span className="adm-prompt-saved" role="status">- <Icon name="check" size={12} /> {t('admin.prompt.saved')}- </span>- )}- {edit && (- <span className="adm-prompt-tools">- <Button size="sm" variant="ghost" icon="restart" onClick={() => onReset(partKey)}>- {t('admin.prompt.reset')}- </Button>- </span>- )}+ <span className="adm-prompt-tools">+ <Button size="sm" variant="ghost" icon="restart" onClick={() => onReset(partKey)}>+ {t('admin.prompt.reset')}+ </Button>+ </span></div>)}- {/* The key: a reset or a saved edit shows its new text, also in the pieces the browser edited. */}- <p className="adm-prompt-text" key={current}>+ {/* The key: a reset, a saved edit or Cancel shows its new text, also in the pieces the browser edited. */}+ <p className="adm-prompt-text" key={`${current}|${resetToken}`}>{texts.map((text, i) => (// biome-ignore lint/suspicious/noArrayIndexKey: the pieces of one text, in order; the text is the parent's key<span key={i}>@@ -318,9 +303,6 @@ function Part({ partKey, edit, onSave, onReset, onEmpty }: PartProps) {</span>))}</p>- {focused && (- <p className="adm-prompt-hint">{dirty ? t('admin.prompt.unsaved') : t('admin.prompt.autoSaveHint')}</p>- )}{edit && (<FoldOut className="adm-prompt-default" summary={t('admin.prompt.defaultText')}><ReadOnlyText text={def.text} />@@ -362,26 +344,49 @@ export function SystemPrompt() {const inOrder = (overrides: SystemPromptOverride[]) =>overrides.sort((a, b) => PROMPT_TEXT_KEYS.indexOf(a.key) - PROMPT_TEXT_KEYS.indexOf(b.key))- const save = (key: PromptTextKey, text: string) => {- const isDefault = text === PROMPT_TEXTS[key].text- const edit: SystemPromptOverride = {- key,- text,- defaultChanged: false,- fits: true,- updatedAt: new Date().toISOString(),- updatedBy: null,- }- void change(() => runAdmin('systemPrompt.setPart', { key, text }), {- overrides: inOrder(isDefault ? others(key) : [...others(key), edit]),+ // The parts changed and not saved yet: one Save bar for all of them (a text of several fields, LIN-843).+ const [drafts, setDrafts] = useState<ReadonlyMap<PromptTextKey, string>>(new Map())+ const [resetToken, setResetToken] = useState(0)+ const draft = (key: PromptTextKey, text: string | null) =>+ setDrafts(prev => {+ const next = new Map(prev)+ if (text === null) next.delete(key)+ else next.set(key, text)+ return next})+ function saveAll(e: FormEvent) {+ e.preventDefault()+ if (!drafts.size) return+ if ([...drafts.values()].some(text => !text.trim())) return setProblem(t('admin.prompt.empty'))+ const changed = [...drafts]+ const kept = (query.data?.overrides ?? []).filter(edit => !drafts.has(edit.key))+ const made = changed+ .filter(([key, text]) => text !== PROMPT_TEXTS[key].text)+ .map(+ ([key, text]): SystemPromptOverride => ({+ key,+ text,+ defaultChanged: false,+ fits: true,+ updatedAt: new Date().toISOString(),+ updatedBy: null,+ }),+ )+ setDrafts(new Map())+ void change(+ async () => {+ let last: unknown+ for (const [key, text] of changed) last = await runAdmin('systemPrompt.setPart', { key, text })+ return last+ },+ { overrides: inOrder([...kept, ...made]) },+ )}const reset = (key: PromptTextKey) =>void change(() => runAdmin('systemPrompt.resetPart', { key }), { overrides: others(key) })return (<div className="adm-prompt">- <Note>{t('admin.prompt.intro')}</Note>{problem && (<p className="k-field-msg" role="alert">{problem}@@ -435,9 +440,10 @@ export function SystemPrompt() {key={key}partKey={key}edit={edits.get(key)}- onSave={save}+ draft={drafts.get(key)}+ onDraft={draft}onReset={reset}- onEmpty={() => setProblem(t('admin.prompt.empty'))}+ resetToken={resetToken}/>))}</div>@@ -450,6 +456,16 @@ export function SystemPrompt() {</div>))}</Loading>+ <form id="adm-prompt-save" onSubmit={saveAll}>+ <SaveBar+ dirty={drafts.size > 0}+ note={t('admin.prompt.unsavedParts', { count: drafts.size })}+ onCancel={() => {+ setDrafts(new Map())+ setResetToken(n => n + 1)+ }}+ />+ </form></div>)}diff --git a/apps/web/src/admin/admin.css b/apps/web/src/admin/admin.cssindex 5f6f5669..9615d12d 100644--- a/apps/web/src/admin/admin.css+++ b/apps/web/src/admin/admin.css@@ -2261,3 +2261,24 @@content: "\00a0· " attr(data-label) " ";}}++/* What a line with a switch needs said under it (self-serve sign-up closed while on, the terms missing). */+.adm-line-notes {+ display: grid;+ gap: 8px;+ margin-top: 12px;+}+/* The founder's name and address, the help under them, the Save bar while the sender changed. */+.adm-founder-form {+ display: grid;+ gap: 8px;+}+.adm-founder-form .k-fields-row > .k-input {+ flex: 1 1 200px;+}+/* On top of Providers, outside a card: no line above it. */+.adm-body > .adm-agent-line {+ margin-top: 0;+ padding-top: 0;+ border-top: 0;+}diff --git a/apps/web/src/admin/billingModel.test.ts b/apps/web/src/admin/billingModel.test.tsindex 214783a3..367896d3 100644--- a/apps/web/src/admin/billingModel.test.ts+++ b/apps/web/src/admin/billingModel.test.ts@@ -4,6 +4,7 @@ import type { AdminBillingSummary, AdminBillRow } from '@linedesk/actions'import { BILLING_DEFAULTS, SIGNUP_DEFAULTS } from '@linedesk/db/types'import { expect, test } from 'vitest'import {+ changedFields,ago,billFilterOfHash,billsHref,@@ -229,8 +230,10 @@ test('the rules and sign-up groups hold every field exactly once', () => {expect(signupFields.toSorted()).toEqual([...SIGNUP_COUNT_FIELDS].toSorted())})-test('units go inside the field: dollars, dollars per minute for a level price, none for a factor', () => {- expect(ruleUnit('workspaceMonthlyCents')).toBe('usd')+test('units go inside the field: dollars (a month, a year), dollars per minute for a level price, none for a factor', () => {+ expect(ruleUnit('workspaceMonthlyCents')).toBe('usdPerMonth')+ expect(ruleUnit('workspaceYearlyCents')).toBe('usdPerYear')+ expect(ruleUnit('balanceBufferMicros')).toBe('usd')expect(ruleUnit('trialDays')).toBe('days')expect(ruleUnit('levels.premium.price')).toBe('usdPerMinute')expect(ruleUnit('levels.premium.factor')).toBe('times')@@ -299,25 +302,21 @@ const line = (s: AdminBillingSummary, id: string) =>.flatMap(g => g.lines).find(l => l.id === id)!-test("Billing's hub: Operations (Bills, Review, Stripe events), then Setup (Stripe, Prices and rules, Sign-up)", () => {+test("Billing's hub: Operations (Bills, Review, Stripe events), then Setup (Prices and rules after the two switches)", () => {expect(hubGroups(summary()).map(g => [g.label, g.lines.map(l => l.id)])).toEqual([['Operations', ['bills', 'review', 'events']],- ['Setup', ['stripe', 'rules', 'signup']],+ ['Setup', ['rules']],])// All fine: ok badges, the parts' own summaries, Open everywhere but Prices and rules (Change, no state).const s = summary()expect(line(s, 'bills').state).toEqual({ text: '2, none owing', on: true })expect(line(s, 'review').state).toEqual({ text: 'Nothing held', on: true })expect(line(s, 'events').state).toEqual({ text: 'All processed', on: true })- expect(line(s, 'stripe')).toMatchObject({ summary: 'Stripe Tax is on.', action: 'Open' })expect(line(s, 'rules')).toMatchObject({ state: undefined, action: 'Change', href: '#admin/billing/rules' })- expect(line(s, 'signup')).toMatchObject({ href: '#admin/access', state: { text: 'Open', on: true, danger: false } })})test("Billing's hub: what needs the admin is danger, what needs a look a warning, with the detail as the summary", () => {const s = summary({- billing: { connected: true, mode: 'live', liveAllowed: true, guardsOk: false, on: true } as never,- selfServe: { on: true, open: false, closedBecause: 'terms_missing', termsMissing: [] } as never,bills: { pending_payment: 0, trialing: 0, active: 0, past_due: 2, suspended: 0, canceled: 0, comped: 0 },held: 1,newTrials: 3,@@ -330,17 +329,12 @@ test("Billing's hub: what needs the admin is danger, what needs a look a warning})expect(line(s, 'review')).toMatchObject({ summary: '3 new trials in the last 7 days.', state: { warning: true } })expect(line(s, 'events').state).toMatchObject({ danger: false, warning: true })- expect(line(s, 'stripe').state).toMatchObject({ text: 'Paused', danger: true })- expect(line(s, 'signup')).toMatchObject({- summary: 'Switched on, but the terms and privacy policy are not set.',- state: { text: 'Closed', danger: true },- })- // Not connected: Connect, and switched-off sign-up is a choice, not a problem.- const off = summary({- billing: { connected: false } as never,- selfServe: { on: false, open: false, closedBecause: 'switched_off', termsMissing: [] } as never,- })- expect(line(off, 'stripe')).toMatchObject({ action: 'Connect', state: { text: 'Not connected', on: false } })- expect(line(off, 'signup')).toMatchObject({ summary: 'Who can create a workspace and start a trial' })- expect(line(off, 'signup').state).toMatchObject({ danger: false })+})++test('dollar amounts show both cents digits ("0.10", never "0.1"); the same value typed shorter is no change', () => {+ const form = rulesForm(BILLING_DEFAULTS)+ expect(form['levels.premium.price']).toMatch(/^\d+\.\d\d+$/)+ expect(+ changedFields({ ...form, 'levels.premium.price': String(Number(form['levels.premium.price'])) }, form),+ ).toEqual([])})diff --git a/apps/web/src/admin/billingModel.ts b/apps/web/src/admin/billingModel.tsindex a7070123..407441ea 100644--- a/apps/web/src/admin/billingModel.ts+++ b/apps/web/src/admin/billingModel.ts@@ -4,7 +4,6 @@ import type { AdminBillingSummary, AdminBillRow, AdminBillStatus, BillingEventFiimport { BILLING_EVENT_FILTERS } from '@linedesk/actions'import type { BillingRules, SignupCountRule, SignupRules } from '@linedesk/db/types'import { SIGNUP_RULE_RANGES } from '@linedesk/db/types'-import { type MessageKey, msg } from '@linedesk/i18n'import { fmt, intlLocale } from '../i18n/format.ts'import { i18n } from '../i18n/index.tsx'import type { LineState } from '../ui/FeatureLine.tsx'@@ -99,14 +98,20 @@ export type RuleField = (typeof RULE_FIELDS)[number][0]export type RulesForm = Record<string, string>const DIVISOR: Record<Unit, number> = { seconds: 1, minutes: 60, count: 1, cents: 100, micros: 1_000_000 }-const shown = (value: number, unit: Unit) => String(value / DIVISOR[unit])+/** An amount of dollars as the field shows it: whole dollars as they are ("11"), cents with both digits ("0.10"). */+const dollars = (value: number) => {+ const text = String(value)+ return /\.\d$/.test(text) ? `${text}0` : text+}+const shown = (value: number, unit: Unit) =>+ unit === 'cents' || unit === 'micros' ? dollars(value / DIVISOR[unit]) : String(value / DIVISOR[unit])/** The form for the rules in effect. */export function rulesForm(rules: BillingRules): RulesForm {const form: RulesForm = {}for (const [field, unit] of RULE_FIELDS) form[field] = shown(rules[field], unit)for (const [name, level] of Object.entries(rules.levels)) {- form[`levels.${name}.price`] = String(level.microsPerMinute / 1_000_000)+ form[`levels.${name}.price`] = dollars(level.microsPerMinute / 1_000_000)form[`levels.${name}.factor`] = level.allowanceFactor === null ? '' : String(level.allowanceFactor)}return form@@ -199,14 +204,23 @@ export const RULE_GROUPS = [export type RuleGroupId = (typeof RULE_GROUPS)[number]['id']/** A rule's unit, as the editor shows it inside the field: money is in dollars, time in the unit the field takes. */-export type FieldUnit = 'usd' | 'usdPerMinute' | 'minutes' | 'days' | 'seconds' | 'calls' | 'times'+export type FieldUnit =+ | 'usd'+ | 'usdPerMonth'+ | 'usdPerYear'+ | 'usdPerMinute'+ | 'minutes'+ | 'days'+ | 'seconds'+ | 'calls'+ | 'times'const RULE_UNITS: Record<RuleField, FieldUnit> = {- workspaceMonthlyCents: 'usd',- workspaceYearlyCents: 'usd',- partnerMonthlyCents: 'usd',- partnerYearlyCents: 'usd',- extraNumberCents: 'usd',- extraCallCents: 'usd',+ workspaceMonthlyCents: 'usdPerMonth',+ workspaceYearlyCents: 'usdPerYear',+ partnerMonthlyCents: 'usdPerMonth',+ partnerYearlyCents: 'usdPerYear',+ extraNumberCents: 'usdPerMonth',+ extraCallCents: 'usdPerMonth',balanceBufferMicros: 'usd',rechargeCapPerWorkspaceCents: 'usd',includedStandardSeconds: 'minutes',@@ -239,7 +253,7 @@ export function usdSymbol(): string {export function defaultText(key: string, text: string): string {const unit = ruleUnit(key)if (!text.trim()) return text- if (unit === 'usd') return formatUsd(Number(text))+ if (unit === 'usd' || unit === 'usdPerMonth' || unit === 'usdPerYear') return formatUsd(Number(text))if (unit === 'usdPerMinute') return rateOfMicros(Math.round(Number(text) * 1_000_000))return fmt().number(Number(text))}@@ -252,7 +266,11 @@ export const blankIsNone = (key: string) => key.endsWith('.factor')/** Whether a field's text is the install's own value: it differs from the default, and an empty field is the default. */export const isOwnValue = (key: string, text: string, fallback: string) =>- (text.trim() !== '' || blankIsNone(key)) && text.trim() !== fallback.trim()+ (text.trim() !== '' || blankIsNone(key)) && !sameText(text, fallback)++/** The same value typed two ways ("0.1" and "0.10") is no change. */+export const sameText = (a: string, b: string) =>+ a.trim() === b.trim() || (/^\d+(\.\d+)?$/.test(a.trim()) && Number(a.trim()) === Number(b.trim()) && b.trim() !== '')/** The fields whose text differs from the defaults: the install's own values. */export const customFields = (form: RulesForm, defaults: RulesForm) =>@@ -260,7 +278,7 @@ export const customFields = (form: RulesForm, defaults: RulesForm) =>/** The fields whose form text differs from `before`: what Save would change. */export const changedFields = (form: RulesForm, before: RulesForm) =>- Object.keys(form).filter(key => form[key]!.trim() !== (before[key] ?? '').trim())+ Object.keys(form).filter(key => !sameText(form[key]!, before[key] ?? ''))// ---- The bills list ----@@ -319,7 +337,7 @@ export const eventsHref = (filter: BillingEventFilter) => stripeEventsHref(filte/** One part of Billing as a line: what it is, its state, and the page its button opens. */export type HubLine = {- id: 'bills' | 'review' | 'events' | 'stripe' | 'rules' | 'signup'+ id: 'bills' | 'review' | 'events' | 'rules'title: stringsummary: string/** `undefined`: a part with no state of its own (Prices and rules). */@@ -330,13 +348,6 @@ export type HubLine = {}export type HubGroup = { id: 'operations' | 'setup'; label: string; lines: HubLine[] }-const CLOSED_BECAUSE: Record<NonNullable<AdminBillingSummary['selfServe']['closedBecause']>, MessageKey> = {- switched_off: msg('admin.bills.summary.signup.switchedOff'),- billing_not_in_effect: msg('admin.bills.summary.signup.billing'),- terms_missing: msg('admin.bills.summary.signup.terms'),- bot_check_missing: msg('admin.bills.summary.signup.botCheck'),-}-/** Bills that owe money (past due or stopped) need a look; the line then says how many of each. */function billsLine(s: AdminBillingSummary): HubLine {const { t } = i18n()@@ -394,61 +405,17 @@ function eventsLine(s: AdminBillingSummary): HubLine {}}-/** Whether billing through Stripe runs, in which mode, or what stops it; not connected: Connect. */-function stripeLine(s: AdminBillingSummary): HubLine {- const { t } = i18n()- const b = s.billing- const line = (state: NonNullable<LineState>, summary: string): HubLine => ({- id: 'stripe',- title: t('admin.bills.tab.stripe'),- summary,- state,- href: '#admin/billing/stripe',- action: t(b.connected ? 'admin.bills.hub.open' : 'admin.bills.hub.connect'),- })- if (!b.connected) return line({ text: t('admin.bills.summary.notConnected'), on: false }, t('admin.bills.hub.stripe'))- if (b.mode === 'live' && !b.liveAllowed)- return line({ text: t('admin.bills.summary.liveRefused'), on: false, danger: true }, t('admin.billing.liveRefused'))- if (!b.guardsOk)- return line({ text: t('admin.bills.summary.paused'), on: false, danger: true }, t('admin.billing.guardsMissing'))- const mode = t(b.mode === 'live' ? 'admin.bills.summary.live' : 'admin.bills.summary.test')- if (!b.on) return line({ text: t('admin.bills.summary.off'), on: false }, t('admin.bills.summary.turnOn', { mode }))- // The Stripe page has the Stripe Tax switch, so its line says whether it is on.- const tax = t(s.automaticTax ? 'admin.bills.summary.taxOn' : 'admin.bills.summary.taxOff')- return line({ text: t('admin.bills.summary.on', { mode }), on: true, warning: b.mode !== 'live' }, tax)-}--/**- * Self-serve sign-up, set on Sign-up & access (its one place); the line stays here because closed sign-up stops new- * trials. Switched on but closed needs the admin; switched off is a choice.- */-function signupLine(s: AdminBillingSummary): HubLine {- const { t } = i18n()- const { on, open, closedBecause } = s.selfServe- return {- id: 'signup',- title: t('admin.bills.tab.signup'),- summary: on && closedBecause ? t(CLOSED_BECAUSE[closedBecause]) : t('admin.bills.hub.signup'),- state: {- text: t(open ? 'admin.bills.selfServe.state.open' : 'admin.bills.selfServe.state.closed'),- on: open,- danger: on && !open,- },- href: '#admin/access',- action: t('admin.bills.hub.open'),- }-}-/** Billing's own page: the day's work (Money), then how billing is set up (Setup). */export function hubGroups(s: AdminBillingSummary): HubGroup[] {const { t } = i18n()return [{ id: 'operations', label: t('admin.bills.hub.operations'), lines: [billsLine(s), reviewLine(s), eventsLine(s)] },+ // Setup's switches (billing through Stripe, Stripe Tax) are lines of their own on the page (Billing.tsx BillingHome);+ // Stripe's keys are under Providers › Billing, self-serve sign-up under Sign-up & access.{id: 'setup',label: t('admin.bills.hub.setup'),lines: [- stripeLine(s),{id: 'rules',title: t('admin.bills.tab.rules'),@@ -457,7 +424,6 @@ export function hubGroups(s: AdminBillingSummary): HubGroup[] {href: '#admin/billing/rules',action: t('admin.features.change'),},- signupLine(s),],},]diff --git a/apps/web/src/admin/callQuality.test.tsx b/apps/web/src/admin/callQuality.test.tsxindex 985d42fd..3574ed54 100644--- a/apps/web/src/admin/callQuality.test.tsx+++ b/apps/web/src/admin/callQuality.test.tsx@@ -93,7 +93,7 @@ describe('the Call quality card', () => {it('without billing: the same levels without prices', () => {const html = render({ ...billed, centsPerMinute: null })- expect(html).toContain('What assistants can pick.')+ expect(html).not.toContain('What assistants can pick.')expect(html).not.toContain('Billing')expect(html).not.toContain('a minute')})diff --git a/apps/web/src/admin/logos.ts b/apps/web/src/admin/logos.tsindex e03deb54..f7899802 100644--- a/apps/web/src/admin/logos.ts+++ b/apps/web/src/admin/logos.ts@@ -60,8 +60,7 @@ export const brandMarks = {'M18.164 7.93V5.084a2.198 2.198 0 001.267-1.978v-.067A2.2 2.2 0 0017.238.845h-.067a2.2 2.2 0 00-2.193 2.193v.067a2.196 2.196 0 001.252 1.973l.013.006v2.852a6.22 6.22 0 00-2.969 1.31l.012-.01-7.828-6.095A2.497 2.497 0 104.3 4.656l-.012.006 7.697 5.991a6.176 6.176 0 00-1.038 3.446c0 1.343.425 2.588 1.147 3.607l-.013-.02-2.342 2.343a1.968 1.968 0 00-.58-.095h-.002a2.033 2.033 0 102.033 2.033 1.978 1.978 0 00-.1-.595l.005.014 2.317-2.317a6.247 6.247 0 104.782-11.134l-.036-.005zm-.964 9.378a3.206 3.206 0 113.215-3.207v.002a3.206 3.206 0 01-3.207 3.207z',slack:'M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z',- zoho:- 'M8.66 6.897a1.299 1.299 0 0 0-1.205.765l-.642 1.44-.062-.385A1.291 1.291 0 0 0 5.27 7.648l-4.185.678A1.291 1.291 0 0 0 .016 9.807l.678 4.18a1.293 1.293 0 0 0 1.27 1.087c.074 0 .143-.01.216-.017l4.18-.678c.436-.07.784-.351.96-.723l2.933 1.307a1.304 1.304 0 0 0 .988.026c.321-.12.575-.365.716-.678l.28-.629.038.276a1.297 1.297 0 0 0 1.455 1.103l3.712-.501a1.29 1.29 0 0 0 1.03.514h4.236c.713 0 1.29-.58 1.291-1.291V9.545c0-.712-.58-1.291-1.291-1.291h-4.236c-.079 0-.155.008-.23.022a1.309 1.309 0 0 0-.275-.288c-.275-.21-.614-.3-.958-.253l-4.197.571c-.155.021-.3.07-.432.14L9.159 7.01a1.27 1.27 0 0 0-.499-.113zm-.025.705c.077 0 .159.013.24.052l2.971 1.324c-.128.238-.18.508-.142.782l.357 2.596h.002l-.745 1.672a.59.59 0 0 1-.777.296l-3.107-1.385-.004-.041-.41-2.526L8.1 7.95a.589.589 0 0 1 .536-.348zm-3.159.733c.125 0 .245.039.343.112.13.09.21.227.237.382l.234 1.446-.56 1.259a1.27 1.27 0 0 0-.026.987c.12.322.364.575.678.717l.295.131a.585.585 0 0 1-.428.314l-4.185.678a.59.59 0 0 1-.674-.485l-.678-4.18a.588.588 0 0 1 .485-.674l4.185-.678c.03-.004.064-.01.094-.01zm11.705.09a.59.59 0 0 1 .415.173 1.287 1.287 0 0 0-.416.947v4.237c0 .033.003.065.005.097l-3.55.482a.586.586 0 0 1-.66-.502l-.191-1.403.899-2.017a1.29 1.29 0 0 0-.333-1.5l3.754-.51c.026-.004.051-.004.077-.004zm1.3.532h4.227c.326 0 .588.266.588.588v4.237a.589.589 0 0 1-.588.588h-4.237a.564.564 0 0 1-.12-.013c.47-.246.758-.765.684-1.318zm-5.988.309.254.113c.296.133.43.48.296.777l-.432.97-.207-1.465a.58.58 0 0 1 .09-.395zm5.39.538.453 3.325a.583.583 0 0 1-.453.65zM6.496 11.545l.17 1.052a.588.588 0 0 1-.293-.776zm3.985 4.344a.588.588 0 0 0-.612.603c0 .358.244.61.601.61a.582.582 0 0 0 .607-.608c0-.35-.242-.605-.596-.605zm5.545 0a.588.588 0 0 0-.612.603c0 .358.245.61.602.61a.582.582 0 0 0 .606-.608c0-.35-.24-.605-.596-.605zm-8.537.018a.047.047 0 0 0-.048.047v.085c0 .026.021.047.048.047h.52l-.623.9a.052.052 0 0 0-.009.027v.027c0 .026.021.047.048.047h.815a.047.047 0 0 0 .047-.047v-.085a.047.047 0 0 0-.047-.047h-.55l.606-.9a.05.05 0 0 0 .008-.026v-.028a.047.047 0 0 0-.047-.047zm5.303 0a.047.047 0 0 0-.047.047v1.086c0 .026.02.047.047.047h.135a.047.047 0 0 0 .047-.047v-.454h.545v.454c0 .026.02.047.047.047h.134a.047.047 0 0 0 .047-.047v-1.086a.047.047 0 0 0-.047-.047h-.134a.047.047 0 0 0-.047.047v.453h-.545v-.453a.047.047 0 0 0-.047-.047zm-2.324.164c.25 0 .372.194.372.425 0 .219-.109.425-.358.426-.242 0-.375-.197-.375-.419 0-.235.108-.432.36-.432zm5.545 0c.25 0 .372.194.372.425 0 .219-.108.425-.358.426-.242 0-.374-.197-.374-.419 0-.235.108-.432.36-.432z',+ zoho: 'M8.66 6.897a1.299 1.299 0 0 0-1.205.765l-.642 1.44-.062-.385A1.291 1.291 0 0 0 5.27 7.648l-4.185.678A1.291 1.291 0 0 0 .016 9.807l.678 4.18a1.293 1.293 0 0 0 1.27 1.087c.074 0 .143-.01.216-.017l4.18-.678c.436-.07.784-.351.96-.723l2.933 1.307a1.304 1.304 0 0 0 .988.026c.321-.12.575-.365.716-.678l.28-.629.038.276a1.297 1.297 0 0 0 1.455 1.103l3.712-.501a1.29 1.29 0 0 0 1.03.514h4.236c.713 0 1.29-.58 1.291-1.291V9.545c0-.712-.58-1.291-1.291-1.291h-4.236c-.079 0-.155.008-.23.022a1.309 1.309 0 0 0-.275-.288c-.275-.21-.614-.3-.958-.253l-4.197.571c-.155.021-.3.07-.432.14L9.159 7.01a1.27 1.27 0 0 0-.499-.113zm-.025.705c.077 0 .159.013.24.052l2.971 1.324c-.128.238-.18.508-.142.782l.357 2.596h.002l-.745 1.672a.59.59 0 0 1-.777.296l-3.107-1.385-.004-.041-.41-2.526L8.1 7.95a.589.589 0 0 1 .536-.348zm-3.159.733c.125 0 .245.039.343.112.13.09.21.227.237.382l.234 1.446-.56 1.259a1.27 1.27 0 0 0-.026.987c.12.322.364.575.678.717l.295.131a.585.585 0 0 1-.428.314l-4.185.678a.59.59 0 0 1-.674-.485l-.678-4.18a.588.588 0 0 1 .485-.674l4.185-.678c.03-.004.064-.01.094-.01zm11.705.09a.59.59 0 0 1 .415.173 1.287 1.287 0 0 0-.416.947v4.237c0 .033.003.065.005.097l-3.55.482a.586.586 0 0 1-.66-.502l-.191-1.403.899-2.017a1.29 1.29 0 0 0-.333-1.5l3.754-.51c.026-.004.051-.004.077-.004zm1.3.532h4.227c.326 0 .588.266.588.588v4.237a.589.589 0 0 1-.588.588h-4.237a.564.564 0 0 1-.12-.013c.47-.246.758-.765.684-1.318zm-5.988.309.254.113c.296.133.43.48.296.777l-.432.97-.207-1.465a.58.58 0 0 1 .09-.395zm5.39.538.453 3.325a.583.583 0 0 1-.453.65zM6.496 11.545l.17 1.052a.588.588 0 0 1-.293-.776zm3.985 4.344a.588.588 0 0 0-.612.603c0 .358.244.61.601.61a.582.582 0 0 0 .607-.608c0-.35-.242-.605-.596-.605zm5.545 0a.588.588 0 0 0-.612.603c0 .358.245.61.602.61a.582.582 0 0 0 .606-.608c0-.35-.24-.605-.596-.605zm-8.537.018a.047.047 0 0 0-.048.047v.085c0 .026.021.047.048.047h.52l-.623.9a.052.052 0 0 0-.009.027v.027c0 .026.021.047.048.047h.815a.047.047 0 0 0 .047-.047v-.085a.047.047 0 0 0-.047-.047h-.55l.606-.9a.05.05 0 0 0 .008-.026v-.028a.047.047 0 0 0-.047-.047zm5.303 0a.047.047 0 0 0-.047.047v1.086c0 .026.02.047.047.047h.135a.047.047 0 0 0 .047-.047v-.454h.545v.454c0 .026.02.047.047.047h.134a.047.047 0 0 0 .047-.047v-1.086a.047.047 0 0 0-.047-.047h-.134a.047.047 0 0 0-.047.047v.453h-.545v-.453a.047.047 0 0 0-.047-.047zm-2.324.164c.25 0 .372.194.372.425 0 .219-.109.425-.358.426-.242 0-.375-.197-.375-.419 0-.235.108-.432.36-.432zm5.545 0c.25 0 .372.194.372.425 0 .219-.108.425-.358.426-.242 0-.374-.197-.374-.419 0-.235.108-.432.36-.432z',shopify:'M15.337 23.979l7.216-1.561s-2.604-17.613-2.625-17.73c-.018-.116-.114-.192-.211-.192s-1.929-.136-1.929-.136-1.275-1.274-1.439-1.411c-.045-.037-.075-.057-.121-.074l-.914 21.104h.023zM11.71 11.305s-.81-.424-1.774-.424c-1.447 0-1.504.906-1.504 1.141 0 1.232 3.24 1.715 3.24 4.629 0 2.295-1.44 3.76-3.406 3.76-2.354 0-3.54-1.465-3.54-1.465l.646-2.086s1.245 1.066 2.28 1.066c.675 0 .975-.545.975-.932 0-1.619-2.654-1.694-2.654-4.359-.034-2.237 1.571-4.416 4.827-4.416 1.257 0 1.875.361 1.875.361l-.945 2.715-.02.01zM11.17.83c.136 0 .271.038.405.135-.984.465-2.064 1.639-2.508 3.992-.656.213-1.293.405-1.889.578C7.697 3.75 8.951.84 11.17.84V.83zm1.235 2.949v.135c-.754.232-1.583.484-2.394.736.466-1.777 1.333-2.645 2.085-2.971.193.501.309 1.176.309 2.1zm.539-2.234c.694.074 1.141.867 1.429 1.755-.349.114-.735.231-1.158.366v-.252c0-.752-.096-1.371-.271-1.871v.002zm2.992 1.289c-.02 0-.06.021-.078.021s-.289.075-.714.21c-.423-1.233-1.176-2.37-2.508-2.37h-.115C12.135.209 11.669 0 11.265 0 8.159 0 6.675 3.877 6.21 5.846c-1.194.365-2.063.636-2.16.674-.675.213-.694.232-.772.87-.075.462-1.83 14.063-1.83 14.063L15.009 24l.927-21.166z',modelcontextprotocol:diff --git a/apps/web/src/admin/route.test.ts b/apps/web/src/admin/route.test.tsindex 9161dd0d..6e697cd8 100644--- a/apps/web/src/admin/route.test.ts+++ b/apps/web/src/admin/route.test.ts@@ -66,7 +66,9 @@ test('old addresses land where their things moved (LIN-693, LIN-747, the nav groexpect(movedHash('#admin/providers/stripe')).toBeNull()expect(movedHash('#admin/workspaces')).toBeNull()expect(movedHash('#settings/calls')).toBeNull()- expect(billingTab('stripe')).toBe('stripe')+ expect(billingTab('stripe')).toBeNull()+ // LIN-843: Billing › Stripe's switches are lines on Billing's own page.+ expect(movedHash('#admin/billing/stripe')).toBe('#admin/billing')expect(billingTab('signup')).toBeNull()expect(billingTab('events')).toBe('events')})diff --git a/apps/web/src/admin/route.ts b/apps/web/src/admin/route.tsindex b1a0d283..778cf983 100644--- a/apps/web/src/admin/route.ts+++ b/apps/web/src/admin/route.ts@@ -42,6 +42,7 @@ export const adminSections = [group: assistant,label: msg('admin.sections.prompt.label'),description: msg('admin.sections.prompt.description'),+ help: msg('admin.prompt.intro'),},{id: 'call-quality',@@ -80,6 +81,8 @@ export const adminSections = [group?: MessageKeylabel: MessageKeydescription: MessageKey | null+ /** Behind a (?) after the section's title: what only some admins need (the Prompt's how-to). */+ help?: MessageKey}[]export type AdminSection = (typeof adminSections)[number]['id']export type AdminPlace = { section: AdminSection; id: string | null }@@ -147,7 +150,7 @@ export function useAdminPlace() {* Server admin › Billing's sections: `#admin/billing` is its overview, `#admin/billing/<tab>` one section, anything else* after `billing/` a bill (`#admin/billing/<bill id>`).*/-export const BILLING_TABS = ['overview', 'bills', 'review', 'events', 'rules', 'stripe'] as const+export const BILLING_TABS = ['overview', 'bills', 'review', 'events', 'rules'] as constexport type BillingTab = (typeof BILLING_TABS)[number]/** The section of Billing that `#admin/billing/<id>` shows; null when `id` is a bill. */@@ -197,6 +200,7 @@ export const stripeEventsHref = (filter = 'all') =>* bookmarks) keep working:* - LIN-747: Usage and Onboarding are views of Workspaces; Sign-up is a part of Billing; Calls, Phone numbers and Tools* are Features; Server (and System before it) is the call audio group of Providers.+ * - LIN-843: Billing › Stripe's two switches are lines on Billing's own page.* - LIN-833: Stripe events are back under Billing (`#admin/billing/events`); the Audit log's `?kind=stripe` goes there.* - The nav groups (2026-11-24): Call reviews is a part of Call quality; Billing's Sign-up is Sign-up & access.* - LIN-693: Settings' tabs (`#admin/settings/<tab>`) became sections, which LIN-747 moved again.@@ -227,6 +231,8 @@ export function movedHash(hash: string): string | null {return queryOf(hash).get('kind') === 'stripe' ? stripeEventsHref(queryOf(hash).get('filter') ?? 'all') : nullcase 'billing':if (id === 'signup') return '#admin/access'+ // LIN-843: Billing › Stripe (two switches) is part of Billing's own page.+ if (id === 'stripe') return '#admin/billing'return nulldefault:return nulldiff --git a/packages/actions/src/billing.ts b/packages/actions/src/billing.tsindex c0917c64..57f20850 100644--- a/packages/actions/src/billing.ts+++ b/packages/actions/src/billing.ts@@ -1,5 +1,5 @@// Billing of an install's workspaces through its own Stripe account. The instance switch: billing runs only when Stripe is connected under-// Server admin › Providers › Stripe and an instance admin turned it on (Server admin › Billing › Stripe). Off by default, so a self-hosted install+// Server admin › Providers › Stripe and an instance admin turned it on (Server admin › Billing). Off by default, so a self-hosted install// never bills anyone, even with keys stored.import { msg } from '@linedesk/i18n'import { z } from 'zod'diff --git a/packages/billing/src/provider.ts b/packages/billing/src/provider.tsindex d679f0b0..0d128559 100644--- a/packages/billing/src/provider.ts+++ b/packages/billing/src/provider.ts@@ -1,6 +1,6 @@// The billing provider: what the rest of Linedesk asks of a payment service. An install runs// `none` by default; it runs `stripe` once an instance admin connected the install's own Stripe account under Server-// admin › Billing › Stripe and turned billing on (Linedesk Cloud is one such install). The vendor SDK lives only in its adapter (`./stripe/`), loaded lazily.+// admin › Providers and turned billing on under Billing (Linedesk Cloud is one such install). The vendor SDK lives only in its adapter (`./stripe/`), loaded lazily./** Test keys charge nothing; live keys charge real cards. Read from the key itself, never from a setting. */export type KeyMode = 'test' | 'live'diff --git a/packages/i18n/locales/de/admin.json b/packages/i18n/locales/de/admin.jsonindex b11764a6..4eafdbb7 100644--- a/packages/i18n/locales/de/admin.json+++ b/packages/i18n/locales/de/admin.json@@ -376,7 +376,6 @@"billing.help": "Die Workspaces auf diesem Server über dein eigenes Stripe-Konto abrechnen. Standardmäßig aus: Bis es eingeschaltet ist, wird nichts abgerechnet.","billing.liveMode": "Live-Modus: Sobald die Abrechnung eingeschaltet ist, werden echte Karten belastet.","billing.liveRefused": "Das ist eine Entwicklungsinstallation: Live-Schlüssel von Stripe werden abgelehnt. Nutze einen Testschlüssel.",- "billing.notConnected": "Verbinde Stripe zuerst unter Anbieter (geheimer Schlüssel und Webhook-Signaturgeheimnis), um die Abrechnung einzuschalten.","billing.switch": "Workspaces über Stripe abrechnen","billing.testMode": "Testmodus: Stripe belastet nichts.","bills.action.cap": "Aufladelimit…",@@ -634,11 +633,9 @@"bills.rules.group.minutes.text": "Der Minutenpreis jeder Stufe und die Minuten, die jeder Tarif enthält.","bills.rules.group.plans": "Tarife und Zusatzoptionen","bills.rules.group.plans.text": "Was ein Workspace, ein Partner und eine zusätzliche Nummer kosten, vor Steuern.",- "bills.rules.group.tax": "Steuern","bills.rules.group.trial": "Kostenlose Testphase","bills.rules.group.trial.text": "Wie lange die Testphase dauert und wie viele Anrufe sie gleichzeitig annimmt.","bills.rules.ignored": "Gespeicherte Werte außerhalb des Bereichs werden ignoriert und nutzen ihren Standard: {fields}.",- "bills.rules.lede": "{count, plural, =0 {Alle Regeln stehen auf dem Standardwert.} one {# Regel weicht vom Standardwert ab.} other {# Regeln weichen vom Standardwert ab.}} Preise sind in US-Dollar und werden über dein eigenes Stripe-Konto abgerechnet. Ein leeres Feld nimmt den Standardwert.","bills.rules.levelFactor": "{level}-Anrufe: verbrauchte Inklusivminuten pro Minute","bills.rules.levelFactor.help": "Wie schnell ein {level}-Anruf die Inklusivminuten verbraucht: 1 verbraucht eine Inklusivminute pro Minute, 2 verbraucht zwei. Bleibt es leer, verbrauchen {level}-Anrufe nie Inklusivminuten; sie werden immer bezahlt.","bills.rules.levelName.premium": "Premium",@@ -659,8 +656,6 @@"bills.search": "Abrechnungen suchen","bills.selfServe.closed.billing": "Die Registrierung ist eingeschaltet, aber geschlossen: Die Abrechnung über Stripe ist nicht aktiv. Schalte sie unter <link>Abrechnung › Stripe</link> ein.","bills.selfServe.closed.botCheck": "Die Registrierung ist eingeschaltet, aber geschlossen: Die Bot-Prüfung (Cloudflare Turnstile) hat keine Schlüssel. Niemand kann sich registrieren, bis du sie unter <link>Anbieter › Bot-Prüfung</link> hinzufügst.",- "bills.selfServe.help": "Jeder kann sich selbst registrieren und eine Testphase starten. Standardmäßig aus: Dann können das nur Personen, die du hinzufügst.",- "bills.selfServe.needsBilling": "Braucht zuerst die Abrechnung über Stripe (Abrechnung › Stripe).","bills.selfServe.off": "Ausschalten","bills.selfServe.offText": "Neue Registrierungen enden; wer schon registriert ist, behält seine Workspaces. Jeder Server-Admin bekommt eine E-Mail.","bills.selfServe.offTitle": "Selbstregistrierung ausschalten",@@ -669,11 +664,9 @@"bills.selfServe.onTitle": "Selbstregistrierung einschalten","bills.selfServe.openNow": "Jeder kann sich jetzt registrieren und eine Testphase starten.","bills.selfServe.state.closed": "Geschlossen",- "bills.selfServe.state.open": "Offen","bills.selfServe.switch": "Selbstregistrierung","bills.selfServe.termsMissing": "Die Registrierung braucht zuerst deine Nutzungsbedingungen und deine Datenschutzerklärung: Setze {vars} in der Umgebung des Servers und starte ihn neu.","bills.selfServe.termsMissingOn": "Die Registrierung ist eingeschaltet, aber geschlossen: Setze {vars} in der Umgebung des Servers und starte ihn neu. Ohne Bedingungen, die man akzeptieren kann, kann niemand einen Tarif starten.",- "bills.selfServe.title": "Registrierung","bills.selfServe.turnedOff": "Selbstregistrierung ist aus","bills.selfServe.turnedOn": "Selbstregistrierung ist an","bills.signupRules.blockedDomains": "Gesperrte E-Mail-Domains",@@ -733,40 +726,22 @@"bills.status.suspendTitle": "Diese Abrechnung sperren","bills.status.suspended": "Gesperrt","bills.status.trialing": "Testphase",- "bills.stripe.keysWhere": "Die Schlüssel von Stripe werden unter <link>Anbieter › Abrechnung</link> verbunden. Die Abrechnung läuft, sobald sie dort sind und dieser Schalter an ist.",- "bills.stripe.switchTitle": "Abrechnungsschalter","bills.summary.billCount": "{count, plural, =0 {Noch keine} one {#, keine im Rückstand} other {#, keine im Rückstand}}","bills.summary.eventsOk": "Alle verarbeitet","bills.summary.eventsStuck": "{count, plural, one {# muss geprüft werden} other {# müssen geprüft werden}}","bills.summary.eventsWaiting": "{count, plural, one {# wartet auf die Verarbeitung.} other {# warten auf die Verarbeitung.}}","bills.summary.held": "{count, plural, one {# angehalten} other {# angehalten}}","bills.summary.label": "Abrechnungsstatus",- "bills.summary.live": "Live-Modus",- "bills.summary.liveRefused": "Live-Schlüssel abgelehnt","bills.summary.newTrials": "{count, plural, =0 {Keine neuen Testphasen in den letzten 7 Tagen.} one {# neue Testphase in den letzten 7 Tagen.} other {# neue Testphasen in den letzten 7 Tagen.}}",- "bills.summary.notConnected": "Nicht verbunden","bills.summary.nothingHeld": "Nichts angehalten",- "bills.summary.off": "Aus",- "bills.summary.on": "An, {mode}","bills.summary.owing": "{count, plural, one {# im Rückstand} other {# im Rückstand}}","bills.summary.owingLine": "{pastDue} überfällig, {suspended} gesperrt.",- "bills.summary.paused": "Pausiert",- "bills.summary.signup.billing": "Eingeschaltet, aber die Abrechnung über Stripe ist nicht aktiv.",- "bills.summary.signup.botCheck": "Eingeschaltet, aber die Bot-Prüfung hat keine Schlüssel.",- "bills.summary.signup.switchedOff": "Ausgeschaltet: Nur Personen, die du hinzufügst, können beitreten.",- "bills.summary.signup.terms": "Eingeschaltet, aber Nutzungsbedingungen und Datenschutzerklärung sind nicht festgelegt.",- "bills.summary.taxOff": "Stripe Tax ist aus.",- "bills.summary.taxOn": "Stripe Tax ist an.",- "bills.summary.test": "Testmodus",- "bills.summary.turnOn": "Stripe ist verbunden ({mode}). Schalte die Abrechnung ein.","bills.suspendReason": "{reason, select, admin {Von einem Admin gesperrt} payment {Wegen einer fehlgeschlagenen Zahlung gesperrt} dispute {Wegen einer Zahlungsanfechtung gesperrt} early_fraud_warning {Wegen einer frühen Betrugswarnung gesperrt} other {Gesperrt}}","bills.tab.bills": "Abrechnungen","bills.tab.events": "Stripe-Ereignisse","bills.tab.overview": "Übersicht","bills.tab.review": "Prüfung","bills.tab.rules": "Preise und Regeln",- "bills.tab.signup": "Registrierung",- "bills.tab.stripe": "Stripe","bills.tax.confirmOff": "Stripe Tax ausschalten","bills.tax.confirmOn": "Stripe Tax einschalten","bills.tax.confirmText": "Jeder Server-Admin bekommt eine E-Mail.",@@ -842,7 +817,6 @@"calendarTools.mode.ownKey": "Eigener Schlüssel","calendarTools.offState": "Aus: Unternehmen sehen es nicht.","callQuality.alwaysOn": "Immer an",- "callQuality.description": "Was Assistenten wählen können.","callQuality.descriptionBilling": "Was Assistenten wählen können. Die Preise legst du unter <link>Abrechnung</link> fest.","callQuality.hideModels": "Voreingestellte Modelle ausblenden","callQuality.languageModel": "Sprachmodell",@@ -1107,10 +1081,7 @@"overview.people.users": "{count, plural, one {<b>#</b> Nutzer} other {<b>#</b> Nutzer}}","overview.people.workspaces": "{count, plural, one {<b>#</b> Workspace} other {<b>#</b> Workspaces}}","overview.stat.calls7d": "Anrufe, 7 Tage",- "overview.stat.callsToday": "Anrufe heute",- "overview.stat.callsTodayNote": "Seit Mitternacht UTC","overview.stat.costNote": "Ungefähr, zu Listenpreisen der Anbieter",- "overview.stat.minutesMonth": "{count, number} diesen Monat","overview.what": "Die Übersicht","partners.approve": "Freigeben","partners.approveTip": "{name} freigeben",@@ -1185,7 +1156,6 @@"partners.tabAll": "Alle","partners.tabWaiting": "Wartet auf Freigabe","partners.tabs": "Angezeigte Partner",- "prompt.autoSaveHint": "Tippe, um den Text zu ändern. Verlasse den Teil zum Speichern, Esc zum Rückgängigmachen, ⌘↵ zum sofortigen Speichern.","prompt.collapse": "Abschnitt einklappen","prompt.defaultChanged": "Standard seit deiner Änderung geändert","prompt.defaultChangedHint": "Ein neueres Release hat den Standardtext dieses Teils geändert. Deine Änderung wird weiter genutzt. Vergleiche sie mit dem Standard unten.",@@ -1202,7 +1172,6 @@"prompt.parts": "{count, plural, one {# Teil} other {# Teile}}","prompt.pieceLabel": "Text dieses Teils","prompt.reset": "Auf Standard zurücksetzen",- "prompt.saved": "Gespeichert","prompt.section.ai": "Eine KI sein","prompt.section.booking": "Termine","prompt.section.call": "Über diesen Anruf",@@ -1215,7 +1184,6 @@"prompt.section.rules": "Regeln","prompt.section.tone": "Tonfall","prompt.section.tools": "Werkzeuge",- "prompt.unsaved": "Ungespeicherte Änderung. Verlasse den Teil zum Speichern, Esc zum Rückgängigmachen.","prompt.variable.all": "alle Sprachen","prompt.variable.calendars": "Kalender","prompt.variable.caller": "Name des Anrufers",diff --git a/packages/i18n/locales/en/admin.json b/packages/i18n/locales/en/admin.jsonindex 67773c1a..5ed0d729 100644--- a/packages/i18n/locales/en/admin.json+++ b/packages/i18n/locales/en/admin.json@@ -375,12 +375,12 @@"audit.zapierAppCleared": "Removed the link to the Linedesk app on Zapier","audit.zapierAppSet": "Set the link to the Linedesk app on Zapier","audit.zapierSubscriptionDropped": "A Zapier trigger removed when the address was proven",+ "billing.connectFirst": "Connect Stripe under <link>Providers › Billing</link> to bill the workspaces on this server.","billing.failed": "Could not change billing.","billing.guardsMissing": "Billing is paused: the ledger's database guards are missing or changed. Run the migrations again; the server log names what is wrong.","billing.help": "Bill the workspaces on this server through your own Stripe account. Off by default: nothing is billed until it is on.","billing.liveMode": "Live mode: real cards are charged once billing is on.","billing.liveRefused": "This is a dev install: live Stripe keys are refused. Use a test key.",- "billing.notConnected": "Connect Stripe under Providers first (secret key and webhook signing secret) to turn billing on.","billing.switch": "Bill workspaces through Stripe","billing.testMode": "Test mode: Stripe charges nothing.","bills.action.cap": "Recharge cap…",@@ -508,8 +508,6 @@"bills.hub.review": "Held bills and new trials to check","bills.hub.rules": "Plans, minutes, limits and the trial","bills.hub.setup": "Setup",- "bills.hub.signup": "Who can create a workspace and start a trial",- "bills.hub.stripe": "The account bills are paid into","bills.interval.month": "Monthly","bills.interval.year": "Yearly","bills.invoices.column.invoice": "Invoice",@@ -648,17 +646,16 @@"bills.rules.group.minutes.text": "The price per minute of each level, and the minutes every plan includes.","bills.rules.group.plans": "Plans and add-ons","bills.rules.group.plans.text": "What a workspace, a partner and an extra number cost, before tax.",- "bills.rules.group.tax": "Tax","bills.rules.group.trial": "Free trial","bills.rules.group.trial.text": "How long the trial lasts and how many calls it answers at once.","bills.rules.ignored": "Stored values out of range are ignored and use their default: {fields}.",- "bills.rules.lede": "{count, plural, =0 {Every rule is at its default.} one {# rule differs from the default.} other {# rules differ from the default.}} Prices are in US dollars, charged through your own Stripe account. An empty field takes the default.",- "bills.rules.levelFactor": "{level} calls: included minutes used per minute",+ "bills.rules.intro": "Prices are in US dollars, charged through your own Stripe account. An empty field takes the default.",+ "bills.rules.levelFactor": "{level}: counts as … minutes per call minute","bills.rules.levelFactor.help": "How fast a {level} call uses the included minutes: 1 uses one included minute per minute, 2 uses two. Leave empty and {level} calls never use included minutes; they are always paid.","bills.rules.levelName.premium": "Premium","bills.rules.levelName.standard": "Standard","bills.rules.levelName.ultra": "Ultra",- "bills.rules.levelPrice": "{level} calls: price per minute",+ "bills.rules.levelPrice": "{level}: price per minute","bills.rules.levelPrice.help": "What a minute of a {level} call costs once the included minutes are used up. Billed per second.","bills.rules.minPrice": "At least {amount} on this server","bills.rules.minYearly": "At least {amount} on this server, and at most 12 monthly fees",@@ -671,10 +668,9 @@"bills.rules.title": "Prices and billing rules","bills.rules.unsaved": "{count, plural, one {# unsaved change} other {# unsaved changes}}","bills.search": "Search bills",- "bills.selfServe.closed.billing": "Sign-up is switched on but closed: billing through Stripe is not in effect. Turn it on in <link>Billing › Stripe</link>.",+ "bills.selfServe.closed.billing": "Sign-up is switched on but closed: billing through Stripe is not in effect. Turn it on in <link>Billing</link>.","bills.selfServe.closed.botCheck": "Sign-up is switched on but closed: the bot check (Cloudflare Turnstile) has no keys. Nobody can sign up until you add them under <link>Providers › Bot check</link>.",- "bills.selfServe.help": "Anyone may sign up and start a trial on their own. Off by default: then only people you add can.",- "bills.selfServe.needsBilling": "Needs billing through Stripe (Billing › Stripe) first.",+ "bills.selfServe.needsBillingLink": "Turn on billing in <link>Billing</link> first.","bills.selfServe.off": "Turn off","bills.selfServe.offText": "New sign-ups stop; people already signed up keep their workspaces. Every server admin is emailed.","bills.selfServe.offTitle": "Turn off self-serve sign-up",@@ -683,11 +679,9 @@"bills.selfServe.onTitle": "Turn on self-serve sign-up","bills.selfServe.openNow": "Anyone can sign up and start a trial now.","bills.selfServe.state.closed": "Closed",- "bills.selfServe.state.open": "Open","bills.selfServe.switch": "Self-serve sign-up","bills.selfServe.termsMissing": "Sign-up needs your terms and privacy policy first: set {vars} in the server's environment and restart it.","bills.selfServe.termsMissingOn": "Sign-up is switched on but closed: set {vars} in the server's environment and restart it. Nobody can start a plan without terms to accept.",- "bills.selfServe.title": "Sign-up","bills.selfServe.turnedOff": "Self-serve sign-up is off","bills.selfServe.turnedOn": "Self-serve sign-up is on","bills.signupRules.blockedDomains": "Blocked email domains",@@ -747,40 +741,22 @@"bills.status.suspendTitle": "Suspend this bill","bills.status.suspended": "Suspended","bills.status.trialing": "Trial",- "bills.stripe.keysWhere": "Stripe's keys are connected under <link>Providers › Billing</link>. Billing runs once they are there and this switch is on.",- "bills.stripe.switchTitle": "Billing switch","bills.summary.billCount": "{count, plural, =0 {None yet} one {#, none owing} other {#, none owing}}","bills.summary.eventsOk": "All processed","bills.summary.eventsStuck": "{count, plural, one {# needs a look} other {# need a look}}","bills.summary.eventsWaiting": "{count, plural, one {# waits to be processed.} other {# wait to be processed.}}","bills.summary.held": "{count, plural, one {# held} other {# held}}","bills.summary.label": "Billing status",- "bills.summary.live": "live mode",- "bills.summary.liveRefused": "Live key refused","bills.summary.newTrials": "{count, plural, =0 {No new trials in the last 7 days.} one {# new trial in the last 7 days.} other {# new trials in the last 7 days.}}",- "bills.summary.notConnected": "Not connected","bills.summary.nothingHeld": "Nothing held",- "bills.summary.off": "Off",- "bills.summary.on": "On, {mode}","bills.summary.owing": "{count, plural, one {# owes money} other {# owe money}}","bills.summary.owingLine": "{pastDue} past due, {suspended} suspended.",- "bills.summary.paused": "Paused",- "bills.summary.signup.billing": "Switched on, but billing through Stripe is not in effect.",- "bills.summary.signup.botCheck": "Switched on, but the bot check has no keys.",- "bills.summary.signup.switchedOff": "Switched off: only people you add can join.",- "bills.summary.signup.terms": "Switched on, but the terms and privacy policy are not set.",- "bills.summary.taxOff": "Stripe Tax is off.",- "bills.summary.taxOn": "Stripe Tax is on.",- "bills.summary.test": "test mode",- "bills.summary.turnOn": "Stripe is connected ({mode}). Turn billing on.","bills.suspendReason": "{reason, select, admin {Suspended by an admin} payment {Suspended for a failed payment} dispute {Suspended for a dispute} early_fraud_warning {Suspended for an early fraud warning} other {Suspended}}","bills.tab.bills": "Bills","bills.tab.events": "Stripe events","bills.tab.overview": "Overview","bills.tab.review": "Review","bills.tab.rules": "Prices and rules",- "bills.tab.signup": "Sign-up",- "bills.tab.stripe": "Stripe","bills.tax.confirmOff": "Turn Stripe Tax off","bills.tax.confirmOn": "Turn Stripe Tax on","bills.tax.confirmText": "Every server admin is emailed.",@@ -789,6 +765,8 @@"bills.unit.days": "days","bills.unit.minutes": "min","bills.unit.perMinute": "/ min",+ "bills.unit.perMonth": "/ mo",+ "bills.unit.perYear": "/ yr","bills.unit.seconds": "sec","bills.usage.busyCallers": "Busy callers","bills.usage.busyCallersHelp": "Callers in the last 30 days who got a busy line because all calls at the same time were in use",@@ -856,8 +834,7 @@"calendarTools.mode.ownKey": "Own key","calendarTools.offState": "Off: businesses do not see it.","callQuality.alwaysOn": "Always on",- "callQuality.description": "What assistants can pick.",- "callQuality.descriptionBilling": "What assistants can pick. Prices are set in <link>Billing</link>.",+ "callQuality.descriptionBilling": "Prices are set in <link>Billing</link>.","callQuality.hideModels": "Hide default models","callQuality.languageModel": "Language model","callQuality.modelsHelp": "Assistants without their own pick use these, from their next call on. The price stays the level’s.",@@ -1109,7 +1086,7 @@"openrouter.refused": "OpenRouter did not accept the sign-in, or it expired. Try again.","openrouter.status": "OpenRouter answered {status}. Try again.","openrouter.unreachable": "Couldn't reach OpenRouter. Try again.",- "overview.costs.cost7d": "Cost over 7 days",+ "overview.costs.cost7d": "Cost, 7 days","overview.costs.costMonth": "Cost this month","overview.costs.inUse": "In use","overview.costs.minutes7d": "Minutes, 7 days",@@ -1126,10 +1103,8 @@"overview.people.users": "{count, plural, one {<b>#</b> user} other {<b>#</b> users}}","overview.people.workspaces": "{count, plural, one {<b>#</b> workspace} other {<b>#</b> workspaces}}","overview.stat.calls7d": "Calls, 7 days",- "overview.stat.callsToday": "Calls today",- "overview.stat.callsTodayNote": "Since midnight UTC",- "overview.stat.costNote": "About, at provider list prices",- "overview.stat.minutesMonth": "{count, number} this month",+ "overview.stat.costNote": "At list prices",+ "overview.stat.minutesMonthText": "{minutes} this month","overview.what": "The overview","partners.approve": "Approve","partners.approveTip": "Approve {name}",@@ -1216,12 +1191,11 @@"partners.tabWaiting": "Waiting for approval","partners.tabs": "Partners shown","prompt.always": "Always",- "prompt.autoSaveHint": "Type to change the text. Leave the part to save, Esc to undo, ⌘↵ to save now.","prompt.collapse": "Collapse this section","prompt.defaultChanged": "Default changed since your edit","prompt.defaultChangedHint": "A newer release changed the default text of this part. Your edit is still used. Compare it with the default below.","prompt.defaultText": "Default text",- "prompt.editHint": "Click to edit. Leave the part to save, Esc to undo.",+ "prompt.editHint": "Click to edit. Esc undoes.","prompt.edited": "Edited","prompt.editedCount": "{count} edited","prompt.empty": "A part cannot be empty. Reset it to the default instead.",@@ -1231,13 +1205,12 @@"prompt.group.fixed": "Last","prompt.group.identity": "Who the assistant is","prompt.group.work": "What it does",- "prompt.intro": "The assistant's system prompt for every workspace on this server, section by section in the order the assistant reads it. Open a section to see its parts, grouped by when they apply. Click a text to change it; leaving it saves. Grey chips are filled in on each call.",+ "prompt.intro": "The assistant's system prompt for every workspace on this server, section by section in the order the assistant reads it. Open a section to see its parts, grouped by when they apply. Click a text to change it, then save with the Save bar. Grey chips are filled in on each call.","prompt.notInUse": "Default in use","prompt.notInUseHint": "A newer release changed the variables of this part, so your edit no longer fits and the default is used. Edit the part again or reset it.","prompt.parts": "{count, plural, one {# part} other {# parts}}","prompt.pieceLabel": "Text of this part","prompt.reset": "Reset to default",- "prompt.saved": "Saved","prompt.section.ai": "Being an AI","prompt.section.booking": "Appointments","prompt.section.call": "About this call",@@ -1250,7 +1223,7 @@"prompt.section.rules": "Rules","prompt.section.tone": "Tone","prompt.section.tools": "Tools",- "prompt.unsaved": "Unsaved change. Leave the part to save, Esc to undo.",+ "prompt.unsavedParts": "{count, plural, one {Unsaved change in # part} other {Unsaved changes in # parts}}","prompt.variable.all": "all languages","prompt.variable.calendars": "calendars","prompt.variable.caller": "caller's name",@@ -1676,10 +1649,11 @@"signupPage.founderEmail.summary": "A short note from a founder to each new owner","signupPage.group.emails": "Emails","signupPage.group.signup": "Sign-up",+ "signupPage.limits.botCheckNoKeys": "Bot check has no keys","signupPage.limits.botCheckOff": "Bot check off","signupPage.limits.botCheckOn": "Bot check on","signupPage.limits.summary": "Bot check, blocked domains, sign-up codes and trials",- "signupPage.selfServe.summary": "Anyone can sign up and start a trial",+ "signupPage.selfServe.summary": "Let anyone sign up and start a trial.","signupPage.setupEmails.summary": "Emails that help the owners of new workspaces finish setup","status.agent.docs": "How to run the voice agent","status.agent.startDev": "Not running. Start it in the repository:",@@ -1861,7 +1835,7 @@"system.zapierAppExample": "https://zapier.com/…","system.zapierAppFailed": "Couldn't save the Zapier link.","system.zapierAppInvalid": "An https link on zapier.com: the app's invite link, or its page in Zapier's directory.",- "system.zapierAppNone": "No link: workspaces see no link to Zapier. Their Zaps keep working.",+ "system.zapierAppNone": "Workspaces see no Zapier link. Their Zaps keep working.","system.zapierAppSet": "Workspaces open this link in Integrations › Zapier.","system.zapierHelp": "The Linedesk app on Zapier works with every Linedesk server, also this one. Each workspace connects it with its own API key and this server's address, and opens the app from the link set here.","system.zapierReachable": "{address}: Zapier can reach it.",@@ -1937,7 +1911,7 @@"workspaces.empty": "No workspaces yet.","workspaces.fact.active": "Active","workspaces.fact.answeredMonth": "Answered this month",- "workspaces.fact.calls30d": "Calls, last 30 days",+ "workspaces.fact.calls30d": "Calls, 30 days","workspaces.fact.costMonth": "Estimated cost this month","workspaces.fact.created": "Created","workspaces.fact.disabledAt": "Disabled {when}",diff --git a/packages/i18n/locales/en/email.json b/packages/i18n/locales/en/email.jsonindex 24ba7cc9..13514643 100644--- a/packages/i18n/locales/en/email.json+++ b/packages/i18n/locales/en/email.json@@ -42,7 +42,7 @@"adminAlert.billingRules.subject": "The billing rules were changed","adminAlert.billingRules.text": "{actor} changed this install's billing rules (Server admin › Billing): {fields}. Reason given: {reason}","adminAlert.billingSwitch.subject": "Billing was turned {on, select, yes {on} other {off}}",- "adminAlert.billingSwitch.text": "{actor} turned billing {on, select, yes {on, with the Stripe account {account} in {mode} mode: businesses on this install are charged} other {off: nothing is charged and no card is used}} (Server admin › Billing › Stripe).",+ "adminAlert.billingSwitch.text": "{actor} turned billing {on, select, yes {on, with the Stripe account {account} in {mode} mode: businesses on this install are charged} other {off: nothing is charged and no card is used}} (Server admin › Billing).","adminAlert.billingUnusable.fix": "Run the migrations again, or fix the keys in Server admin › Providers › Stripe. You get this email once; billing comes back on its own once it works.","adminAlert.billingUnusable.subject": "Billing on {brand} is switched on but not working","adminAlert.billingUnusable.text": "{reason, select, guards {The database rules that keep the billing ledger correct are missing, changed or could not be checked.} other {The Stripe keys are missing, or this server does not allow them.}} Until billing works again, calls of workspaces on a bill are refused and filed as missed.",@@ -53,7 +53,7 @@"adminAlert.cappedCall.check": "Check the call in Server admin and with the carrier. If it really ran that long, credit or charge the difference by hand.","adminAlert.cappedCall.subject": "A call on {brand} was billed less than it reported","adminAlert.cappedCall.text": "A call reported {reported} seconds, more than its time limit plus the grace allows, so it was billed for {billed} seconds. A wrong duration, a stuck call or a call the stale sweep did not end can cause this.",- "adminAlert.catalogSync.check": "The Stripe key needs write access to Products and Prices, and the lookup keys ws_monthly, ws_yearly, partner_monthly and partner_yearly must not belong to another product. Test the key in Server admin › Billing › Stripe, then save the prices again.",+ "adminAlert.catalogSync.check": "The Stripe key needs write access to Products and Prices, and the lookup keys ws_monthly, ws_yearly, partner_monthly and partner_yearly must not belong to another product. Test the key in Server admin › Providers › Billing, then save the prices again.","adminAlert.catalogSync.lastSynced": "New Checkouts keep selling the prices of the last update that worked, and Buy minutes keeps working.","adminAlert.catalogSync.neverSynced": "The prices were never set up in this Stripe account, so nobody can start a trial or a plan until this is fixed. Buy minutes keeps working.","adminAlert.catalogSync.subject": "Stripe products and prices on {brand} could not be updated",@@ -70,7 +70,7 @@"adminAlert.checkoutRefused.check": "Check the session and the customer in Stripe: refund anything that was charged, and cancel a subscription that still runs.","adminAlert.checkoutRefused.subject": "A Checkout on {brand} was refused","adminAlert.checkoutRefused.text": "Checkout {session} of bill {bill} was completed in Stripe, and the server did not apply it: {reason}",- "adminAlert.checkoutSetup.check": "Run the billing bootstrap (it makes the card-only payment method configuration, the customer portal and the webhook endpoint; the prices are made by the app when billing is turned on or the prices are saved), then check the Stripe keys and their permissions in Server admin › Billing › Stripe.",+ "adminAlert.checkoutSetup.check": "Run the billing bootstrap (it makes the card-only payment method configuration, the customer portal and the webhook endpoint; the prices are made by the app when billing is turned on or the prices are saved), then check the Stripe keys and their permissions in Server admin › Providers › Billing.","adminAlert.checkoutSetup.subject": "Checkout on {brand} could not start","adminAlert.checkoutSetup.text": "A bill owner tried to start Checkout, and Stripe refused it because of the setup ({code}). Nobody can start a trial or buy minutes until this is fixed; the owner was asked to try again later.","adminAlert.dataPurgeFailed.items": "Not deleted",diff --git a/packages/i18n/locales/en/server.json b/packages/i18n/locales/en/server.jsonindex 225d9dc5..518839f4 100644--- a/packages/i18n/locales/en/server.json+++ b/packages/i18n/locales/en/server.json@@ -36,7 +36,7 @@"api.billingAdmin.refundWaiting": "Another refund of this bill is still waiting on Stripe: try again in a few minutes.","api.billingAdmin.resumeOnly": "Only a suspended or comped bill is resumed here.","api.billingAdmin.rulesInvalid": "These rules are out of range or unknown: {fields}. Nothing was changed.",- "api.billingAdmin.selfServeNeedsStripe": "Self-serve sign-up needs billing through Stripe in effect (Server admin › Billing › Stripe).",+ "api.billingAdmin.selfServeNeedsStripe": "Self-serve sign-up needs billing through Stripe in effect (Server admin › Billing).","api.billingAdmin.stripeNotInEffect": "Billing through Stripe is not in effect on this install.","api.billingAdmin.writeoffTooLarge": "A write-off forgives at most what the balance is below zero.","api.booking.appointmentTypeNotFound": "appointment type not found",diff --git a/packages/i18n/locales/es/admin.json b/packages/i18n/locales/es/admin.jsonindex 6432c066..a9a82e14 100644--- a/packages/i18n/locales/es/admin.json+++ b/packages/i18n/locales/es/admin.json@@ -376,7 +376,6 @@"billing.help": "Factura a los espacios de trabajo de este servidor con tu propia cuenta de Stripe. Desactivado de forma predeterminada: no se factura nada hasta que lo actives.","billing.liveMode": "Modo real: se cobra a tarjetas reales en cuanto la facturación está activada.","billing.liveRefused": "Esta es una instalación de desarrollo: se rechazan las claves reales de Stripe. Usa una clave de prueba.",- "billing.notConnected": "Primero conecta Stripe en Proveedores (clave secreta y secreto de firma del webhook) para activar la facturación.","billing.switch": "Facturar a los espacios de trabajo con Stripe","billing.testMode": "Modo de prueba: Stripe no cobra nada.","bills.action.cap": "Límite de recargas…",@@ -634,11 +633,9 @@"bills.rules.group.minutes.text": "El precio por minuto de cada nivel y los minutos que incluye cada plan.","bills.rules.group.plans": "Planes y complementos","bills.rules.group.plans.text": "Lo que cuestan un espacio de trabajo, un partner y un número adicional, antes de impuestos.",- "bills.rules.group.tax": "Impuestos","bills.rules.group.trial": "Prueba gratuita","bills.rules.group.trial.text": "Cuánto dura la prueba y cuántas llamadas atiende a la vez.","bills.rules.ignored": "Los valores guardados fuera de rango se ignoran y usan su valor predeterminado: {fields}.",- "bills.rules.lede": "{count, plural, =0 {Todas las reglas tienen su valor predeterminado.} one {# regla difiere del valor predeterminado.} many {# reglas difieren del valor predeterminado.} other {# reglas difieren del valor predeterminado.}} Los precios están en dólares estadounidenses y se cobran a través de tu propia cuenta de Stripe. Un campo vacío toma el valor predeterminado.","bills.rules.levelFactor": "Llamadas {level}: minutos incluidos usados por minuto","bills.rules.levelFactor.help": "Qué tan rápido una llamada {level} usa los minutos incluidos: 1 usa un minuto incluido por minuto, 2 usa dos. Si lo dejas vacío, las llamadas {level} nunca usan minutos incluidos; siempre se pagan.","bills.rules.levelName.premium": "Premium",@@ -659,8 +656,6 @@"bills.search": "Buscar facturas","bills.selfServe.closed.billing": "El registro está activado pero cerrado: la facturación con Stripe no está en vigor. Actívala en <link>Facturación › Stripe</link>.","bills.selfServe.closed.botCheck": "El registro está activado pero cerrado: la verificación anti-bots (Cloudflare Turnstile) no tiene claves. Nadie puede registrarse hasta que las agregues en <link>Proveedores › Verificación anti-bots</link>.",- "bills.selfServe.help": "Cualquiera puede registrarse e iniciar una prueba por su cuenta. Desactivado de forma predeterminada: entonces solo pueden las personas que agregues.",- "bills.selfServe.needsBilling": "Primero necesita la facturación con Stripe (Facturación › Stripe).","bills.selfServe.off": "Desactivar","bills.selfServe.offText": "Se detienen los registros nuevos; quienes ya se registraron conservan sus espacios de trabajo. Se envía un correo a cada administrador del servidor.","bills.selfServe.offTitle": "Desactivar el registro autónomo",@@ -669,11 +664,9 @@"bills.selfServe.onTitle": "Activar el registro autónomo","bills.selfServe.openNow": "Cualquiera puede registrarse e iniciar una prueba ahora.","bills.selfServe.state.closed": "Cerrado",- "bills.selfServe.state.open": "Abierto","bills.selfServe.switch": "Registro autónomo","bills.selfServe.termsMissing": "El registro necesita primero tus términos del servicio y tu política de privacidad: define {vars} en el entorno del servidor y reinícialo.","bills.selfServe.termsMissingOn": "El registro está activado pero cerrado: define {vars} en el entorno del servidor y reinícialo. Nadie puede iniciar un plan sin términos que aceptar.",- "bills.selfServe.title": "Registro","bills.selfServe.turnedOff": "El registro autónomo está desactivado","bills.selfServe.turnedOn": "El registro autónomo está activado","bills.signupRules.blockedDomains": "Dominios de correo bloqueados",@@ -733,40 +726,22 @@"bills.status.suspendTitle": "Suspender esta factura","bills.status.suspended": "Suspendida","bills.status.trialing": "Prueba",- "bills.stripe.keysWhere": "Las claves de Stripe se conectan en <link>Proveedores › Facturación</link>. La facturación funciona en cuanto estén allí y este interruptor esté activado.",- "bills.stripe.switchTitle": "Interruptor de facturación","bills.summary.billCount": "{count, plural, =0 {Ninguna aún} one {#, ninguna con deuda} many {#, ninguna con deuda} other {#, ninguna con deuda}}","bills.summary.eventsOk": "Todos procesados","bills.summary.eventsStuck": "{count, plural, one {# necesita revisión} many {# necesitan revisión} other {# necesitan revisión}}","bills.summary.eventsWaiting": "{count, plural, one {# espera ser procesado.} many {# esperan ser procesados.} other {# esperan ser procesados.}}","bills.summary.held": "{count, plural, one {# retenida} many {# retenidas} other {# retenidas}}","bills.summary.label": "Estado de la facturación",- "bills.summary.live": "modo real",- "bills.summary.liveRefused": "Clave real rechazada","bills.summary.newTrials": "{count, plural, =0 {No hay pruebas nuevas en los últimos 7 días.} one {# prueba nueva en los últimos 7 días.} many {# pruebas nuevas en los últimos 7 días.} other {# pruebas nuevas en los últimos 7 días.}}",- "bills.summary.notConnected": "No conectado","bills.summary.nothingHeld": "Nada retenido",- "bills.summary.off": "Desactivada",- "bills.summary.on": "Activada, {mode}","bills.summary.owing": "{count, plural, one {# con deuda} many {# con deuda} other {# con deuda}}","bills.summary.owingLine": "{pastDue} vencidas, {suspended} suspendidas.",- "bills.summary.paused": "En pausa",- "bills.summary.signup.billing": "Activado, pero la facturación con Stripe no está vigente.",- "bills.summary.signup.botCheck": "Activado, pero la verificación contra bots no tiene claves.",- "bills.summary.signup.switchedOff": "Desactivado: solo pueden unirse las personas que agregues.",- "bills.summary.signup.terms": "Activado, pero los términos y la política de privacidad no están configurados.",- "bills.summary.taxOff": "Stripe Tax está desactivado.",- "bills.summary.taxOn": "Stripe Tax está activado.",- "bills.summary.test": "modo de prueba",- "bills.summary.turnOn": "Stripe está conectado ({mode}). Activa la facturación.","bills.suspendReason": "{reason, select, admin {Suspendida por un administrador} payment {Suspendida por un pago fallido} dispute {Suspendida por una disputa} early_fraud_warning {Suspendida por una alerta temprana de fraude} other {Suspendida}}","bills.tab.bills": "Facturas","bills.tab.events": "Eventos de Stripe","bills.tab.overview": "Resumen","bills.tab.review": "Revisión","bills.tab.rules": "Precios y reglas",- "bills.tab.signup": "Registro",- "bills.tab.stripe": "Stripe","bills.tax.confirmOff": "Desactivar Stripe Tax","bills.tax.confirmOn": "Activar Stripe Tax","bills.tax.confirmText": "Se envía un correo a cada administrador del servidor.",@@ -842,7 +817,6 @@"calendarTools.mode.ownKey": "Clave propia","calendarTools.offState": "Desactivado: los negocios no lo ven.","callQuality.alwaysOn": "Siempre activado",- "callQuality.description": "Lo que pueden elegir los asistentes.","callQuality.descriptionBilling": "Lo que pueden elegir los asistentes. Los precios se fijan en <link>Facturación</link>.","callQuality.hideModels": "Ocultar modelos predeterminados","callQuality.languageModel": "Modelo de lenguaje",@@ -1107,10 +1081,7 @@"overview.people.users": "{count, plural, one {<b>#</b> usuario} many {<b>#</b> usuarios} other {<b>#</b> usuarios}}","overview.people.workspaces": "{count, plural, one {<b>#</b> espacio de trabajo} many {<b>#</b> espacios de trabajo} other {<b>#</b> espacios de trabajo}}","overview.stat.calls7d": "Llamadas, 7 días",- "overview.stat.callsToday": "Llamadas hoy",- "overview.stat.callsTodayNote": "Desde la medianoche UTC","overview.stat.costNote": "Aproximado, a precios de lista de los proveedores",- "overview.stat.minutesMonth": "{count, number} este mes","overview.what": "el resumen","partners.approve": "Aprobar","partners.approveTip": "Aprobar a {name}",@@ -1185,7 +1156,6 @@"partners.tabAll": "Todos","partners.tabWaiting": "Esperando aprobación","partners.tabs": "Partners mostrados",- "prompt.autoSaveHint": "Escribe para cambiar el texto. Sal de la parte para guardar, Esc para deshacer, ⌘↵ para guardar ya.","prompt.collapse": "Contraer esta sección","prompt.defaultChanged": "El predeterminado cambió después de tu edición","prompt.defaultChangedHint": "Una versión más reciente cambió el texto predeterminado de esta parte. Se sigue usando tu edición. Compárala con el texto predeterminado de abajo.",@@ -1202,7 +1172,6 @@"prompt.parts": "{count, plural, one {# parte} many {# partes} other {# partes}}","prompt.pieceLabel": "Texto de esta parte","prompt.reset": "Restablecer",- "prompt.saved": "Guardado","prompt.section.ai": "Ser una IA","prompt.section.booking": "Citas","prompt.section.call": "Sobre esta llamada",@@ -1215,7 +1184,6 @@"prompt.section.rules": "Reglas","prompt.section.tone": "Tono","prompt.section.tools": "Herramientas",- "prompt.unsaved": "Cambio sin guardar. Sal de la parte para guardar, Esc para deshacer.","prompt.variable.all": "todos los idiomas","prompt.variable.calendars": "calendarios","prompt.variable.caller": "nombre de quien llama",diff --git a/packages/i18n/locales/fr/admin.json b/packages/i18n/locales/fr/admin.jsonindex 1701aef8..05f740e7 100644--- a/packages/i18n/locales/fr/admin.json+++ b/packages/i18n/locales/fr/admin.json@@ -376,7 +376,6 @@"billing.help": "Facturer les espaces de travail de ce serveur via votre propre compte Stripe. Désactivé par défaut : rien n'est facturé tant que ce n'est pas activé.","billing.liveMode": "Mode réel : de vraies cartes sont débitées dès que la facturation est activée.","billing.liveRefused": "Ceci est une installation de développement : les clés Stripe réelles sont refusées. Utilisez une clé de test.",- "billing.notConnected": "Connectez d'abord Stripe dans Fournisseurs (clé secrète et secret de signature du webhook) pour activer la facturation.","billing.switch": "Facturer les espaces de travail via Stripe","billing.testMode": "Mode test : Stripe ne débite rien.","bills.action.cap": "Plafond de recharge…",@@ -634,11 +633,9 @@"bills.rules.group.minutes.text": "Le prix par minute de chaque niveau, et les minutes incluses dans chaque forfait.","bills.rules.group.plans": "Forfaits et options","bills.rules.group.plans.text": "Ce que coûtent un espace de travail, un partenaire et un numéro supplémentaire, hors taxes.",- "bills.rules.group.tax": "Taxes","bills.rules.group.trial": "Essai gratuit","bills.rules.group.trial.text": "La durée de l'essai et le nombre d'appels qu'il prend en même temps.","bills.rules.ignored": "Les valeurs enregistrées hors limites sont ignorées et remplacées par leur valeur par défaut : {fields}.",- "bills.rules.lede": "{count, plural, =0 {Toutes les règles sont à leur valeur par défaut.} one {# règle diffère de la valeur par défaut.} many {# règles diffèrent de la valeur par défaut.} other {# règles diffèrent de la valeur par défaut.}} Les prix sont en dollars américains, facturés via votre propre compte Stripe. Un champ vide prend la valeur par défaut.","bills.rules.levelFactor": "Appels {level} : minutes incluses utilisées par minute","bills.rules.levelFactor.help": "La vitesse à laquelle un appel {level} utilise les minutes incluses : 1 utilise une minute incluse par minute, 2 en utilise deux. Laissé vide, les appels {level} n'utilisent jamais les minutes incluses ; ils sont toujours payants.","bills.rules.levelName.premium": "Premium",@@ -659,8 +656,6 @@"bills.search": "Rechercher des factures","bills.selfServe.closed.billing": "L'inscription est activée mais fermée : la facturation via Stripe n'est pas en vigueur. Activez-la dans <link>Facturation › Stripe</link>.","bills.selfServe.closed.botCheck": "L'inscription est activée mais fermée : la vérification anti-robot (Cloudflare Turnstile) n'a pas de clés. Personne ne peut s'inscrire tant que vous ne les avez pas ajoutées dans <link>Fournisseurs › Vérification anti-robot</link>.",- "bills.selfServe.help": "Tout le monde peut s'inscrire et démarrer un essai seul. Désactivé par défaut : seules les personnes que vous ajoutez le peuvent alors.",- "bills.selfServe.needsBilling": "Nécessite d'abord la facturation via Stripe (Facturation › Stripe).","bills.selfServe.off": "Désactiver","bills.selfServe.offText": "Les nouvelles inscriptions s'arrêtent ; les personnes déjà inscrites gardent leurs espaces de travail. Chaque administrateur du serveur reçoit un e-mail.","bills.selfServe.offTitle": "Désactiver l'inscription libre",@@ -669,11 +664,9 @@"bills.selfServe.onTitle": "Activer l'inscription libre","bills.selfServe.openNow": "Tout le monde peut maintenant s'inscrire et démarrer un essai.","bills.selfServe.state.closed": "Fermé",- "bills.selfServe.state.open": "Ouvert","bills.selfServe.switch": "Inscription libre","bills.selfServe.termsMissing": "L'inscription nécessite d'abord vos conditions d'utilisation et votre politique de confidentialité : définissez {vars} dans l'environnement du serveur, puis redémarrez-le.","bills.selfServe.termsMissingOn": "L'inscription est activée mais fermée : définissez {vars} dans l'environnement du serveur, puis redémarrez-le. Personne ne peut démarrer un forfait sans conditions à accepter.",- "bills.selfServe.title": "Inscription","bills.selfServe.turnedOff": "L'inscription libre est désactivée","bills.selfServe.turnedOn": "L'inscription libre est activée","bills.signupRules.blockedDomains": "Domaines e-mail bloqués",@@ -733,40 +726,22 @@"bills.status.suspendTitle": "Suspendre cette facture","bills.status.suspended": "Suspendue","bills.status.trialing": "Essai",- "bills.stripe.keysWhere": "Les clés de Stripe se connectent dans <link>Fournisseurs › Facturation</link>. La facturation fonctionne dès qu'elles y sont et que cet interrupteur est activé.",- "bills.stripe.switchTitle": "Activation de la facturation","bills.summary.billCount": "{count, plural, =0 {Aucune pour l'instant} one {#, aucune impayée} many {#, aucune impayée} other {#, aucune impayée}}","bills.summary.eventsOk": "Tous traités","bills.summary.eventsStuck": "{count, plural, one {# à examiner} many {# à examiner} other {# à examiner}}","bills.summary.eventsWaiting": "{count, plural, one {# en attente de traitement.} many {# en attente de traitement.} other {# en attente de traitement.}}","bills.summary.held": "{count, plural, one {# bloquée} many {# bloquées} other {# bloquées}}","bills.summary.label": "État de la facturation",- "bills.summary.live": "mode réel",- "bills.summary.liveRefused": "Clé réelle refusée","bills.summary.newTrials": "{count, plural, =0 {Aucun nouvel essai au cours des 7 derniers jours.} one {# nouvel essai au cours des 7 derniers jours.} many {# nouveaux essais au cours des 7 derniers jours.} other {# nouveaux essais au cours des 7 derniers jours.}}",- "bills.summary.notConnected": "Non connecté","bills.summary.nothingHeld": "Rien de bloqué",- "bills.summary.off": "Désactivée",- "bills.summary.on": "Activée, {mode}","bills.summary.owing": "{count, plural, one {# impayée} many {# impayées} other {# impayées}}","bills.summary.owingLine": "{pastDue} en retard, {suspended} suspendues.",- "bills.summary.paused": "En pause",- "bills.summary.signup.billing": "Activée, mais la facturation via Stripe n'est pas en vigueur.",- "bills.summary.signup.botCheck": "Activée, mais la vérification anti-robot n'a pas de clés.",- "bills.summary.signup.switchedOff": "Désactivée : seules les personnes que vous ajoutez peuvent rejoindre.",- "bills.summary.signup.terms": "Activée, mais les conditions d'utilisation et la politique de confidentialité ne sont pas définies.",- "bills.summary.taxOff": "Stripe Tax est désactivé.",- "bills.summary.taxOn": "Stripe Tax est activé.",- "bills.summary.test": "mode test",- "bills.summary.turnOn": "Stripe est connecté ({mode}). Activez la facturation.","bills.suspendReason": "{reason, select, admin {Suspendue par un administrateur} payment {Suspendue pour un paiement échoué} dispute {Suspendue pour un litige} early_fraud_warning {Suspendue pour un avertissement précoce de fraude} other {Suspendue}}","bills.tab.bills": "Factures","bills.tab.events": "Événements Stripe","bills.tab.overview": "Vue d'ensemble","bills.tab.review": "Vérification","bills.tab.rules": "Prix et règles",- "bills.tab.signup": "Inscription",- "bills.tab.stripe": "Stripe","bills.tax.confirmOff": "Désactiver Stripe Tax","bills.tax.confirmOn": "Activer Stripe Tax","bills.tax.confirmText": "Chaque administrateur du serveur reçoit un e-mail.",@@ -842,7 +817,6 @@"calendarTools.mode.ownKey": "Leur propre clé","calendarTools.offState": "Désactivé : les entreprises ne le voient pas.","callQuality.alwaysOn": "Toujours activé",- "callQuality.description": "Ce que les assistants peuvent choisir.","callQuality.descriptionBilling": "Ce que les assistants peuvent choisir. Les prix se fixent dans <link>Facturation</link>.","callQuality.hideModels": "Masquer les modèles par défaut","callQuality.languageModel": "Modèle de langage",@@ -1107,10 +1081,7 @@"overview.people.users": "{count, plural, one {<b>#</b> utilisateur} many {<b>#</b> utilisateurs} other {<b>#</b> utilisateurs}}","overview.people.workspaces": "{count, plural, one {<b>#</b> espace de travail} many {<b>#</b> espaces de travail} other {<b>#</b> espaces de travail}}","overview.stat.calls7d": "Appels, 7 jours",- "overview.stat.callsToday": "Appels aujourd'hui",- "overview.stat.callsTodayNote": "Depuis minuit UTC","overview.stat.costNote": "Environ, aux prix publics des fournisseurs",- "overview.stat.minutesMonth": "{count, number} ce mois-ci","overview.what": "la vue d'ensemble","partners.approve": "Approuver","partners.approveTip": "Approuver {name}",@@ -1185,7 +1156,6 @@"partners.tabAll": "Tous","partners.tabWaiting": "En attente d'approbation","partners.tabs": "Partenaires affichés",- "prompt.autoSaveHint": "Tapez pour modifier le texte. Quittez la partie pour enregistrer, Échap pour annuler, ⌘↵ pour enregistrer tout de suite.","prompt.collapse": "Replier cette section","prompt.defaultChanged": "Texte par défaut modifié depuis votre modification","prompt.defaultChangedHint": "Une version plus récente a modifié le texte par défaut de cette partie. Votre modification reste utilisée. Comparez-la avec le texte par défaut ci-dessous.",@@ -1202,7 +1172,6 @@"prompt.parts": "{count, plural, one {# partie} many {# parties} other {# parties}}","prompt.pieceLabel": "Texte de cette partie","prompt.reset": "Réinitialiser",- "prompt.saved": "Enregistré","prompt.section.ai": "Être une IA","prompt.section.booking": "Rendez-vous","prompt.section.call": "À propos de cet appel",@@ -1215,7 +1184,6 @@"prompt.section.rules": "Règles","prompt.section.tone": "Ton","prompt.section.tools": "Outils",- "prompt.unsaved": "Modification non enregistrée. Quittez la partie pour enregistrer, Échap pour annuler.","prompt.variable.all": "toutes les langues","prompt.variable.calendars": "calendriers","prompt.variable.caller": "nom de l'appelant",diff --git a/packages/i18n/locales/ja/admin.json b/packages/i18n/locales/ja/admin.jsonindex 60905faf..2bf86167 100644--- a/packages/i18n/locales/ja/admin.json+++ b/packages/i18n/locales/ja/admin.json@@ -376,7 +376,6 @@"billing.help": "このサーバーのワークスペースに、ご自身のStripeアカウントで請求します。初期設定はオフで、オンにするまで何も請求されません。","billing.liveMode": "本番モード:請求をオンにすると実際のカードに請求されます。","billing.liveRefused": "これは開発用のインストールのため、Stripeの本番キーは使えません。テストキーを使ってください。",- "billing.notConnected": "請求をオンにするには、まずプロバイダーでStripe(シークレットキーとWebhook署名シークレット)を接続してください。","billing.switch": "Stripeでワークスペースに請求","billing.testMode": "テストモード:Stripeは何も請求しません。","bills.action.cap": "チャージ上限…",@@ -634,11 +633,9 @@"bills.rules.group.minutes.text": "各レベルの1分あたりの料金と、各プランに含まれる通話時間です。","bills.rules.group.plans": "プランと追加オプション","bills.rules.group.plans.text": "ワークスペース、パートナー、追加番号の税抜き料金です。",- "bills.rules.group.tax": "税金","bills.rules.group.trial": "無料トライアル","bills.rules.group.trial.text": "トライアルの期間と、同時に応答できる通話数です。","bills.rules.ignored": "範囲外の保存値は無視され、既定値が使われます:{fields}。",- "bills.rules.lede": "{count, plural, =0 {すべてのルールが既定値です。} other {#件のルールが既定値と異なります。}}料金は米ドルで、ご自身のStripeアカウントを通じて請求されます。空欄の項目には既定値が使われます。","bills.rules.levelFactor": "{level}の通話:1分あたりに使う付属時間(分)","bills.rules.levelFactor.help": "{level}の通話が付属時間を使う速さです。1なら1分ごとに付属時間を1分、2なら2分使います。空欄にすると{level}の通話は付属時間を使わず、常に有料になります。","bills.rules.levelName.premium": "Premium",@@ -659,8 +656,6 @@"bills.search": "請求を検索","bills.selfServe.closed.billing": "登録はオンですが、受け付けていません。Stripeによる請求が有効になっていません。<link>請求 › Stripe</link>でオンにしてください。","bills.selfServe.closed.botCheck": "登録はオンですが、受け付けていません。ボットチェック(Cloudflare Turnstile)にキーがありません。<link>プロバイダー › ボットチェック</link>でキーを追加するまで、誰も登録できません。",- "bills.selfServe.help": "誰でも自分で登録してトライアルを開始できます。既定ではオフで、その場合は追加したユーザーだけが登録できます。",- "bills.selfServe.needsBilling": "先にStripeによる請求(請求 › Stripe)が必要です。","bills.selfServe.off": "オフにする","bills.selfServe.offText": "新規登録は停止します。登録済みのユーザーはワークスペースをそのまま使えます。すべてのサーバー管理者にメールが届きます。","bills.selfServe.offTitle": "セルフ登録をオフにする",@@ -669,11 +664,9 @@"bills.selfServe.onTitle": "セルフ登録をオンにする","bills.selfServe.openNow": "現在、誰でも登録してトライアルを開始できます。","bills.selfServe.state.closed": "停止中",- "bills.selfServe.state.open": "受付中","bills.selfServe.switch": "セルフ登録","bills.selfServe.termsMissing": "登録にはまず利用規約とプライバシーポリシーが必要です。サーバーの環境変数に{vars}を設定し、サーバーを再起動してください。","bills.selfServe.termsMissingOn": "登録はオンですが、受け付けていません。サーバーの環境変数に{vars}を設定し、サーバーを再起動してください。同意する利用規約がないと、誰もプランを開始できません。",- "bills.selfServe.title": "登録","bills.selfServe.turnedOff": "セルフ登録はオフです","bills.selfServe.turnedOn": "セルフ登録はオンです","bills.signupRules.blockedDomains": "ブロックするメールドメイン",@@ -733,40 +726,22 @@"bills.status.suspendTitle": "この請求を停止","bills.status.suspended": "停止中","bills.status.trialing": "トライアル",- "bills.stripe.keysWhere": "Stripeのキーは<link>プロバイダー › 請求</link>で接続します。キーがそこにあり、このスイッチがオンになると請求が動きます。",- "bills.stripe.switchTitle": "請求スイッチ","bills.summary.billCount": "{count, plural, =0 {まだありません} other {#件、未払いなし}}","bills.summary.eventsOk": "すべて処理済み","bills.summary.eventsStuck": "{count, plural, other {#件の確認が必要}}","bills.summary.eventsWaiting": "{count, plural, other {#件が処理待ちです。}}","bills.summary.held": "{count, plural, other {#件を保留中}}","bills.summary.label": "請求のステータス",- "bills.summary.live": "本番モード",- "bills.summary.liveRefused": "本番キーが拒否されました","bills.summary.newTrials": "{count, plural, =0 {過去7日間に新しいトライアルはありません。} other {過去7日間に新しいトライアルが#件あります。}}",- "bills.summary.notConnected": "未接続","bills.summary.nothingHeld": "保留なし",- "bills.summary.off": "オフ",- "bills.summary.on": "オン({mode})","bills.summary.owing": "{count, plural, other {#件が未払い}}","bills.summary.owingLine": "支払い期限切れ{pastDue}件、停止中{suspended}件。",- "bills.summary.paused": "一時停止中",- "bills.summary.signup.billing": "オンですが、Stripeによる請求が有効になっていません。",- "bills.summary.signup.botCheck": "オンですが、ボット確認にキーがありません。",- "bills.summary.signup.switchedOff": "オフ:追加したユーザーだけが参加できます。",- "bills.summary.signup.terms": "オンですが、利用規約とプライバシーポリシーが設定されていません。",- "bills.summary.taxOff": "Stripe Taxはオフです。",- "bills.summary.taxOn": "Stripe Taxはオンです。",- "bills.summary.test": "テストモード",- "bills.summary.turnOn": "Stripeは接続済みです({mode})。請求をオンにしてください。","bills.suspendReason": "{reason, select, admin {管理者により停止} payment {支払い失敗により停止} dispute {異議申し立てにより停止} early_fraud_warning {不正利用の早期警告により停止} other {停止中}}","bills.tab.bills": "請求","bills.tab.events": "Stripeイベント","bills.tab.overview": "概要","bills.tab.review": "審査","bills.tab.rules": "料金とルール",- "bills.tab.signup": "登録",- "bills.tab.stripe": "Stripe","bills.tax.confirmOff": "Stripe Taxをオフにする","bills.tax.confirmOn": "Stripe Taxをオンにする","bills.tax.confirmText": "すべてのサーバー管理者にメールが届きます。",@@ -842,7 +817,6 @@"calendarTools.mode.ownKey": "独自のキー","calendarTools.offState": "オフ:事業者には表示されません。","callQuality.alwaysOn": "常にオン",- "callQuality.description": "アシスタントが選択できる品質です。","callQuality.descriptionBilling": "アシスタントが選択できる品質です。料金は<link>請求</link>で設定します。","callQuality.hideModels": "既定のモデルを隠す","callQuality.languageModel": "言語モデル",@@ -1107,10 +1081,7 @@"overview.people.users": "{count, plural, other {ユーザー<b>#</b>人}}","overview.people.workspaces": "{count, plural, other {ワークスペース<b>#</b>件}}","overview.stat.calls7d": "通話数、7日間",- "overview.stat.callsToday": "今日の通話数",- "overview.stat.callsTodayNote": "UTCの午前0時から","overview.stat.costNote": "プロバイダーの定価での概算",- "overview.stat.minutesMonth": "今月{count, number}","overview.what": "概要","partners.approve": "承認","partners.approveTip": "{name}を承認",@@ -1185,7 +1156,6 @@"partners.tabAll": "すべて","partners.tabWaiting": "承認待ち","partners.tabs": "表示するパートナー",- "prompt.autoSaveHint": "入力するとテキストを変更できます。パートから離れると保存、Escで元に戻す、⌘↵ですぐに保存します。","prompt.collapse": "このセクションを折りたたむ","prompt.defaultChanged": "編集後に既定値が変更されました","prompt.defaultChangedHint": "新しいリリースで、このパートの既定のテキストが変更されました。あなたの編集は引き続き使われます。下の既定値と比較してください。",@@ -1202,7 +1172,6 @@"prompt.parts": "{count, plural, other {#パート}}","prompt.pieceLabel": "このパートのテキスト","prompt.reset": "既定値にリセット",- "prompt.saved": "保存しました","prompt.section.ai": "AIであること","prompt.section.booking": "予約","prompt.section.call": "この通話について",@@ -1215,7 +1184,6 @@"prompt.section.rules": "ルール","prompt.section.tone": "話し方","prompt.section.tools": "ツール",- "prompt.unsaved": "未保存の変更があります。パートから離れると保存、Escで元に戻します。","prompt.variable.all": "すべての言語","prompt.variable.calendars": "カレンダー","prompt.variable.caller": "発信者の名前",diff --git a/packages/i18n/locales/pt-BR/admin.json b/packages/i18n/locales/pt-BR/admin.jsonindex 2d898f93..192dd5c5 100644--- a/packages/i18n/locales/pt-BR/admin.json+++ b/packages/i18n/locales/pt-BR/admin.json@@ -376,7 +376,6 @@"billing.help": "Cobre os espaços de trabalho deste servidor pela sua própria conta do Stripe. Desativado por padrão: nada é cobrado até ser ativado.","billing.liveMode": "Modo real: cartões reais são cobrados assim que a cobrança é ativada.","billing.liveRefused": "Esta é uma instalação de desenvolvimento: chaves reais do Stripe são recusadas. Use uma chave de teste.",- "billing.notConnected": "Primeiro conecte o Stripe em Provedores (chave secreta e segredo de assinatura do webhook) para ativar a cobrança.","billing.switch": "Cobrar os espaços de trabalho pelo Stripe","billing.testMode": "Modo de teste: o Stripe não cobra nada.","bills.action.cap": "Limite de recargas…",@@ -634,11 +633,9 @@"bills.rules.group.minutes.text": "O preço por minuto de cada nível e os minutos que cada plano inclui.","bills.rules.group.plans": "Planos e adicionais","bills.rules.group.plans.text": "Quanto custam um espaço de trabalho, um parceiro e um número extra, antes dos impostos.",- "bills.rules.group.tax": "Impostos","bills.rules.group.trial": "Teste grátis","bills.rules.group.trial.text": "Quanto tempo dura o teste e quantas chamadas ele atende ao mesmo tempo.","bills.rules.ignored": "Valores armazenados fora do intervalo são ignorados e usam o padrão: {fields}.",- "bills.rules.lede": "{count, plural, =0 {Todas as regras estão no valor padrão.} one {# regra difere do padrão.} many {# regras diferem do padrão.} other {# regras diferem do padrão.}} Os preços são em dólares americanos, cobrados pela sua própria conta do Stripe. Um campo vazio usa o valor padrão.","bills.rules.levelFactor": "Chamadas {level}: minutos incluídos usados por minuto","bills.rules.levelFactor.help": "A rapidez com que uma chamada {level} usa os minutos incluídos: 1 usa um minuto incluído por minuto, 2 usa dois. Se ficar vazio, as chamadas {level} nunca usam minutos incluídos; são sempre pagas.","bills.rules.levelName.premium": "Premium",@@ -659,8 +656,6 @@"bills.search": "Buscar faturas","bills.selfServe.closed.billing": "O cadastro está ativado, mas fechado: a cobrança pelo Stripe não está em vigor. Ative-a em <link>Cobrança › Stripe</link>.","bills.selfServe.closed.botCheck": "O cadastro está ativado, mas fechado: a verificação contra bots (Cloudflare Turnstile) não tem chaves. Ninguém consegue se cadastrar até você adicioná-las em <link>Provedores › Verificação contra bots</link>.",- "bills.selfServe.help": "Qualquer pessoa pode se cadastrar e iniciar um período de teste sozinha. Desativado por padrão: então só as pessoas que você adicionar podem.",- "bills.selfServe.needsBilling": "Precisa primeiro da cobrança pelo Stripe (Cobrança › Stripe).","bills.selfServe.off": "Desativar","bills.selfServe.offText": "Novos cadastros param; quem já se cadastrou mantém seus espaços de trabalho. Todos os administradores do servidor recebem um e-mail.","bills.selfServe.offTitle": "Desativar o cadastro livre",@@ -669,11 +664,9 @@"bills.selfServe.onTitle": "Ativar o cadastro livre","bills.selfServe.openNow": "Qualquer pessoa pode se cadastrar e iniciar um teste agora.","bills.selfServe.state.closed": "Fechado",- "bills.selfServe.state.open": "Aberto","bills.selfServe.switch": "Cadastro livre","bills.selfServe.termsMissing": "O cadastro precisa primeiro dos seus termos de serviço e da sua política de privacidade: defina {vars} no ambiente do servidor e reinicie-o.","bills.selfServe.termsMissingOn": "O cadastro está ativado, mas fechado: defina {vars} no ambiente do servidor e reinicie-o. Ninguém pode iniciar um plano sem termos para aceitar.",- "bills.selfServe.title": "Cadastro","bills.selfServe.turnedOff": "O cadastro livre está desativado","bills.selfServe.turnedOn": "O cadastro livre está ativado","bills.signupRules.blockedDomains": "Domínios de e-mail bloqueados",@@ -733,40 +726,22 @@"bills.status.suspendTitle": "Suspender esta fatura","bills.status.suspended": "Suspensa","bills.status.trialing": "Em teste",- "bills.stripe.keysWhere": "As chaves do Stripe são conectadas em <link>Provedores › Cobrança</link>. A cobrança funciona assim que elas estiverem lá e esta chave estiver ativada.",- "bills.stripe.switchTitle": "Chave de cobrança","bills.summary.billCount": "{count, plural, =0 {Nenhuma ainda} one {#, nenhuma em débito} many {#, nenhuma em débito} other {#, nenhuma em débito}}","bills.summary.eventsOk": "Todos processados","bills.summary.eventsStuck": "{count, plural, one {# precisa de atenção} many {# precisam de atenção} other {# precisam de atenção}}","bills.summary.eventsWaiting": "{count, plural, one {# aguarda processamento.} many {# aguardam processamento.} other {# aguardam processamento.}}","bills.summary.held": "{count, plural, one {# retida} many {# retidas} other {# retidas}}","bills.summary.label": "Status da cobrança",- "bills.summary.live": "modo real",- "bills.summary.liveRefused": "Chave real recusada","bills.summary.newTrials": "{count, plural, =0 {Nenhum teste novo nos últimos 7 dias.} one {# teste novo nos últimos 7 dias.} many {# testes novos nos últimos 7 dias.} other {# testes novos nos últimos 7 dias.}}",- "bills.summary.notConnected": "Não conectado","bills.summary.nothingHeld": "Nada retido",- "bills.summary.off": "Desativada",- "bills.summary.on": "Ativada, {mode}","bills.summary.owing": "{count, plural, one {# em débito} many {# em débito} other {# em débito}}","bills.summary.owingLine": "{pastDue} vencidas, {suspended} suspensas.",- "bills.summary.paused": "Pausada",- "bills.summary.signup.billing": "Ativado, mas a cobrança pelo Stripe não está em vigor.",- "bills.summary.signup.botCheck": "Ativado, mas a verificação contra bots não tem chaves.",- "bills.summary.signup.switchedOff": "Desativado: só as pessoas que você adicionar podem entrar.",- "bills.summary.signup.terms": "Ativado, mas os termos e a política de privacidade não estão definidos.",- "bills.summary.taxOff": "O Stripe Tax está desativado.",- "bills.summary.taxOn": "O Stripe Tax está ativado.",- "bills.summary.test": "modo de teste",- "bills.summary.turnOn": "O Stripe está conectado ({mode}). Ative a cobrança.","bills.suspendReason": "{reason, select, admin {Suspensa por um administrador} payment {Suspensa por falha no pagamento} dispute {Suspensa por uma contestação} early_fraud_warning {Suspensa por um alerta antecipado de fraude} other {Suspensa}}","bills.tab.bills": "Faturas","bills.tab.events": "Eventos do Stripe","bills.tab.overview": "Visão geral","bills.tab.review": "Revisão","bills.tab.rules": "Preços e regras",- "bills.tab.signup": "Cadastro",- "bills.tab.stripe": "Stripe","bills.tax.confirmOff": "Desativar o Stripe Tax","bills.tax.confirmOn": "Ativar o Stripe Tax","bills.tax.confirmText": "Todos os administradores do servidor recebem um e-mail.",@@ -842,7 +817,6 @@"calendarTools.mode.ownKey": "Chave própria","calendarTools.offState": "Desativado: as empresas não o veem.","callQuality.alwaysOn": "Sempre ativado",- "callQuality.description": "O que os assistentes podem escolher.","callQuality.descriptionBilling": "O que os assistentes podem escolher. Os preços são definidos em <link>Cobrança</link>.","callQuality.hideModels": "Ocultar modelos padrão","callQuality.languageModel": "Modelo de linguagem",@@ -1107,10 +1081,7 @@"overview.people.users": "{count, plural, one {<b>#</b> usuário} many {<b>#</b> usuários} other {<b>#</b> usuários}}","overview.people.workspaces": "{count, plural, one {<b>#</b> espaço de trabalho} many {<b>#</b> espaços de trabalho} other {<b>#</b> espaços de trabalho}}","overview.stat.calls7d": "Chamadas, 7 dias",- "overview.stat.callsToday": "Chamadas hoje",- "overview.stat.callsTodayNote": "Desde a meia-noite UTC","overview.stat.costNote": "Aproximado, pelos preços de tabela dos provedores",- "overview.stat.minutesMonth": "{count, number} neste mês","overview.what": "a visão geral","partners.approve": "Aprovar","partners.approveTip": "Aprovar {name}",@@ -1185,7 +1156,6 @@"partners.tabAll": "Todos","partners.tabWaiting": "Aguardando aprovação","partners.tabs": "Parceiros exibidos",- "prompt.autoSaveHint": "Digite para alterar o texto. Saia do trecho para salvar, Esc para desfazer, ⌘↵ para salvar agora.","prompt.collapse": "Recolher esta seção","prompt.defaultChanged": "Padrão alterado desde sua edição","prompt.defaultChangedHint": "Uma versão mais nova alterou o texto padrão deste trecho. Sua edição continua em uso. Compare-a com o padrão abaixo.",@@ -1202,7 +1172,6 @@"prompt.parts": "{count, plural, one {# trecho} many {# trechos} other {# trechos}}","prompt.pieceLabel": "Texto deste trecho","prompt.reset": "Redefinir para o padrão",- "prompt.saved": "Salvo","prompt.section.ai": "Ser uma IA","prompt.section.booking": "Agendamentos","prompt.section.call": "Sobre esta chamada",@@ -1215,7 +1184,6 @@"prompt.section.rules": "Regras","prompt.section.tone": "Tom","prompt.section.tools": "Ferramentas",- "prompt.unsaved": "Alteração não salva. Saia do trecho para salvar, Esc para desfazer.","prompt.variable.all": "todos os idiomas","prompt.variable.calendars": "agendas","prompt.variable.caller": "nome de quem liga",