Skip to content

The open-source AI receptionist for businesses. Answers every call, books the appointment and hands over to a person when needed. You own the code and the data.

Integrations on the shared blocks: list-page header, FilterChips, StatusMark, breadcrumb on detail pages (PR 1934)

Janik05b350994c5a
diff --git a/apps/web/src/Workspace.tsx b/apps/web/src/Workspace.tsx
index 8b710d4d..423e500e 100644
--- a/apps/web/src/Workspace.tsx
+++ b/apps/web/src/Workspace.tsx
@@ -41,6 +41,7 @@ import { NewWorkspaceDialog } from './shell/NewWorkspace.tsx'
import { newWorkspaceChoice } from './NoWorkspace.tsx'
import { openSignup } from './signup.ts'
import { Overlays, type Picker } from './shell/Overlays.tsx'
+import { PageBar } from './shell/PageBar.tsx'
import { ReportHost } from './feedback/ReportDialog.tsx'
import { useOpenReport } from './feedback/report.ts'
import { rejectionText } from './shell/rejections.ts'
@@ -81,7 +82,7 @@ import { ErrorBoundary } from './ui/ErrorBoundary.tsx'
import { useBrand } from './brand.ts'
import { setProviderAudience } from './providerAudience.ts'
import { DangerConfirmDialog } from './ui/DangerConfirmDialog.tsx'
-import { cx, Icon, Note } from './ui/kit.tsx'
+import { cx, Note } from './ui/kit.tsx'
import { useMediaQuery } from './ui/useMediaQuery.ts'
import { useT } from '@linedesk/i18n/react'
@@ -606,7 +607,13 @@ export function Workspace({ me, onSignedOut, onSessionStale, notice = null, onRe
const menu = <MenuButton open={navOpen} onOpen={() => setNavOpen(true)} badge={invites.invitations.length > 0} />
const page: Page | null = nav.route === 'calls' ? null : pages[nav.route]
return (
- <div className={cx('app', navDocked ? 'nav-docked' : navOpen && 'nav-open', navDocked && navCollapsed && 'nav-collapsed')}>
+ <div
+ className={cx(
+ 'app',
+ navDocked ? 'nav-docked' : navOpen && 'nav-open',
+ navDocked && navCollapsed && 'nav-collapsed',
+ )}
+ >
<Nav
open={navOpen || navDocked}
docked={navDocked}
@@ -648,18 +655,19 @@ export function Workspace({ me, onSignedOut, onSessionStale, notice = null, onRe
{page ? (
<>
{!page.ownHeader && (
- <div className="pagebar">
- {menu}
- {'inSettings' in page && (
- <>
- <a className="pagebar-up" href="#settings" title={t('shell.page.backToSettings', { keys: 'G S' })}>
- {pages.settings.title}
- </a>
- <Icon name="right" size={13} className="pagebar-sep" />
- </>
- )}
- <b>{page.title}</b>
- </div>
+ <PageBar
+ menu={menu}
+ up={
+ 'inSettings' in page
+ ? {
+ href: '#settings',
+ label: pages.settings.title,
+ title: t('shell.page.backToSettings', { keys: 'G S' }),
+ }
+ : undefined
+ }
+ title={page.title}
+ />
)}
<ErrorBoundary
key={nav.route}
diff --git a/apps/web/src/integrations/Integrations.tsx b/apps/web/src/integrations/Integrations.tsx
index a10de298..87c50b60 100644
--- a/apps/web/src/integrations/Integrations.tsx
+++ b/apps/web/src/integrations/Integrations.tsx
@@ -3,11 +3,14 @@
// /gmail, /outlook-mail, /api-keys, /rest-api, /mcp) or
// the place where it is set up (the assistant's webhooks and booking; #integrations/make and the like go there too); one not
// built yet shows "Coming soon", and an address with nothing behind it says so. The catalog itself is catalog.ts; API keys and
-// Zapier were Workspace settings › Developers (old links are rewritten, useRoute.ts).
+// Zapier were Workspace settings › Developers (old links are rewritten, useRoute.ts). The catalog's header is the list
+// pages' (ui/listPage.tsx: the title, Search (/) opening the field across the bar); a detail view's is the breadcrumb
+// "Integrations › Zapier" (PageBar), whose first part, like Esc, goes back to the catalog.
import type { AgentClient } from '@linedesk/actions'
import { type MessageKey, msg } from '@linedesk/i18n'
import { T, useT } from '@linedesk/i18n/react'
-import { type ChangeEvent, type ReactNode, useEffect, useMemo, useRef, useState } from 'react'
+import { type ReactNode, useEffect, useMemo, useRef, useState } from 'react'
+import { flushSync } from 'react-dom'
import { brandName } from '../brand.ts'
import { pollWhileVisible, useQuery } from '../cachedQuery.ts'
import { AgentSteps } from '../onboarding/AgentForm.tsx'
@@ -19,14 +22,19 @@ import type { ProviderId } from '../settings/calendarModel.ts'
import { Section } from '../settings/fields.tsx'
import { useWorkspaceSettings } from '../settings/settings-api.ts'
import { setPageKeys } from '../shell/keys.ts'
+import { PageBar } from '../shell/PageBar.tsx'
import { useRows } from '../store.tsx'
import { AppLink, adminLink, appLink, LinkButton } from '../ui/AppLink.tsx'
+import { FilterChip, FilterChips } from '../ui/FilterChips.tsx'
+import { LineGroup } from '../ui/FeatureLine.tsx'
import { FoldOut } from '../ui/FoldOut.tsx'
-import { Input } from '../ui/form.tsx'
+import { Card } from '../ui/form.tsx'
import { copyText } from '../ui/HelpTip.tsx'
-import { Badge, Button, cx, Kbd, Note } from '../ui/kit.tsx'
+import { Badge, Button, cx, Note } from '../ui/kit.tsx'
import { SkeletonText, useLoadState } from '../ui/LoadStates.tsx'
import { ListEmpty } from '../ui/list.tsx'
+import { PageTitle, SearchButton, SearchField } from '../ui/listPage.tsx'
+import { StatusMark } from '../ui/StatusMark.tsx'
import { ConnectedApp } from './ConnectedApp.tsx'
import {
CATALOG,
@@ -71,12 +79,15 @@ const SEARCH_ID = 'integrations-search'
const HOME = '#integrations'
type Props = {
+ /** The navigation's menu button, first in the header bar. */
+ menu: ReactNode
/** Owners and admins, also during support access: API keys and Zapier (settings:write). */
canManageKeys: boolean
toast: (text: string) => void
}
-export function Integrations({ canManageKeys, toast }: Props) {
+export function Integrations({ menu, canManageKeys, toast }: Props) {
+ const t = useT()
const place = usePlace()
const inside = place.view === 'detail' || place.view === 'missing'
// Esc in a detail view (or the note that there is none) goes back to the catalog (the catalog's own keys are in Catalog).
@@ -89,17 +100,35 @@ export function Integrations({ canManageKeys, toast }: Props) {
})
return () => setPageKeys(null)
}, [inside])
+ if (place.view === 'catalog') return <Catalog menu={menu} canManageKeys={canManageKeys} toast={toast} />
+ const title = t('settings.integrations.title')
return (
- <div className="page">
- <div className={cx('page-in st-page ig-page', place.view !== 'catalog' && 'is-detail')}>
+ <>
+ {place.view === 'detail' ? (
+ <PageBar
+ menu={menu}
+ up={{ href: HOME, label: title, title: t('settings.integrations.backTip') }}
+ title={t(nameKey(place.id))}
+ />
+ ) : (
+ <PageBar menu={menu} title={title} />
+ )}
+ <Body detail>
{place.view === 'detail' ? (
<Detail id={place.id} canManageKeys={canManageKeys} toast={toast} />
) : place.view === 'missing' ? (
<Missing section={place.section} />
- ) : place.view === 'catalog' ? (
- <Catalog canManageKeys={canManageKeys} toast={toast} />
) : null}
- </div>
+ </Body>
+ </>
+ )
+}
+
+/** The scrolling page under the header bar: the catalog's width, or a settings page's for a detail view. */
+function Body({ detail, children }: { detail?: boolean; children: ReactNode }) {
+ return (
+ <div className="page">
+ <div className={cx('page-in st-page ig-page', detail && 'is-detail')}>{children}</div>
</div>
)
}
@@ -202,10 +231,12 @@ function useFacts(canManageKeys: boolean): Facts {
/** The keys that pick a category: 0 shows all, 1 to 7 one category each (as in the chips' tooltips). */
const categoryKey = (i: number) => String(i + 1)
-function Catalog({ canManageKeys, toast }: Props) {
+function Catalog({ menu, canManageKeys, toast }: Props) {
const t = useT()
const connect = useDirectConnect(canManageKeys, toast)
const [query, setQuery] = useState('')
+ // The search field is open across the header bar (like Contacts'); closing it ends the search.
+ const [searching, setSearching] = useState(false)
const [only, setOnly] = useState<CategoryId | null>(null)
const [showFolded, setShowFolded] = useState(false)
const facts = useFacts(canManageKeys)
@@ -222,10 +253,21 @@ function Catalog({ canManageKeys, toast }: Props) {
},
)
+ // The field renders and takes the focus in the same task, so a key typed right after goes into it, not to the
+ // page's shortcuts (as in Contacts).
+ const openSearch = () => {
+ flushSync(() => setSearching(true))
+ document.getElementById(SEARCH_ID)?.focus()
+ }
+ const closeSearch = () => {
+ setSearching(false)
+ setQuery('')
+ }
+
const keys = useRef<(key: string) => boolean>(() => false)
keys.current = key => {
if (key === '/') {
- document.getElementById(SEARCH_ID)?.focus()
+ openSearch()
return true
}
if (key === '0') {
@@ -237,8 +279,8 @@ function Catalog({ canManageKeys, toast }: Props) {
setOnly(c => (c === CATEGORIES[i] ? null : CATEGORIES[i]!))
return true
}
- if (key === 'Escape' && (query || only)) {
- setQuery('')
+ if (key === 'Escape' && (searching || only)) {
+ closeSearch()
setOnly(null)
return true
}
@@ -251,87 +293,98 @@ function Catalog({ canManageKeys, toast }: Props) {
return (
<>
- <div className="page-head">
- <div>
- <h1>{t('settings.integrations.title')}</h1>
- <p>{t('settings.integrations.lede')}</p>
- </div>
+ <div className="ib-head">
+ {menu}
+ {searching ? (
+ <SearchField
+ id={SEARCH_ID}
+ value={query}
+ placeholder={t('settings.integrations.search.placeholder')}
+ label={t('settings.integrations.search.label')}
+ onChange={setQuery}
+ onClose={closeSearch}
+ escapeCloses
+ />
+ ) : (
+ <>
+ <PageTitle title={t('settings.integrations.title')} />
+ <div className="ib-right">
+ <SearchButton label={t('settings.integrations.search.label')} onClick={openSearch} />
+ </div>
+ </>
+ )}
</div>
- <div className="ig-tools">
- <Input
- id={SEARCH_ID}
- type="search"
- size="sm"
- className="ig-search"
- value={query}
- placeholder={t('settings.integrations.search.placeholder')}
- aria-label={t('settings.integrations.search.label')}
- onChange={(e: ChangeEvent<HTMLInputElement>) => setQuery(e.target.value)}
- end={<Kbd keys={['/']} />}
- />
- <div className="ig-chips" role="group" aria-label={t('settings.integrations.category.label')}>
- <Chip
- label={t('settings.integrations.category.all')}
- shortcut="0"
- on={only === null}
+ <Body>
+ <FilterChips label={t('settings.integrations.category.label')}>
+ <FilterChip
+ pressed={only === null}
+ title={t('common.withKey', { label: t('settings.integrations.category.all'), key: '0' })}
onClick={() => setOnly(null)}
- />
+ >
+ {t('settings.integrations.category.all')}
+ </FilterChip>
{CATEGORIES.map((c, i) =>
chips.includes(c) ? (
- <Chip
+ <FilterChip
key={c}
- label={t(CATEGORY_LABEL[c])}
- shortcut={categoryKey(i)}
- on={only === c}
+ pressed={only === c}
+ title={t('common.withKey', { label: t(CATEGORY_LABEL[c]), key: categoryKey(i) })}
onClick={() => setOnly(only === c ? null : c)}
- />
+ >
+ {t(CATEGORY_LABEL[c])}
+ </FilterChip>
) : null,
)}
- </div>
- </div>
- {kind && suggested.length > 0 && (
- <section className="ig-group ig-suggested" aria-labelledby="ig-cat-suggested">
- <h2 id="ig-cat-suggested">
- {t('settings.integrations.suggested.title', { kind: kindLabel(kind) })}
- <span className="ig-group-change">
- <AppLink to="#workspace/general/edit" title={t('settings.integrations.suggested.changeTip')}>
- {t('settings.integrations.suggested.change')}
- </AppLink>
- </span>
- </h2>
- <div className="k-card ig-list">
- {suggested.map(i => (
- <Row key={i.id} integration={i} status={statusById(i.id)} connect={connect} suggested />
- ))}
- </div>
- </section>
- )}
- {groups.length === 0 && folded.length === 0 ? (
- <ListEmpty>{t('settings.integrations.search.none', { query })}</ListEmpty>
- ) : (
- groups.map(g => (
- <section key={g.category} className="ig-group" aria-labelledby={`ig-cat-${g.category}`}>
- <h2 id={`ig-cat-${g.category}`}>{t(CATEGORY_LABEL[g.category])}</h2>
- <div className="k-card ig-list">
- {g.items.map(i => (
- <Row key={i.id} integration={i} status={statusById(i.id)} connect={connect} />
+ </FilterChips>
+ {kind && suggested.length > 0 && (
+ <section className="ig-group" aria-labelledby="ig-cat-suggested">
+ <LineGroup
+ as="h2"
+ id="ig-cat-suggested"
+ after={
+ <AppLink to="#workspace/general/edit" title={t('settings.integrations.suggested.changeTip')}>
+ {t('settings.integrations.suggested.change')}
+ </AppLink>
+ }
+ >
+ {t('settings.integrations.suggested.title', { kind: kindLabel(kind) })}
+ </LineGroup>
+ <Card className="ig-list">
+ {suggested.map(i => (
+ <Row key={i.id} integration={i} status={statusById(i.id)} connect={connect} suggested />
))}
- </div>
+ </Card>
</section>
- ))
- )}
- {folded.length > 0 && (
- <Folded
- count={folded.length}
- open={showFolded || groups.length === 0}
- // A search that finds only these lists them at once, with nothing to toggle.
- onToggle={groups.length === 0 ? undefined : () => setShowFolded(v => !v)}
- >
- {folded.map(i => (
- <Row key={i.id} integration={i} status={statusById(i.id)} connect={connect} />
- ))}
- </Folded>
- )}
+ )}
+ {groups.length === 0 && folded.length === 0 ? (
+ <ListEmpty>{t('settings.integrations.search.none', { query })}</ListEmpty>
+ ) : (
+ groups.map(g => (
+ <section key={g.category} className="ig-group" aria-labelledby={`ig-cat-${g.category}`}>
+ <LineGroup as="h2" id={`ig-cat-${g.category}`}>
+ {t(CATEGORY_LABEL[g.category])}
+ </LineGroup>
+ <Card className="ig-list">
+ {g.items.map(i => (
+ <Row key={i.id} integration={i} status={statusById(i.id)} connect={connect} />
+ ))}
+ </Card>
+ </section>
+ ))
+ )}
+ {folded.length > 0 && (
+ <Folded
+ count={folded.length}
+ open={showFolded || groups.length === 0}
+ // A search that finds only these lists them at once, with nothing to toggle.
+ onToggle={groups.length === 0 ? undefined : () => setShowFolded(v => !v)}
+ >
+ {folded.map(i => (
+ <Row key={i.id} integration={i} status={statusById(i.id)} connect={connect} />
+ ))}
+ </Folded>
+ )}
+ </Body>
{connect.dialog}
</>
)
@@ -375,19 +428,11 @@ function Folded({
</>
)}
</p>
- {open && <div className="k-card ig-list">{children}</div>}
+ {open && <Card className="ig-list">{children}</Card>}
</section>
)
}
-function Chip({ label, shortcut, on, onClick }: { label: string; shortcut: string; on: boolean; onClick: () => void }) {
- return (
- <button type="button" className="ig-chip" aria-pressed={on} title={`${label} (${shortcut})`} onClick={onClick}>
- {label}
- </button>
- )
-}
-
/**
* One integration as a line: mark and name on the left, its one line in the middle, its state and its button on the
* right. Only the button acts: Connect opens the provider's sign-in at once where it can (directConnect.tsx), else the
@@ -499,11 +544,12 @@ function StatusBadge({ id, status }: { id: Integration['id']; status: Status })
case 'connected': {
const counted = COUNTED[id]
return (
- <Badge tone="ok" dot>
+ <span className="ig-row-state">
+ <StatusMark state="works" label={t('settings.integrations.status.connected')} />
{counted && status.count !== undefined
? t(counted, { count: status.count })
: t('settings.integrations.status.connected')}
- </Badge>
+ </span>
)
}
case 'notConnected':
@@ -516,10 +562,12 @@ function StatusBadge({ id, status }: { id: Integration['id']; status: Status })
</Badge>
)
case 'needsAttention':
+ // Red words only next to the failing mark (design-principles.md, Status marks).
return (
- <Badge tone="danger" dot title={t('settings.integrations.status.needsAttentionTip')}>
+ <span className="ig-row-state is-bad">
+ <StatusMark state="failing" label={t('settings.integrations.status.needsAttentionTip')} />
{t('settings.integrations.status.needsAttention')}
- </Badge>
+ </span>
)
case 'ready':
return <Badge tone="outline">{t('settings.integrations.status.ready')}</Badge>
@@ -553,19 +601,14 @@ const CARD_SAYS_WHAT: ReadonlySet<DetailId> = new Set([
])
/**
- * A detail view: back to the catalog (the one way back, also Esc), the integration's header, and what is set up here.
- * The card's own action (Connect, Create key) is the screen's one primary.
+ * A detail view: the integration's header and what is set up here; the way back is the title bar's breadcrumb (also
+ * Esc). The card's own action (Connect, Create key) is the screen's one primary.
*/
function Detail({ id, canManageKeys, toast }: { id: DetailId; canManageKeys: boolean; toast: Props['toast'] }) {
const t = useT()
const integration = CATALOG.find(i => i.id === id)!
return (
<>
- <p className="ig-back">
- <AppLink to={HOME} title={t('settings.integrations.backTip')}>
- {t('settings.integrations.back')}
- </AppLink>
- </p>
<div className="ig-detail-head">
<IntegrationMark mark={integration.mark} />
<div className="ig-detail-title">
diff --git a/apps/web/src/integrations/fromIntegrations.tsx b/apps/web/src/integrations/fromIntegrations.tsx
index 3101bd9b..d09c9841 100644
--- a/apps/web/src/integrations/fromIntegrations.tsx
+++ b/apps/web/src/integrations/fromIntegrations.tsx
@@ -32,8 +32,8 @@ function unmark() {
}
/**
- * The way back to Integrations at the bottom, the same "All integrations" link as on every integration's own page; only
- * when the person came from Integrations. At the bottom, since the webhook link scrolls the page down to its card, the
+ * The way back to Integrations at the bottom ("All integrations"; Integrations' own detail pages have the breadcrumb in
+ * their title bar instead); only when the person came from Integrations. At the bottom, since the webhook link scrolls the page down to its card, the
* last one.
*/
export function BackToIntegrations() {
diff --git a/apps/web/src/integrations/integrations.css b/apps/web/src/integrations/integrations.css
index e8b000d4..2fa091de 100644
--- a/apps/web/src/integrations/integrations.css
+++ b/apps/web/src/integrations/integrations.css
@@ -1,4 +1,4 @@
-/* Integrations (#integrations): search and category chips, then a list of lines per category; detail views below. */
+/* Integrations (#integrations): category chips (FilterChips), then a list of lines per category; detail views below. */
/* The catalog is wider than other settings pages: a line has room for the name, its line and the state side by side. */
.page-in.ig-page {
max-width: 960px;
@@ -7,70 +7,10 @@
.page-in.ig-page.is-detail {
max-width: 680px;
}
-.ig-tools {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- gap: 8px 12px;
-}
-.ig-search {
- flex: 1 1 240px;
- max-width: 320px;
-}
-.ig-search input {
- min-width: 0;
-}
-/* Phone: the search takes the whole line, like the chips under it. */
-@media (max-width: 560px) {
- .ig-search {
- max-width: none;
- }
-}
-.ig-chips {
- display: flex;
- flex-wrap: wrap;
- gap: 6px;
-}
-.ig-chip {
- height: 28px;
- padding: 0 10px;
- font: inherit;
- font-size: 12.5px;
- font-weight: 500;
- color: var(--ink-muted);
- background: var(--surface);
- border: 1px solid var(--line);
- border-radius: var(--radius-full);
- cursor: pointer;
-}
-.ig-chip:hover {
- color: var(--ink);
- background: var(--surface-hover);
-}
-.ig-chip[aria-pressed="true"] {
- color: var(--surface);
- background: var(--ink);
- border-color: var(--ink);
-}
-.ig-chip:focus-visible {
- outline: 2px solid var(--focus);
- outline-offset: 2px;
-}
.ig-group {
display: grid;
gap: 8px;
}
-.ig-group h2 {
- margin: 4px 0 0;
- font-size: 12px;
- font-weight: 600;
- color: var(--ink-muted);
-}
-/* The suggested group's way to change the kind of business: quiet, after its heading. */
-.ig-group-change {
- margin-left: 8px;
- font-weight: 400;
-}
/* The ones this server does not offer: one quiet line at the end, Show lists them. */
.ig-folded {
margin-top: 4px;
@@ -138,6 +78,18 @@
justify-items: end;
gap: 12px;
}
+/* Connected, "2 Zaps", Needs attention: the StatusMark with its words; red words only next to the failing mark. */
+.ig-row-state {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
+ font-size: 12.5px;
+ color: var(--ink);
+ white-space: nowrap;
+}
+.ig-row-state.is-bad {
+ color: var(--danger);
+}
/* The one thing on a line that acts. */
.ig-row-action {
grid-column: 2;
@@ -193,16 +145,12 @@
}
/* Detail views. */
-.ig-back {
- margin: 0;
- font-size: 12.5px;
-}
.ig-detail-head {
display: flex;
align-items: center;
gap: 12px;
}
-/* The name shows here: the page bar names only the page (Integrations), and .page-head h1 is hidden app-wide. */
+/* The name, big, under the title bar's breadcrumb (Integrations › Zapier). */
.ig-detail-head h1 {
margin: 0;
font-size: 16px;
diff --git a/apps/web/src/shell/PageBar.tsx b/apps/web/src/shell/PageBar.tsx
new file mode 100644
index 00000000..839d8066
--- /dev/null
+++ b/apps/web/src/shell/PageBar.tsx
@@ -0,0 +1,29 @@
+// The title bar of a page without a header of its own: the menu, then the page's title. A page inside another one says
+// where it sits as a breadcrumb, "Settings › Assistant" or "Integrations › Zapier": the first part links back up (its
+// tooltip names the way back), the last is the page itself. Styles: `.pagebar` in styles.css.
+import type { ReactNode } from 'react'
+import { Icon } from '../ui/kit.tsx'
+
+type Up = {
+ href: string
+ label: string
+ /** The tooltip: where the link goes and its key ("All settings (G S)", "Back to all integrations (Esc)"). */
+ title: string
+}
+
+export function PageBar({ menu, up, title }: { menu: ReactNode; up?: Up; title: string }) {
+ return (
+ <div className="pagebar">
+ {menu}
+ {up && (
+ <>
+ <a className="pagebar-up" href={up.href} title={up.title}>
+ {up.label}
+ </a>
+ <Icon name="right" size={13} className="pagebar-sep" />
+ </>
+ )}
+ <b>{title}</b>
+ </div>
+ )
+}
diff --git a/apps/web/src/shell/pages.tsx b/apps/web/src/shell/pages.tsx
index 1903ce82..6551d963 100644
--- a/apps/web/src/shell/pages.tsx
+++ b/apps/web/src/shell/pages.tsx
@@ -109,7 +109,9 @@ export const pages = {
return i18n().t('shell.page.integrations')
},
sections: true,
- render: p => <Integrations canManageKeys={p.canManageKeys} toast={p.toast} />,
+ // Its own header: the catalog's title and Search (/), a detail view's breadcrumb (Integrations › Zapier).
+ ownHeader: true,
+ render: p => <Integrations menu={p.menu} canManageKeys={p.canManageKeys} toast={p.toast} />,
},
// Everything about the workspace that is not the assistant: its name, the team, numbers, recordings, export
// and leaving it (#workspace/<section>). Old #settings and #team links are rewritten (useRoute.ts).
diff --git a/apps/web/src/ui/FeatureLine.tsx b/apps/web/src/ui/FeatureLine.tsx
index ecb22f05..626f0e1f 100644
--- a/apps/web/src/ui/FeatureLine.tsx
+++ b/apps/web/src/ui/FeatureLine.tsx
@@ -129,18 +129,21 @@ export function LinkLine({ href, label, ...head }: LinkLineProps) {
* never capitals. `after`: a status in normal weight after the label; `help`: a (?) at the end.
*/
export function LineGroup({
+ id,
children,
after,
help,
as: Tag = 'h3',
}: {
+ /** For a group that names its section (`aria-labelledby`). */
+ id?: string
children: ReactNode
after?: ReactNode
help?: HelpContent
as?: 'h2' | 'h3'
}) {
return (
- <Tag className="k-line-group">
+ <Tag id={id} className="k-line-group">
{after || help ? <span>{children}</span> : children}
{after && <span className="k-line-group-after">{after}</span>}
{help && <HelpTip {...helpContent(help)} />}
diff --git a/packages/i18n/locales/de/settings.json b/packages/i18n/locales/de/settings.json
index a699239b..b4f5d28f 100644
--- a/packages/i18n/locales/de/settings.json
+++ b/packages/i18n/locales/de/settings.json
@@ -1178,7 +1178,6 @@
"integrations.folded.showTip": "Die Integrationen anzeigen, die dieser Server noch nicht anbietet",
"integrations.keyNeeded": "Lege einen API-Schlüssel in die Variable {variable}. Erstelle einen unter <link>Integrationen › API-Schlüssel</link>.",
"integrations.keys.title": "Deine Schlüssel",
- "integrations.lede": "Verbinde deinen Assistenten mit den Tools, die du schon nutzt: Automatisierungen, Kalender, dein CRM, Team-Chat und deine eigenen Programme.",
"integrations.mail.connect": "{provider} verbinden",
"integrations.mail.connectFailed": "Das Postfach konnte nicht verbunden werden. Versuch es noch einmal.",
"integrations.mail.connectTip": "{provider} öffnen, um Lesezugriff auf ein Postfach zu erlauben",
diff --git a/packages/i18n/locales/en/settings.json b/packages/i18n/locales/en/settings.json
index b7ecdf03..e86c4f9a 100644
--- a/packages/i18n/locales/en/settings.json
+++ b/packages/i18n/locales/en/settings.json
@@ -1201,7 +1201,6 @@
"integrations.folded.showTip": "Show the integrations this server does not offer yet",
"integrations.keyNeeded": "Put an API key in the variable {variable}. Create one in <link>Integrations › API keys</link>.",
"integrations.keys.title": "Your keys",
- "integrations.lede": "Connect your assistant to the tools you already use: automations, calendars, your CRM, team chat and your own programs.",
"integrations.mail.connect": "Connect {provider}",
"integrations.mail.connectFailed": "The mailbox could not be connected. Try again.",
"integrations.mail.connectTip": "Open {provider} to allow read-only access to a mailbox",
diff --git a/packages/i18n/locales/es/settings.json b/packages/i18n/locales/es/settings.json
index 92ca64a3..616dda2d 100644
--- a/packages/i18n/locales/es/settings.json
+++ b/packages/i18n/locales/es/settings.json
@@ -1178,7 +1178,6 @@
"integrations.folded.showTip": "Mostrar las integraciones que este servidor todavía no ofrece",
"integrations.keyNeeded": "Pon una clave de API en la variable {variable}. Crea una en <link>Integraciones › Claves de API</link>.",
"integrations.keys.title": "Tus claves",
- "integrations.lede": "Conecta tu asistente con las herramientas que ya usas: automatizaciones, calendarios, tu CRM, el chat de equipo y tus propios programas.",
"integrations.mail.connect": "Conectar {provider}",
"integrations.mail.connectFailed": "No se pudo conectar el buzón. Inténtalo de nuevo.",
"integrations.mail.connectTip": "Abre {provider} para permitir acceso de solo lectura a un buzón",
diff --git a/packages/i18n/locales/fr/settings.json b/packages/i18n/locales/fr/settings.json
index 372c2e0d..14bcccaa 100644
--- a/packages/i18n/locales/fr/settings.json
+++ b/packages/i18n/locales/fr/settings.json
@@ -1178,7 +1178,6 @@
"integrations.folded.showTip": "Afficher les intégrations que ce serveur ne propose pas encore",
"integrations.keyNeeded": "Mettez une clé d'API dans la variable {variable}. Créez-en une dans <link>Intégrations › Clés d'API</link>.",
"integrations.keys.title": "Vos clés",
- "integrations.lede": "Connectez votre assistant aux outils que vous utilisez déjà : automatisations, agendas, votre CRM, la messagerie d'équipe et vos propres programmes.",
"integrations.mail.connect": "Connecter {provider}",
"integrations.mail.connectFailed": "Impossible de connecter la boîte mail. Réessayez.",
"integrations.mail.connectTip": "Ouvrir {provider} pour autoriser l'accès en lecture seule à une boîte mail",
diff --git a/packages/i18n/locales/ja/settings.json b/packages/i18n/locales/ja/settings.json
index a79956a1..8e1ee0bd 100644
--- a/packages/i18n/locales/ja/settings.json
+++ b/packages/i18n/locales/ja/settings.json
@@ -1178,7 +1178,6 @@
"integrations.folded.showTip": "このサーバーでまだ提供されていない連携を表示",
"integrations.keyNeeded": "変数{variable}にAPIキーを入れてください。キーは<link>連携 › APIキー</link>で作成できます。",
"integrations.keys.title": "あなたのキー",
- "integrations.lede": "アシスタントを、すでに使っているツールとつなぎます:自動化、カレンダー、CRM、チームチャット、自社のプログラム。",
"integrations.mail.connect": "{provider}を接続",
"integrations.mail.connectFailed": "メールボックスを接続できませんでした。もう一度お試しください。",
"integrations.mail.connectTip": "{provider}を開いて、メールボックスへの読み取り専用アクセスを許可",
diff --git a/packages/i18n/locales/pt-BR/settings.json b/packages/i18n/locales/pt-BR/settings.json
index eea4038f..f9193581 100644
--- a/packages/i18n/locales/pt-BR/settings.json
+++ b/packages/i18n/locales/pt-BR/settings.json
@@ -1178,7 +1178,6 @@
"integrations.folded.showTip": "Mostrar as integrações que este servidor ainda não oferece",
"integrations.keyNeeded": "Coloque uma chave de API na variável {variable}. Crie uma em <link>Integrações › Chaves de API</link>.",
"integrations.keys.title": "Suas chaves",
- "integrations.lede": "Conecte seu assistente às ferramentas que você já usa: automações, agendas, seu CRM, chat da equipe e seus próprios programas.",
"integrations.mail.connect": "Conectar {provider}",
"integrations.mail.connectFailed": "Não foi possível conectar a caixa de e-mail. Tente de novo.",
"integrations.mail.connectTip": "Abrir {provider} para permitir acesso somente leitura a uma caixa de e-mail",