-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Number of notes in folders #616
Conversation
@laudep I've made quite lots of changes from v0.10. Do you think you can resolve the conflicts? If you don't have time, I probably start working on this from Nov 11th. |
Done 👍 |
@@ -50,6 +50,13 @@ const FolderListFragment = ({ | |||
) | |||
}, [folderPathnames, storageId, sideNavOpenedItemSet]) | |||
|
|||
const getFolderNoteCount = (folderPathname: string): number => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We cannot use this method everywhere, this will cause each folder nav item component to iterate every note for every change. But populated folders in our hook state are having folderIdSet
props. This should be useful to show number of notes in a folder.
Add numbers next to folders & tags displaying the amount of notes.
Display count for:
Solves #602