mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
disable onboarding
This commit is contained in:
parent
37af09add8
commit
2b54733242
2 changed files with 4 additions and 2 deletions
|
|
@ -11,11 +11,12 @@ import { getModelCapabilities, ollamaRecommendedModels } from '../../../../commo
|
||||||
import { ChatMarkdownRender } from '../markdown/ChatMarkdownRender.js';
|
import { ChatMarkdownRender } from '../markdown/ChatMarkdownRender.js';
|
||||||
import { AddModelInputBox, AnimatedCheckmarkButton, ollamaSetupInstructions, OneClickSwitchButton, SettingsForProvider } from '../void-settings-tsx/Settings.js';
|
import { AddModelInputBox, AnimatedCheckmarkButton, ollamaSetupInstructions, OneClickSwitchButton, SettingsForProvider } from '../void-settings-tsx/Settings.js';
|
||||||
|
|
||||||
|
const OVERRIDE_VALUE = true
|
||||||
|
|
||||||
export const VoidOnboarding = () => {
|
export const VoidOnboarding = () => {
|
||||||
|
|
||||||
const voidSettingsState = useSettingsState()
|
const voidSettingsState = useSettingsState()
|
||||||
const isOnboardingComplete = voidSettingsState.globalSettings.isOnboardingComplete
|
const isOnboardingComplete = voidSettingsState.globalSettings.isOnboardingComplete || OVERRIDE_VALUE
|
||||||
|
|
||||||
const isDark = useIsDark()
|
const isDark = useIsDark()
|
||||||
|
|
||||||
|
|
@ -23,6 +24,7 @@ export const VoidOnboarding = () => {
|
||||||
<div className={`@@void-scope ${isDark ? 'dark' : ''}`}>
|
<div className={`@@void-scope ${isDark ? 'dark' : ''}`}>
|
||||||
<div
|
<div
|
||||||
className={`
|
className={`
|
||||||
|
hidden
|
||||||
bg-void-bg-3 fixed top-0 right-0 bottom-0 left-0 width-full h-full z-[99999]
|
bg-void-bg-3 fixed top-0 right-0 bottom-0 left-0 width-full h-full z-[99999]
|
||||||
transition-all duration-1000 ${isOnboardingComplete ? 'opacity-0 pointer-events-none' : 'opacity-100 pointer-events-auto'}
|
transition-all duration-1000 ${isOnboardingComplete ? 'opacity-0 pointer-events-none' : 'opacity-100 pointer-events-auto'}
|
||||||
`}
|
`}
|
||||||
|
|
|
||||||
|
|
@ -370,7 +370,7 @@ export const defaultGlobalSettings: GlobalSettings = {
|
||||||
autoApprove: false,
|
autoApprove: false,
|
||||||
showInlineSuggestions: true,
|
showInlineSuggestions: true,
|
||||||
includeToolLintErrors: true,
|
includeToolLintErrors: true,
|
||||||
isOnboardingComplete: true,
|
isOnboardingComplete: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GlobalSettingName = keyof GlobalSettings
|
export type GlobalSettingName = keyof GlobalSettings
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue