Integration status list — Settings block
Freesettings-integration-status-list · for app, settings, developers pages
Integration status list
Connected services with the state their last check found, a degraded one explained
Documentation
Installation
One command copies the block into your project with the shadcn CLI (the registry is set once: Installation).
pnpm dlx shadcn-vue@latest add @trame/settings-integration-status-listUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import SettingsIntegrationStatusList from '@/components/trame/blocks/settings/settings-integration-status-list.vue'
const props = {
title: "Integrations",
subtitle: "The services connected to the workshop and their status at the last check.",
items: [
{
id: "pay",
name: "Card payments",
description: "Collects store orders and refunds returns.",
state: "operational",
stateLabel: "Operational",
lastEvent: "Last payment received at 9:12 a.m.",
figure: "212 ms",
connected: true
},
{
id: "ship",
name: "Parcel Carrier",
description: "Prints labels and tracks packages.",
state: "degraded",
stateLabel: "Degraded",
lastEvent: "Incident opened at 8:40 a.m. at the carrier",
figure: "1.8 s",
connected: true,
incident: {
summary: "Label creation is slowed down.",
impact: "Labels are arriving late; orders are still being recorded.",
estimate: "Back to normal around 11:30 a.m.",
queued: "14 labels in the queue"
}
}
],
actions: {
connect: "connect",
disconnect: "disconnect",
notify: "notify",
open: "integration"
}
}
</script>
<template>
<SettingsIntegrationStatusList v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe page’s heading ("Integrations") |
| subtitle | string | Wordsone line under the title |
| items* | Item[] | Datathe services and what their last check says |
| actions | Actions | the page actions the block runs, each described below |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Item items[] · 11 props
| Prop | Type | Description |
|---|---|---|
| id* | string | number | the item’s id |
| name* | string | Wordsthe service ("Stripe", "Sendcloud") |
| description | string | Wordswhat it does for the merchant, one line |
| logo | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| state* | 'operational' | 'degraded' | 'down' | 'unknown' | what the last check found |
| stateLabel* | string | Wordsthe state in words ("Operational", "Layered cut") |
| lastEvent | string | Wordsthe last event or incident, as the check reports it ("Last synced at 09:12") |
| figure | string | Wordsa short figure from the check ("212 ms") |
| checked | string | Wordsthe age of the check, when stale ("checked 3 h ago") |
| incident | Incident | a current problem with the integration |
| connected | boolean | connected to the shop; for the catalogue |
Incident items[].incident · 4 props
| Prop | Type | Description |
|---|---|---|
| summary* | string | Wordswhat is wrong |
| impact | string | Wordswhat it changes for the merchant |
| estimate | string | Wordsthe provider’s own estimate |
| queued | string | Wordshow many items wait ("14 orders in the queue") |
Actions actions · 4 props
| Prop | Type | Description |
|---|---|---|
| connect | string | Actiona named action of the page |
| disconnect | string | Actiona named action of the page |
| notify | string | Actionbe told when a degraded service recovers |
| open | string | Actionthe page of a service |
Options options · 2 props
| Prop | Type | Description |
|---|---|---|
| empty | string | Wordswhat an empty list says |
| mood | 'inverse' | 'brand' | 'warm' | 'tint' | string | a band of the page that redefines the theme surfaces inside it |
What it asks your app for
The block never knows your app: it asks it, through one context provided once, where its links lead, what its actions do, how a price reads and which words to say (The host context).
| Member | What it is for |
|---|---|
| href | the address an action leads to, or null to hide what leads there |
| act | runs a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error } |
| can | whether the page has this action |
| asset | a picture’s address as your app serves it |
| Link | your router’s link component |
| cartCount | the cart badge’s number |
| cartDrawer | whether your app has a cart drawer |
| cartOpen | whether the cart drawer is open |
| label | your word for an interface key, or undefined to keep the block’s own |
The words it says itself, in English and French; label(key) replaces any of them:
| Key | English | French |
|---|---|---|
| newsletter.already | You are already subscribed. | Vous êtes déjà inscrit. |
| newsletter.done | Done: you are subscribed. | C’est noté : vous êtes inscrit. |
| newsletter.invalid | Check the email address. | Vérifiez l’adresse e-mail. |
| newsletter.tooMany | Too many attempts, try again in a moment. | Trop de tentatives, réessayez dans un moment. |
Features
- Every word in the server HTML
- Same markup in Vue and React
- Theme tokens only: every theme, light and dark
- Shows what you give it, invents nothing
- No motion; still under reduced motion
- Real buttons and links, a visible focus
- Asks your app through actions:
actions.connect,actions.disconnect,actions.notify,actions.open - Reads
integrationsfrom your app
A settings section, for app, settings, developers pages; it uses @lucide/vue, class-variance-authority, clsx, reka-ui, tailwind-merge.
Built with
The components this block is made of; each one installs on its own too.
More settings blocks
- Domain setup compact: A domain already set up among other settings: one line with its name, status and "Verify", the records folded under a disclosure, open while the domain is not verified.
- Domain setup steps: Right after the person adds a domain, or someone who has never edited DNS: a numbered guide, first the records to add one by one, then the check.
- Domain setup table: A domain’s settings page: the domain and its status in a header with "Verify", then every record as a row of a table (type, name, value to copy, status), turned into cards on a phone.
- Integration requests request board: let people ask for a tool and vote on what to connect next.
- Integration settings keys webhooks: what developers manage: masked API keys to rotate or revoke and the webhook endpoints.
- Key list register: A key register with display prefixes, scopes and usage dates for the merchant’s own keys only.
- Language coverage ledger: A language progress ledger beside the selected language’s keys, using the app’s own counts only.
- Layout directory: Section tiles above a focused form for settings that need clear descriptions before opening.