-
Notifications
You must be signed in to change notification settings - Fork 144
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: Adding download count badge to sidebar #1552
Conversation
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.
This feature needs to be guarded behind isElectron
flag.
Since ElectronDownloadStore doesn't populate downloads if it's not running in Electron context I think we don't need it since |
I fixed this issue for your previous PR in #1521. This is also why you see all playwright tests failing. |
Wouldn't it be more future-proof to update |
I would say we actually want to let it fail if anything not in electron environment tries to call useElectronDownloadStore. At callsite src/hooks/sidebarTabs/modelLibrarySidebarTab.ts we do want future dev know that the badge is only displayed for electron environment, while now this silently depends on the fact that empty downloads just don't show up. |
Screen.Recording.2024-11-15.074946.mp4