feat: rail items can show a status dot (Plugin-Sync#5)

This commit is contained in:
LukeGus committed 2026-10-29 12:55:10 -05:00
1 parent 8d26c716b4
commit e292462b38
2 files changed
+6

No files matched your search

+1
View File
@@ -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
+5
View File
@@ -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 {