feat(instance): make the status page URL configurable (#1159)

This commit is contained in:
Tarek
2026-09-16 15:20:37 +02:00
committed by GitHub
parent 7412ec3395
commit f753659899
58 changed files with 1192 additions and 904 deletions
@@ -478,6 +478,8 @@ const AppPublicConfigResponse = z.object({
wordmark_url: z.string().nullable(),
favicon_url: z.string().nullable(),
theme_color: z.string().nullable(),
status_page_url: z.string().nullable(),
status_page_incident_history_url: z.string().nullable(),
}),
setup: z.object({
configured: z.boolean(),
@@ -501,6 +503,8 @@ const AppPublicConfigUpdateRequest = z.object({
wordmark_url: z.string().trim().max(2048).nullish(),
favicon_url: z.string().trim().max(2048).nullish(),
theme_color: z.string().trim().max(64).nullish(),
status_page_url: z.string().trim().max(2048).nullish(),
status_page_incident_history_url: z.string().trim().max(2048).nullish(),
})
.nullish(),
setup: z
@@ -33,6 +33,11 @@ export const InstanceBrandingSchema = z
wordmark_url: z.string().nullable().describe('Optional image URL for the application wordmark'),
favicon_url: z.string().nullable().describe('Optional favicon URL for browser metadata'),
theme_color: z.string().nullable().describe('Optional browser theme color'),
status_page_url: z.string().nullable().describe('Optional public status page URL'),
status_page_incident_history_url: z
.string()
.nullable()
.describe('Optional public status page incident history URL'),
})
.describe('Branding values safe to expose to clients');
export type InstanceBranding = z.infer<typeof InstanceBrandingSchema>;