feat(beszel): add searchable system select input for widget options

Replace plain text systemId option with a dedicated beszelSystem factory
type backed by a searchable Select that fetches available systems from
the integration. Shows proper states for no integration, loading, and
no systems found.
This commit is contained in:
Thomas Camlong committed 2026-06-15 15:16:59 +02:00
1 parent e0e493e2f9
commit ed333e1cbb
5 files changed
+60 -2

No files matched your search

@@ -18,7 +18,7 @@ export const { definition, componentLoader } = createWidgetDefinition("beszelSys
integrationsRequired: true,
createOptions() {
return optionsBuilder.from((factory) => ({
systemId: factory.text({ defaultValue: "" }),
systemId: factory.beszelSystem(),
timePeriod: factory.select({
defaultValue: "1h",
options: timePeriodOptions,