Skip to content
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

Make ft-channel-bubble an actual link when it is being used as one #3980

Merged
merged 1 commit into from
Sep 6, 2023

Conversation

absidue
Copy link
Member

@absidue absidue commented Aug 31, 2023

Make ft-channel-bubble an actual link when it is being used as one

Pull Request Type

  • Feature Implementation

Description

The channel bubble component is used in 4 places, twice for channel selection on the profile edit page and as links on the channel about tab for the featured channels and errored channels on the subscriptions page. Currently we just set the role of the element to link (role="link") but it doesn't act like other links in FreeTube, right, middle and control/command clicking does nothing.

This pull request replaces the role="link" in favour of using router-links, that way they behave as expected, meaning you can control/command and middle click on them to open the channel in a new window and right clicking brings up the context menu that allows you to copy the link or open it in a new window.

Testing

Check that selecting and deselecting still work on the profile edit page, in both the "Subscriptions List" and "Other Channels" sections.

Check that the channel bubbles on the about tab of channels act as links, so clicking on them still takes you to the channel but also that the context menu with the copy link and open in new window entries show up.

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: 0.19.0

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) August 31, 2023 21:06
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Aug 31, 2023
Copy link
Member

Choose a reason for hiding this comment

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

LGTM

@FreeTubeBot FreeTubeBot merged commit 2cecb56 into FreeTubeApp:development Sep 6, 2023
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Sep 6, 2023
@absidue absidue deleted the channel-bubble-link branch September 6, 2023 10:43
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Sep 7, 2023
* development:
  Add button to pause playlist after current video (FreeTubeApp#3938)
  Translated using Weblate (Greek)
  Translated using Weblate (Lithuanian)
  Translated using Weblate (Swedish)
  Translated using Weblate (Catalan)
  Make ft-channel-bubble an actual link when it is being used as one (FreeTubeApp#3980)
  Translated using Weblate (Catalan)
  Translated using Weblate (Catalan)
  Translated using Weblate (French)
  Bump lefthook from 1.4.9 to 1.4.10 (FreeTubeApp#4003)
  Bump the babel group with 3 updates (FreeTubeApp#4000)
  Bump actions/checkout from 3 to 4 (FreeTubeApp#3999)
  Group dependabot created updates for some packages in fewer PRs (FreeTubeApp#3968)
  Chore: Update vscode configurations (FreeTubeApp#3986)
  Bump youtubei.js from 6.1.0 to 6.3.0 (FreeTubeApp#3994)
  Bump postcss from 8.4.28 to 8.4.29 (FreeTubeApp#3995)
  Bump @babel/preset-env from 7.22.10 to 7.22.14 (FreeTubeApp#3996)
  Bump marked from 7.0.5 to 8.0.0 (FreeTubeApp#3993)
  Bump electron-builder from 24.6.3 to 24.6.4 (FreeTubeApp#3992)

# Conflicts:
#	src/renderer/views/Watch/Watch.js
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Sep 7, 2023
* feature/playlist-2023-05: (25 commits)
  ! Fix prompt style issue caused by old branch changes
  * Update single playlist view to only show `Remove watched videos` btn when there is any video
  Add button to pause playlist after current video (FreeTubeApp#3938)
  Translated using Weblate (Greek)
  Translated using Weblate (Lithuanian)
  Translated using Weblate (Swedish)
  Translated using Weblate (Catalan)
  Make ft-channel-bubble an actual link when it is being used as one (FreeTubeApp#3980)
  $ Remove unused and unusable playlist code for inserting video IDs into a playlist
  $ Remove unused mapActions entries
  * Make adding large no. of videos faster
  Translated using Weblate (Catalan)
  Translated using Weblate (Catalan)
  Translated using Weblate (French)
  Bump lefthook from 1.4.9 to 1.4.10 (FreeTubeApp#4003)
  Bump the babel group with 3 updates (FreeTubeApp#4000)
  Bump actions/checkout from 3 to 4 (FreeTubeApp#3999)
  Group dependabot created updates for some packages in fewer PRs (FreeTubeApp#3968)
  Chore: Update vscode configurations (FreeTubeApp#3986)
  Bump youtubei.js from 6.1.0 to 6.3.0 (FreeTubeApp#3994)
  ...
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.

5 participants