You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on issue #4 , I noticed that the notes endpoint doesn't provide information about which folder a note belongs to. Currently, we have to iterate through all folders on the front-end to find this relationship.
Proposed Change:
Add a folderId (or parentFolder) field to the Note object in the API response:
{
"_id": "69b0254a6da54bc49641ae1f",
"title": "My Note",
"folderId": "69b01d086da54bc49641adde", // New field
...
}
Benefits:
Performance: Eliminates the need for complex searches on the client side.
Simpler Logic: Reduces hooks (like useEffect and Context cross-referencing) in front-end components.
While working on issue #4 , I noticed that the notes endpoint doesn't provide information about which folder a note belongs to. Currently, we have to iterate through all folders on the front-end to find this relationship.
Proposed Change:
Add a folderId (or parentFolder) field to the Note object in the API response:
Benefits: