From e292462b38e2883c50053e0feefbeb9e1de07652 Mon Sep 17 00:00:00 2001 From: LukeGus Date: Thu, 29 Oct 2026 12:55:10 -0500 Subject: [PATCH] feat: rail items can show a status dot (Plugin-Sync#5) --- packages/plugin-sdk/CHANGELOG.md | 1 + packages/plugin-sdk/src/frontend.ts | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/packages/plugin-sdk/CHANGELOG.md b/packages/plugin-sdk/CHANGELOG.md index 748b1daa2..10f37b08f 100644 --- a/packages/plugin-sdk/CHANGELOG.md +++ b/packages/plugin-sdk/CHANGELOG.md @@ -11,6 +11,7 @@ Plugin API 1.13.0. - `@termix-ssh/plugin-sdk/frame-host` runs one plugin view outside the shell, with core's bridge, registries and CSS, so the mobile app can show `webview` plugins - SSH transport providers get the host's owner, sync id, connection origin and local only flag in `claims` and `open`, and core's SSH relay takes a `syncId` instead of a host id - `ctx.sync.host.entities.idsOf` maps sync ids to the local ids of the user's own rows of one type +- Rail items take `useStatus` for a small ok, warning or error dot on the icon ### Fixed diff --git a/packages/plugin-sdk/src/frontend.ts b/packages/plugin-sdk/src/frontend.ts index fcab9e871..2d3d2a3dc 100644 --- a/packages/plugin-sdk/src/frontend.ts +++ b/packages/plugin-sdk/src/frontend.ts @@ -425,6 +425,11 @@ export interface RailItemContribution { * Zero or nothing shows no badge. */ useBadge?: () => number | null | undefined; + /** + * A hook for a small status dot on the icon: "ok" (green), "warning" or + * "error". Nothing shows no dot. Layouts from Termix 26.10.6 draw it. + */ + useStatus?: () => "ok" | "warning" | "error" | null | undefined; } export interface PanelProps {