test(site): add Debug panel Storybook stories
This commit is contained in:
@@ -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}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user