Skip to content
GitHub (opens in a new tab)

Integrations

Every integration on one page, with Connect, permissions and a Configure panel per tool.

Install

Not exported from agentic-ds-kit. add copies the source into your app (components/patterns/integrations/) with this contract beside it. You own the copy: replace the demo providers, rearrange or drop sections, and keep the must lines.

npx agentic-ds-kit add integrations

Usage

import { IntegrationsPattern } from "@/components/patterns/integrations";

<IntegrationsPattern onConnect={connect} onDisconnect={disconnect} onSaveMapping={save} onSyncNow={sync} onPausedChange={pause} onApiKeys={openKeys} onRequest={({ name, reason }) => request(name, reason)} />

What a copy keeps

The contract’s must lines: the kit look and accessibility. Ask before breaking one.

  • Use kit components from agentic-ds-kit for anything the kit has; the catalogue is a kit IntegrationPicker, not a local grid of Cards
  • Semantic tokens only (agentic-ds-kit/tokens.css); no raw hex, no primitive --color-* ramps
  • At most one appearance="solid" mode="primary" Button per view
  • Do not restyle kit components; change them through their props, slots, and tokens
  • Label real provider names as examples
  • Every tile ends in a status word (Connected, Needs attention, Paused, Not connected, Connecting…, Coming soon), never colour alone
  • The tile Switch applies at once and is named for its integration (Sync <name>); choices that wait for Continue or Save are Checkboxes, Selects and RadioGroups
  • Required permissions show checked, cannot be changed and say Required in words
  • Disconnect is a danger action and confirms with a kit AlertDialog
  • The Connect dialog, the Configure panel and the tile menu close on Escape and return focus to what opened them
  • A request for a provider that is already in the catalogue is not sent: the dialog says it is already available (Connect) or connected (Configure) instead
  • Render inside a main landmark; header and nav chrome use AppHeader / SideNav, and nav stays reachable on small screens (kit Drawer)

Defaults you can change

  • PageHeader subtitle: "<n> connected · <n> available · example providers"; API keys outline, Request integration the page's primary
  • IntegrationPicker hideHeader, columns 3 (three, then two under 64rem and one under 40rem of picker width), showConnected, the categories in a fixed order
  • Tile meta is the last sync for connected tiles (Synced 4m ago) and adoption for available ones (Used by 1.4k teams); Popular is the tile tag
  • A tile that needs attention also gets a page Alert above the catalogue that names what failed, with Reconnect
  • Connect: Modal md with the account Select, entity access as a card RadioGroup with a count of selected entities, then permissions as Checkboxes, Cancel and Continue to <provider>
  • Configure: Drawer lg with fullScreenBelow md; Tabs Mapping, Sync rules and Activity (with a count); record and status mapping as Tables with a Select per row
  • Disconnect sits at the start of the panel footer as a ghost danger Button; Cancel and Save mapping at the end
  • SideNav beside the page when wide; below --grid-breakpoint-md it moves into a left Drawer from AppHeader's Menu button
  • Request integration opens a Modal sm (provider name required, an optional reason) with Cancel and Send request; the empty search's Request an integration opens it with the search text as the name; Send turns the Modal into its sent state (success tone, "We’ll email you at <email>", Done, focus on Done) and the page announces it; a typed name that matches a catalogue item (by name or id, ignoring case and spaces) shows an inline info Alert under the field with Connect or Configure and hides Send and the reason; coming soon matches may still be requested

Built from

  • Component
    →

    AppHeader

    Product top chrome: brand mark on the start, centered kit Input search, trailing actions.

  • Component
    →

    SideNav

    Product side nav: brand header, icon items, optional badges, closeable; variant single (one column that closes to an icon rail) or rail-subnav (a fixed icon rail plus a SideNav.SubNav column with the picked parent's rows).

  • Component
    →

    Drawer

    Edge panel for secondary tasks.

  • Component
    →

    PageHeader

    Top-of-page title with optional Breadcrumb trail, subtitle, actions, page Tabs, a profile Avatar and a decorative cover.