feat(beszel): add mock integration support for demo mode

Wire Beszel widgets into the mock integration pipeline so they work
with UNSAFE_ENABLE_MOCK_INTEGRATION and DEMO_MODE for demos.
This commit is contained in:
Thomas Camlong committed 2026-06-08 16:06:49 +02:00
1 parent bb96ca354f
commit 43f1613215
9 files changed
+187 -13

No files matched your search

+3 -3
View File
@@ -52,7 +52,7 @@ function mapToSystemRow(system: BeszelSystem, details: BeszelSystemDetails | nul
export const beszelSystemsRequestHandler = createCachedIntegrationRequestHandler<
BeszelSystemRow[],
"beszel",
"beszel" | "mock",
Record<string, never>
>({
async requestAsync(integration) {
@@ -77,7 +77,7 @@ export interface BeszelAlertsData {
export const beszelAlertsRequestHandler = createCachedIntegrationRequestHandler<
BeszelAlertsData,
"beszel",
"beszel" | "mock",
{ includeHistory: boolean; maxHistoryItems: number }
>({
async requestAsync(integration, input) {
@@ -105,7 +105,7 @@ export interface BeszelStatsData {
export const beszelStatsRequestHandler = createCachedIntegrationRequestHandler<
BeszelStatsData,
"beszel",
"beszel" | "mock",
{ systemId: string; timePeriod: string; includeDocker: boolean }
>({
async requestAsync(integration, input) {