-
-
Notifications
You must be signed in to change notification settings - Fork 127
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] Create "Add current track" button in playlist view #560
base: development
Are you sure you want to change the base?
Conversation
fix dependency list Add success toast
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This adds a feature similar to what is mentioned in #556 |
title: t('error.genericError', { postProcess: 'sentenceCase' }), | ||
}); | ||
}, | ||
}, |
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.
You should move the toast.success
to onSuccess
here
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.
Thanks for the commit! A few other thoughts:
- This doesn't consider duplicates (e.g. adding the same song multiple times)
- The new icon isn't quite intuitive, maybe it'd be worthwhile to remove the delay for tooltip (or another icon)
I'm also not sure if this is necessarily appropriate period, but I'll defer to @jeffvli for that.
const base = { defaultFullPlaylist, handlePlay: handlePlayPlaylist }; | ||
const base = { | ||
defaultFullPlaylist, | ||
handleAdd: handleAddCurrent, |
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 should not be enabled for Navidrome shared playlists (only the owner can change them)
I'm enjoying using Feishin as my music player for my library. I thought it would be nice to add a "Add current track" button to the playlist sidebar. That way, when a song is playing, I can quickly add it to as many playlists as I feel like it belongs in.
Currently, I have it hiding the button if the playlist has rules (ie, a smart playlist). You can add a song to a shared playlist, but if you don't have (admin) permission, it throws an error toast.
This also allows adding duplicates of a song to a playlist, so a toggle somewhere to disable duplicates could be a nice feature.
I'm not a React dev and haven't really contributed to open source, so if there's any issues please let me know! I think I did a decent job, but I'm always looking for ways to make my code better.