-
Notifications
You must be signed in to change notification settings - Fork 951
Details | Discover: Implement mark as watched button #1060
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
base: development
Are you sure you want to change the base?
Details | Discover: Implement mark as watched button #1060
Conversation
|
i don't think that the context menu works correctly on discover page 🤔
thanks for the PR good job overall |
I fixed the context menu on discover page and ordered as "trailer - lib - watched - ratings - share" (I don't know if this was what you meant with grouping them, but if it wasn't, can you explain more or tell if there's already any example in the codebase?). |
You could create a typescript component called please for new stuff use typescript this project modular structure can be seen in new parts of the codebase like ex. the Calendar route |
|
Could you rename the |
|
There is more stuff to consider but will add comments after you apply these changes |
. |
kKaskak
left a comment
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.
mark as watched is a separate action and should not be tied to adding to library, we can mark an item as watched without adding to library explicitly
No, we can't. The action "LibraryItemMarkAsWatched" doesn't work if the video was never in the library. For some reason, if the video was added to library and removed later, you can mark as watched, probably because the item is not removed from database but flagged as "deleted" or something like that. But if it was never in the library, the action doesn't work. |
I made up here. But I didn't find how to test the changes from stremio-core on my local stremio-web :/ |
|
so you can just use this instead which will work for all items, note that this work out of the box on the details page, but not on discover since we need to load the model to access the action |
|
you can also remove padding on the trailer button on mobile devices when no label is present to align the design to the share button, so on most of the phones all meta action buttons display in one line |
. |
But this doesn't work on discover page. |
I already told you in the previous response what to do. Read it again pls if you don't understand respond and I will explain again with code sample. Try figuring it out yourself if possible. Key is to use the correct model |
I think I figured out! |
|
@Botsy can i get additional review on this thank you |
Botsy
left a comment
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.
@higorgoulart @kKaskak I reviewed the changes and tested. All looks good to me. One minor thing/inconsistency I noticed on the action buttons in meta details is that not all of them have the tooltip/label on hover. But this is unrelated to the PR.
thanks |
|
Functionality wise this is fine, however the issue that we load and unload the model on each item selection is still there which needs to fixed. I will propose a better solution asap |


Added "Mark as watched/unwatched" on discover and details.
#989