Compare commits

..

1 Commits

Author SHA1 Message Date
Thomas Kosiewski 0637587eb5 test(site): add Debug panel Storybook stories 2026-04-11 12:54:14 +02:00
3 changed files with 1243 additions and 0 deletions
@@ -19,6 +19,15 @@ const baseProps = {
desktopEnabledData: {
enable_desktop: false,
} as TypesGen.ChatDesktopEnabledResponse,
debugLoggingData: {
debug_logging_enabled: false,
forced_by_deployment: false,
} as TypesGen.ChatDebugLoggingAdminSettings,
userDebugLoggingData: {
debug_logging_enabled: false,
user_toggle_allowed: false,
forced_by_deployment: false,
} as TypesGen.UserChatDebugLoggingSettings,
workspaceTTLData: {
workspace_ttl_ms: 0,
} as TypesGen.ChatWorkspaceTTLResponse,
@@ -36,6 +45,10 @@ const baseProps = {
isSaveUserPromptError: false,
isSavingDesktopEnabled: false,
isSaveDesktopEnabledError: false,
isSavingDebugLogging: false,
isSaveDebugLoggingError: false,
isSavingUserDebugLogging: false,
isSaveUserDebugLoggingError: false,
isSavingWorkspaceTTL: false,
isSaveWorkspaceTTLError: false,
};
@@ -48,6 +61,8 @@ const meta = {
onSaveSystemPrompt: fn(),
onSaveUserPrompt: fn(),
onSaveDesktopEnabled: fn(),
onSaveDebugLogging: fn(),
onSaveUserDebugLogging: fn(),
onSaveWorkspaceTTL: fn(),
onSaveThreshold: fn(),
onResetThreshold: fn(),
@@ -161,6 +161,15 @@ const BehaviorRouteElement = () => {
}}
userPromptData={{ custom_prompt: "" }}
desktopEnabledData={{ enable_desktop: false }}
debugLoggingData={{
debug_logging_enabled: false,
forced_by_deployment: false,
}}
userDebugLoggingData={{
debug_logging_enabled: false,
user_toggle_allowed: false,
forced_by_deployment: false,
}}
workspaceTTLData={{ workspace_ttl_ms: 0 }}
isWorkspaceTTLLoading={false}
isWorkspaceTTLLoadError={false}
@@ -179,6 +188,12 @@ const BehaviorRouteElement = () => {
onSaveDesktopEnabled={fn()}
isSavingDesktopEnabled={false}
isSaveDesktopEnabledError={false}
onSaveDebugLogging={fn()}
isSavingDebugLogging={false}
isSaveDebugLoggingError={false}
onSaveUserDebugLogging={fn()}
isSavingUserDebugLogging={false}
isSaveUserDebugLoggingError={false}
onSaveWorkspaceTTL={fn()}
isSavingWorkspaceTTL={false}
isSaveWorkspaceTTLError={false}