Giter Club home page Giter Club logo

Comments (2)

SamantazFox avatar SamantazFox commented on June 13, 2024

If you add a video to a playlist, the playlist entry gets a check mark.

When you later view the same video, you will not see that you have already assigned it to a playlist. Under Playlist, you will only see the first playlist created (default).

There is no check (either client or server side) to know if playlist "P" contains a video "V" on that page. The checkmark is added on the client side when the API request behind "add to playlist" succeeded. As soon as you reload the page, that checkmark disappears.

I'm worried that adding such a check would slow down page load significantly for users with many playlists/videos....

Hint: If a video has not been assigned to a playlist, it may be better not to display a playlist (or e.g. "none") in the drop-down box at all, that way you could eliminate the need for a check mark and it would make the interface clearer and more intuitive.

By default, it shows the first playlist in the list, no matter what.
I guess you'd want a placeholder entry like that as the default?

image

from invidious.

Vertux avatar Vertux commented on June 13, 2024

There is no check (either client or server side) to know if playlist "P" contains a video "V" on that page. The checkmark is added on the client side when the API request behind "add to playlist" succeeded. As soon as you reload the page, that checkmark disappears.

That is interesting, I was not aware, that the check mark is just a temporary thing. I agree with you, if the check takes too long, this comfort feature makes no sense. In this case, it would make more sense to check if the video you want to add is already in the selected playlist and then display an info text e.g. "This video is already assigned to the playlist XY"

I guess you'd want a placeholder entry like that as the default?

Right, that was my idea, I thought it would be more intuitive and less "confusing".

from invidious.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.