Files
paseo/plugin-examples/settings/index.client.tsx
T
Mohamed Boudra ae80ec4252 Let plugins contribute settings screens (#4357)
* feat(plugins): contribute settings screens and shared controls

* fix(plugins): localize settings and verify shared UI consumers

* test(composer): unmount draft test roots after each case

* test(app): keep launch terminals alive until cleanup

The fixed ten-second profile lifetime could expire before a busy CI browser attached or finished revisiting the composer. Keep the real process waiting for input until project teardown terminates it.

* test(server): await the initial snapshot before a buffered ref event

Watcher setup can read checkout facts before the initial refresh publishes a snapshot. Wait for publication before injecting the event so the test consistently exercises a second refresh.
2026-09-06 10:22:26 +02:00

22 lines
561 B
TypeScript

import type { PluginClientContext } from "@getpaseo/plugin";
import { DisplaySettings } from "./client/display-settings";
export default function contribute(client: PluginClientContext) {
client.addSettingsScreen({
id: "display",
title: "Display",
icon: "SlidersHorizontal",
Component: DisplaySettings,
});
client.addCommandCenterItem({
id: "settings",
title: "Configure agent monitor",
icon: "Settings",
context: "global",
onSelect({ openSettings }) {
openSettings("display");
},
});
return () => {};
}