Integration settings
One integration's status and last sync, the sync error with Retry, sync settings, and Disconnect kept away from Save.
Install
Not exported from agentic-ds-kit. add copies the source into your app (components/patterns/integration-settings/) with this contract beside it. You own the copy: replace the demo data, rearrange or drop sections, and keep the must lines.
Usage
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; no local cousins (tables, dialogs, rows, rules, charts)
- 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
- Options that wait for Save are Checkboxes; use Switch only for settings that apply at once
- Wrap every setting in Field (label, hint and control wiring); group them in a FieldSet
- Disable the FieldSet while saving and while access needs reauth
- Disconnect sits outside the settings form, in its own Section below it
- Disconnect is a danger action and confirms with a kit AlertDialog; Cancel returns focus to Disconnect
- Connection status is a word in a kit Badge; syncing, error and expired access are kit Alerts
- When access expires, Reconnect is the solid primary and Save steps down to outline
- Render inside a main landmark (wrap the pattern, or your page content, in <main>); header and nav chrome, if any, use AppHeader / SideNav (or other header / nav landmarks) and nav stays reachable on small screens
Defaults you can change
- Section with the provider name, the account as its description, and Ask in its actions
- Connection Card: status Badge (word plus icon), last sync, synced counts and next sync as plain text, Sync now in the header
- A sync error is an Alert that names what failed, with Retry and View invoices as its actions
- Sync settings Card: labels on top, Selects at md 36, two columns that stack in a narrow column
- Save changes submits the form; ⌘/Ctrl+S saves too
- Scopes are one plain sentence under the options
- Disconnect sits --space-10 below the settings Card; the AlertDialog opens on Keep connected
- Not connected shows a kit Empty with Connect
Built from
Related
- Component
Section
Grouped page block with optional heading, description, and actions.
- Component
Alert
Inline status banner that stays on the page.
- Component
FieldSet
Semantic group of fields with a legend and optional description.
- Component
Field
One labeled control with optional hint and an error or success message.