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:
gsxdsm
2026-04-02 18:48:41 -07:00
parent e701e7d900
commit 39c4ca15ac
2 changed files with 77 additions and 130 deletions

View File

@@ -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);