fix: handle missing widgetSecrets table and add default releases repo

- getConfiguredKinds now returns [] if table doesn't exist yet
- Add homarr-labs/homarr as default releases repository (v#.#.#)
This commit is contained in:
Thomas Camlong committed 2026-06-28 08:47:09 +02:00
1 parent a56bf0f32d
commit af35a50fa0
2 files changed
+19 -6

No files matched your search

+9 -1
View File
@@ -41,7 +41,15 @@ export const { definition, componentLoader } = createWidgetDefinition("releases"
validate: z.number().min(0),
}),
repositories: factory.multiReleasesRepositories({
defaultValue: [],
defaultValue: [
{
provider: "github" as const,
identifier: "homarr-labs/homarr",
name: "Homarr",
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/homarr.png",
versionFilter: { prefix: "v", precision: 3 },
},
],
validate: z.array(
z.object({
provider: z.enum(releaseProviderKinds).optional(),