-
Notifications
You must be signed in to change notification settings - Fork 893
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
Update 'Only Show Latest Video for Each Channel' setting to handle a custom number of videos per channel #5901
Update 'Only Show Latest Video for Each Channel' setting to handle a custom number of videos per channel #5901
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.
I haven't tested this yet, but good work! One potential suggestion: thoughts on having the label change to Limit the number of videos displayed for each channel to
when the toggle is enabled and making the input an inline 2-digit-wide one? That way it could read out like a sentence.
Its not automatically, you need to remove it. |
I imagine I have to remove it from all the files not just |
I personally prefer the latter (with a On that note, you'll also need an |
Head branch was pushed to by a user without write access
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Head branch was pushed to by a user without write access
eef0111
to
ad8b129
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Head branch was pushed to by a user without write access
ad8b129
to
e183f1d
Compare
/> | ||
<div class="onlyShowLatestFromChannel"> | ||
<ft-toggle-switch | ||
:id="'onlyShowLatestFromChannel'" |
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.
:id="'onlyShowLatestFromChannel'" | |
id="onlyShowLatestFromChannel" |
/> | ||
<ft-input | ||
v-if="onlyShowLatestFromChannel" | ||
:placeholder="'1'" |
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.
:placeholder="'1'" | |
placeholder="1" |
:show-action-button="false" | ||
input-type="number" | ||
:value="onlyShowLatestFromChannelNumber" | ||
:aria-labelledby="'onlyShowLatestFromChannel'" |
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.
:aria-labelledby="'onlyShowLatestFromChannel'" | |
aria-labelledby="onlyShowLatestFromChannel" |
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.
Please don't use nested CSS unless there is absolutely no other way, as it breaks Vue's scoped CSS functionality, in this case a class would probably be a lot more suitable than doing some nth-child stuff. That would also allow you to use a plain CSS file.
Thats correct |
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.
Seeing how the input and the settings work right now I don't think it's possible to have a limit enforced nicely right now since there is no validation at all. For the alignment something like this would be better: simplescreenrecorder-2024-10-23_16.23.50.mp4Layout not moving and it looks the same on lower resolutions. Maybe instead of having an input a slider would be better? |
dd2fc9c
to
c656768
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Hey, what's the status on this, what's blocking it from being merged? |
There shouldnt be any blockers now that conflicts are resolved |
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 great! Apologies for the delay; it can be tough for us to keep track of things as more tasks flow in.
I hope this doesn't come off as rude, but I generally skip past pull requests that have conflicts, as they can't be merged anyway, so there is no point reviewing it as I'll have to do it again anyway when the code conflicts have been resolved. It has also happened a few times that non-maintainers have abandoned their pull requests when they get code conflicts, so now I wait for signs of life from the developer before looking at such pull requests. |
Sounds good, there are no conflicts any more. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Head branch was pushed to by a user without write access
cfef730
c656768
to
cfef730
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
…custom number of videos per channel (FreeTubeApp#5901) * update onlyShowLatestFromChannel setting to handle a custom amount of videos * update layout of subscription settings section * remove unused localisation strings * add labelledby attribute and update styling * use slider
Update 'Only Show Latest Video for Each Channel' setting to handle a custom number of videos per channel
Pull Request Type
Related issue
closes #5265
Description
Updated the
Only Show Latest Video for Each Channel
setting to now handle a custom number of videos per channel to be shown.Added a new variable to keep track of the number so the user can change it if the option is enabled.
I didn't change the existing setting so this way this feature is retro compatible.
Screenshots
simplescreenrecorder-2024-11-16_12.22.51.mp4
Testing
Enabled the feature and changed the number different times while checking that the Videos, Shorts, and Live tabs showed the correct amount of videos for each channel.
Desktop
Additional context
I didn't remove the old localisation string, is it removed automatically or do I need to do it.