feat(FN-721): default QuickEntryBox to collapsed state
- Change QuickEntryBox initial state from expanded to collapsed - Remove unused clearTasks/refreshTasks exports from useTasks hook - Update QuickEntryBox tests for collapsed-by-default behavior - Remove obsolete useTasks clearTasks/refreshTasks tests
This commit is contained in:
@@ -66,10 +66,10 @@ export function QuickEntryBox({ onCreate, addToast, tasks = [], availableModels,
|
||||
const [isDisclosureExpanded, setIsDisclosureExpanded] = useState(() => {
|
||||
if (typeof window !== "undefined") {
|
||||
const saved = localStorage.getItem(DISCLOSURE_STORAGE_KEY);
|
||||
// Default to true (expanded) for backward compatibility - only collapse if explicitly set to "false"
|
||||
return saved !== "false";
|
||||
// Default to collapsed — only expand if user explicitly saved "true"
|
||||
return saved === "true";
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
});
|
||||
const textareaRef = useRef<HTMLTextAreaElement>(null);
|
||||
const justResetRef = useRef(false);
|
||||
|
||||
Reference in New Issue
Block a user