Partial Note Tabs Setup - NOT FOR PRODUCTION
This commit is contained in:
+7
-3
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user