From 9ebc2ee5fe841bca531bf0eacb79fd2d3e64258e Mon Sep 17 00:00:00 2001 From: Brian Kirkpatrick Date: Wed, 4 Mar 2026 17:46:54 -0800 Subject: [PATCH] removing tasks from this branch --- tasks.md | 60 -------------------------------------------------------- 1 file changed, 60 deletions(-) delete mode 100644 tasks.md diff --git a/tasks.md b/tasks.md deleted file mode 100644 index edd6904..0000000 --- a/tasks.md +++ /dev/null @@ -1,60 +0,0 @@ -# Tasks & Issues - -## 1. Critical Issues - -- [ ] **1.1 Fix missing `del` import in store/index.js** - - Line 3 imports `get, set` from idb-keyval but `del` is used on line 13 - - Add `del` to the import statement - - This will cause a ReferenceError when removeItem is called - -- [ ] **1.2 Fix hydration flag initialization** - - The `onRehydrateStorage` callback uses `store.setState()` before `store` is fully initialized - - Creates a circular reference issue preventing app from loading - - **Options:** - - A) Initialize `_hydrated: true` by default (simplest) - - B) Use Zustand's persist middleware built-in hydration detection - - C) Move hydration callback outside store creation - -- [ ] **1.3 Consolidate duplicate storage implementation** - - Storage is defined in both `store/index.js` AND `store/middleware/persistence.js` - - The middleware file exports `idbStorage` but it's not being used - - **Decision needed:** Use one or the other, not both - -## 2. Architectural Improvements - -- [ ] **2.1 Add error handling** - - Add try/catch blocks around IndexedDB operations - - Implement fallback if IndexedDB fails or is unavailable - - Add user feedback for errors (toast notifications?) - -- [ ] **2.2 Add partialize option to persist middleware** - - Currently saves ALL state including `_hydrated` flag and `route` - - Should use `partialize: (state) => ({ user: state.user, items: state.items })` - - Prevents unnecessary data in IndexedDB - -- [ ] **2.3 Add basic CSS reset to index.html** - - No base styles, margins, or font settings currently - - Consider adding minimal reset or normalize.css - -- [ ] **2.4 Add loading states for async operations** - - No loading indicators for add/remove item operations - - Consider adding optimistic updates - -## 3. Nice to Have - -- [ ] **3.1 Add TypeScript types** (optional) - - JSDoc comments for better IDE support - - Or migrate to .ts files with no-build setup - -- [ ] **3.2 Add cross-tab synchronization** - - README mentions optional `sync.js` middleware - - Implement BroadcastChannel for cross-tab state sync - -- [ ] **3.3 Add route history management** - - Integrate with browser history API - - Support back/forward navigation - -- [ ] **3.4 Add unit tests** - - Test store actions and selectors - - Test component rendering - - Test persistence layer