From 5eedf782f42bc2237909a0d484a7970604a8156b Mon Sep 17 00:00:00 2001 From: erio Date: Thu, 23 Apr 2026 18:24:07 +0800 Subject: [PATCH] fix(frontend): add available_channels_enabled to PublicSettings type and defaults featureFlags.ts registry uses 'available_channels_enabled' as a public-settings key, but the PublicSettings TS type (types/index.ts) and the app store default (stores/app.ts) only had channel_monitor_enabled. Adds the missing field so pnpm build passes. --- frontend/src/stores/app.ts | 1 + frontend/src/types/index.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/frontend/src/stores/app.ts b/frontend/src/stores/app.ts index 406ccdb7..e6cd9eff 100644 --- a/frontend/src/stores/app.ts +++ b/frontend/src/stores/app.ts @@ -354,6 +354,7 @@ export const useAppStore = defineStore('app', () => { balance_low_notify_threshold: 0, channel_monitor_enabled: true, channel_monitor_default_interval_seconds: 60, + available_channels_enabled: false, } } diff --git a/frontend/src/types/index.ts b/frontend/src/types/index.ts index 6f0d9181..8bf52e9d 100644 --- a/frontend/src/types/index.ts +++ b/frontend/src/types/index.ts @@ -187,6 +187,7 @@ export interface PublicSettings { balance_low_notify_threshold: number channel_monitor_enabled: boolean channel_monitor_default_interval_seconds: number + available_channels_enabled: boolean } export interface AuthResponse {