Partial Note Tabs Setup - NOT FOR PRODUCTION

This commit is contained in:
2026-03-05 19:06:45 -06:00
parent 9705a12660
commit f7b46b2017
3 changed files with 585 additions and 204 deletions
+7 -3
View File
@@ -269,6 +269,7 @@ interface TaskStore {
notes: Note[];
isNotepadMode: boolean;
quickloadTasks: string[];
noteFilter: { tags: string[]; ownedByMe: boolean };
}
// Initial empty state
@@ -295,7 +296,8 @@ export const [store, setStore] = createStore<TaskStore>({
subscribedBuckets: [],
notes: [],
isNotepadMode: false,
quickloadTasks: []
quickloadTasks: [],
noteFilter: { tags: [], ownedByMe: false }
});
export const matchesFilter = (task: Task) => {
@@ -1135,7 +1137,8 @@ export const initStore = async () => {
matrixScaleDays: prefs.matrixScaleDays || 30,
prefId: userId,
subscribedBuckets: user.subscribedBuckets || [],
quickloadTasks: prefs.quickloadTasks || []
quickloadTasks: prefs.quickloadTasks || [],
noteFilter: prefs.noteFilter || { tags: [], ownedByMe: false }
});
}
} catch (prefErr) {
@@ -2337,7 +2340,8 @@ export const syncPreferences = async () => {
uWeight: store.uWeight,
matrixScaleDays: store.matrixScaleDays,
tagDefinitions: store.tagDefinitions,
quickloadTasks: store.quickloadTasks
quickloadTasks: store.quickloadTasks,
noteFilter: store.noteFilter
};
await pb.collection('users').update(userId, {