Skip to content

Conversation

DontBlameMe99
Copy link
Contributor

@DontBlameMe99 DontBlameMe99 commented Jun 4, 2025

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

closes #3193

Description

This adds a option to the settings (parental controls) which allows the Channel Link to be hidden.

Screenshots

image
image
image

Testing

Open various videos, enable and disable the option

Desktop

  • OS: Arch Linux
  • FreeTube version: Newest Development branch (this commit)

Additional context

This was a requested feature (marked with good first issue) and I implemented it.
I am new to contributing actual code to FreeTube. I have previously only contributed themes, so please let me know if anything should be done differently.

DontBlameMe added 2 commits June 4, 2025 07:39
Adds an option to hide the channel link from a video

closes FreeTubeApp#3193
This prevents the sharing actions from being moved to where the profile would be,
once the profile is hidden via the parental controls.
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) June 4, 2025 05:51
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jun 4, 2025
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Combined with all our other parental and distraction free settings i think this is a pretty good addition

The only thing im not sure about is the label, Hide Channel Link. Im not sure if its clear enough for a person that is reading this the first time on what this actually does

@PikachuEXE
Copy link
Collaborator

Also Hide Channel Link also hides unsubscribe button and I don't think that's expected just by reading that label

@DontBlameMe99
Copy link
Contributor Author

@PikachuEXE Yeah the name is definitely something which needs to be discussed. I previously also had "Hide Channel Actions" as the name, but because of the issue I changed it. I am not sure of what to call this.

@efb4f5ff-1298-471a-8973-3d47447115dc

any ideas for a better name @absidue @ChunkyProgrammer @kommunarr

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc added PR: changes requested and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels Jun 4, 2025
Copy link
Contributor

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 14 days.

@efb4f5ff-1298-471a-8973-3d47447115dc
Copy link
Member

efb4f5ff-1298-471a-8973-3d47447115dc commented Jun 24, 2025

Apologies for the delay. Some suggestions i came up with:

  • Limit Channel Discovery
  • Restrict Channel Access
  • Hide Channel Information

I feel the reason that its so hard to come up with a label is that it isnt clear where this is applied and to what elements. For example in our distraction free setting its clear what element is hidden and on what page it is applied

@DontBlameMe99
Copy link
Contributor Author

@PikachuEXE I would love to hear your opinion as well! (Since I am not sure of what to use (even with @efb4f5ff-1298-471a-8973-3d47447115dc's suggestions)).
For me it would be the best if y'all could basically say "use X" and I just use that name 😅

@PikachuEXE
Copy link
Collaborator

I think Restrict Channel Access is better but that would require this PR to have channel page to display "access restricted"...

@efb4f5ff-1298-471a-8973-3d47447115dc

We already have a setting to hide the subscribe button so maybe this setting can only hide the channel icon and name so we can name this setting properly?

@DontBlameMe99
Copy link
Contributor Author

@PikachuEXE For complexity's sake I would love to not do this 😛
@efb4f5ff-1298-471a-8973-3d47447115dc This sounds very smart since the subscribe part can be hidden. Implementing it.

auto-merge was automatically disabled June 28, 2025 18:34

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) June 28, 2025 18:34
This change makes it so only the channel name/icon get hidden, not the subscribe button itself.
This makes sense because there is a separate setting to achive this behavior, if needed.
@DontBlameMe99
Copy link
Contributor Author

DontBlameMe99 commented Jun 28, 2025

This is how it looks now:
image
but I have one question: In the sidebar the channel name/icon is still visible (and clickable). Should this also be hidden?

@efb4f5ff-1298-471a-8973-3d47447115dc

but I have one question: In the sidebar the channel name/icon is still visible (and clickable). Should this also be hidden?

Thats seems highly out of scope of this PR tbh

@DontBlameMe99
Copy link
Contributor Author

@efb4f5ff-1298-471a-8973-3d47447115dc Yeah on one side I get what you are saying (and I would love not implementing it :D) but on the other side it is basically a "workaround" to still get to the channel page (which this is trying to prevent).

@efb4f5ff-1298-471a-8973-3d47447115dc

@DontBlameMe99

FreeTube_mj5LPnO9S8.mp4

@DontBlameMe99
Copy link
Contributor Author

@efb4f5ff-1298-471a-8973-3d47447115dc Thanks for pointing this out! I completely missed that 😂

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implementation of the functionality looks good. Please move the toggle to the right so they are grouped in pairs of two instead of 3 in one and 1 in the other

VirtualBoxVM_glAY1Yd3Cr.mp4

Also now we can maybe find a more appropriate name for it?

Moves the toggle to the right side (grouping in pairs of two),
instead of three on one side and one on the other side
auto-merge was automatically disabled July 9, 2025 13:11

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) July 9, 2025 13:11
@PikachuEXE PikachuEXE requested review from absidue, ChunkyProgrammer and kommunarr and removed request for ChunkyProgrammer and kommunarr July 27, 2025 03:07
Copy link
Member

