default to concise tools in GUI (#2475)
This commit is contained in:
@@ -2,7 +2,7 @@ import { useEffect, useState } from 'react';
|
|||||||
import { all_response_styles, ResponseStyleSelectionItem } from './ResponseStyleSelectionItem';
|
import { all_response_styles, ResponseStyleSelectionItem } from './ResponseStyleSelectionItem';
|
||||||
|
|
||||||
export const ResponseStylesSection = () => {
|
export const ResponseStylesSection = () => {
|
||||||
const [currentStyle, setCurrentStyle] = useState('detailed');
|
const [currentStyle, setCurrentStyle] = useState('concise');
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const savedStyle = localStorage.getItem('response_style');
|
const savedStyle = localStorage.getItem('response_style');
|
||||||
@@ -12,6 +12,10 @@ export const ResponseStylesSection = () => {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error parsing response style:', error);
|
console.error('Error parsing response style:', error);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// Set default to concise for new users
|
||||||
|
localStorage.setItem('response_style', 'concise');
|
||||||
|
setCurrentStyle('concise');
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user