-
Notifications
You must be signed in to change notification settings - Fork 856
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
Improve create & edit playlist UX #5226
Improve create & edit playlist UX #5226
Conversation
…how duplicate playlist message sooner
…ng a remote playlist
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.
Looks good!
suggestion (non-blocking): Could you give the same treatment for the empty playlist name case?
Just did & updated OP |
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 Pika. It's a tiny bit jarring having the empty playlist alert showing from the jump now, but maybe can switch to using the @disabled-click
+ toast route for some of our ft-button
cases. For now, this looks good.
src/renderer/components/ft-create-playlist-prompt/ft-create-playlist-prompt.vue
Outdated
Show resolved
Hide resolved
Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
Yep i agree. I suggest (maybe this isnt a good suggestion idk) that the first time the users gets to see that message is when they input something but remove the input. This way the user doesnt see it right away but does get to see it if they intentionally removed it
I like this very much but im not sure how this is relevant when copying random user playlists. Not sure if this is an issue though VirtualBoxVM_lFnHULW9wA.mp4
Should also probably happen here VirtualBoxVM_ASY528ofty.mp4FUTURE IDEA
This should also be done for creating new profiles |
I dont mean Local created playlist. I mean a random YT user created a playlist of your favorite creator. |
I see, but in that case it's still from that YT user not from the creator(s) |
Its indeed not that big of an issue but i thought i'd bring it up in case somebody thinks otherwise |
Everything LGTM aside from this behaving weird. |
Just fixed |
spacebar isnt working for me anymore |
faa05cd
to
aa774c5
Compare
Reverted, no idea what |
yes thats correct, sorry for being vague i thought the screenrec was enough |
…sage for empty/blank/duplicate input playlist name
|
Im not sure what you mean by this. Could you elaborate on this. I think I wasnt clear enough about what change I would like to see in edit mode. What I would like to see is the following, trim spaces in edit mode like how its been done in the toast message, the playlist page and inside the playlist VirtualBoxVM_83YMuWWXCv.mp4 |
Retested, still seeing the spaces here after i created the playlist VirtualBoxVM_Qd23ruikXx.mp4 |
Ah you're correct this is existing behavior. Im so confused rn but ill re-review all the changes for the sake of my sanity |
@PikachuEXE VirtualBoxVM_lV8V8TRdIT.mp4VirtualBoxVM_7hMvrfjxXJ.mp4VirtualBoxVM_YNKyaT3uYp.mp4 |
Sorry I totally forgot enter can do so many things |
<ft-flex-box> | ||
<ft-button | ||
:label="$t('User Playlists.CreatePlaylistPrompt.Create')" | ||
:disabled="playlistPersistenceDisabled" |
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.
thought/question: I have no idea how Vue knows to make the underlying button disabled when there doesn't seem to be a prop for this in our ft-button
class, but it does.
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.
Vue calls that feature "fallthrough attributes", if the component doesn't have a prop for the attribute, it adds the attribute to the root/top-level HTML element inside that component.
Vue 3 has an entire docs page on it, but it also describes Vue 3 specific behaviour so it's not that useful for us yet, Vue 2's docs only have an offhand mention of it (https://v2.vuejs.org/v2/api/#inheritAttrs).
@@ -33,26 +33,45 @@ export default defineComponent({ | |||
newPlaylistVideoObject: function () { | |||
return this.$store.getters.getNewPlaylistVideoObject | |||
}, | |||
|
|||
playlistNameEmpty() { |
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.
note: once the Vue 3 migration is complete, this will be a great place for composable functions.
Pull Request Type
Related issue
Description
It should not show error message when got same name as self (when you press edit and changed nothing)
Screenshots
Testing
ensure cannot create playlist if playlist name blank (with spaces only) (and got message shown)
Input spaces around playlist name inside create playlist prompt
ensure created playlist got name trimmed
ensure cannot create playlist if another playlist with same trimmed name exists (and got message shown)
Copy local playlist, create playlist - unchanged
Copy remote playlist, create playlist - ensure channel name included
Desktop
Additional context