@absidue absidue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix all the linter warnings.

Maintainers: maybe we should consider making all linter detections errors instead of warnings so that they block merging until they are fixed?

@absidue absidue added PR: changes requested and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels Aug 1, 2025
@PikachuEXE
Copy link
Collaborator

How do I even see linter warnings on GH...
If "warnings" should be fixed they should be blocking PR

@efb4f5ff-1298-471a-8973-3d47447115dc

Please fix all the linter warnings.

Maintainers: maybe we should consider making all linter detections errors instead of warnings so that they block merging until they are fixed?

Hmm weird, we should definitely make it blocking

@efb4f5ff-1298-471a-8973-3d47447115dc

@PikachuEXE

firefox_qb41sUOsFY.mp4

@DontBlameMe99
Copy link
Contributor Author

Yeah definitely make them blocking! I did not even notice that they were there (because on my machine I didn't even see them), wasting your time.

@absidue
Copy link
Member

absidue commented Aug 1, 2025

@DontBlameMe99 Not sure what you use to do your commits on your computer but the linter runs in a pre-commit hook so you should see them in the output (they are definitely visible in the command line, but I'm not sure how GUI editors handle them). You should also see the yellow squiggles in your editor if you have Vue and ESLint integrations set up.

auto-merge was automatically disabled August 1, 2025 15:59

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) August 1, 2025 15:59
@DontBlameMe99
Copy link
Contributor Author

@absidue Thats weird. I am using nvim with the LSP (which might cause it to use a different formatting, I've noticed this sevaral times). But I am committing/pushing via lazygit/the git CLI, so this should definitely run them - but it doesn't. I'll have to look into this.

auto-merge was automatically disabled August 1, 2025 16:02

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) August 1, 2025 16:02
@DontBlameMe99 DontBlameMe99 requested a review from absidue August 1, 2025 16:09
@FreeTubeBot FreeTubeBot merged commit 57c2453 into FreeTubeApp:development Aug 2, 2025
6 checks passed
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Aug 6, 2025
* development: (27 commits)
  Translated using Weblate (Turkish)
  Translated using Weblate (Portuguese (Brazil))
  Bump electron from 37.2.4 to 37.2.5 (FreeTubeApp#7777)
  Bump the eslint group with 2 updates (FreeTubeApp#7778)
  Bump webpack from 5.100.2 to 5.101.0 (FreeTubeApp#7774)
  Bump marked from 16.1.1 to 16.1.2 (FreeTubeApp#7776)
  Translated using Weblate (Swedish)
  Hide the Electron specific -electron-corner-smoothing CSS rule (FreeTubeApp#7769)
  Translated using Weblate (Romanian)
  Translated using Weblate (Romanian)
  Translated using Weblate (Chinese (Traditional Han script))
  Translated using Weblate (German)
  Translated using Weblate (Italian)
  Translated using Weblate (Chinese (Simplified Han script))
  Translated using Weblate (Estonian)
  Translated using Weblate (Bulgarian)
  Translated using Weblate (Hungarian)
  Translated using Weblate (French)
  Translated using Weblate (Czech)
  feat: add option to hide the channel link (FreeTubeApp#7514)
  ...

# Conflicts:
#	package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: Unclickable Channel Link
5 participants