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

Migrate FtListChannel and FtListHashtag to the composition API #5945

Conversation

absidue
Copy link
Member

@absidue absidue commented Oct 26, 2024

Migrate FtListChannel and FtListHashtag to the composition API

Pull Request Type

  • Refactor

Description

This pull request migrates the FtListChannel and FtListHashtag components from the options API to the SFC composition API. I renamed a few variables to names that I thought were more suitable e.g. parsedVideoCount to formattedVideoCount as that variable contains the video count formatted according to the users locale. I also decided to move the parsing of the subscriber count string for the local API from the FtListChannel component to the src/renderer/helpers/api/local.js, as it seemed weird that that we were parsing the subscriber count in the component when the rest of the parsing was in src/renderer/helpers/api/local.js.

Testing

Search for hashtags (e.g. #shorts, #asmr) and channels (LinusTechTips, you might want to set the type filter to channels here so that you don't have to weed through all the video results first) and make sure they are displayed correctly in search results.

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: 703f3ad

@absidue absidue added the DO NOT MERGE UNTIL AFTER RELEASE Do not merge before the next release as this is not a bug fix label Oct 26, 2024
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) October 26, 2024 15:01
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 26, 2024
Copy link
Member

Choose a reason for hiding this comment

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

Pre-approval

@ChunkyProgrammer ChunkyProgrammer removed the DO NOT MERGE UNTIL AFTER RELEASE Do not merge before the next release as this is not a bug fix label Oct 27, 2024
@kommunarr
Copy link
Collaborator

Noticed this pre-existing issue when searching #cats and clicking on the hashtag link entry. Error doesn't appear when navigating to the hashtag link with the enter key, so it's pretty minor.

Screenshot_20241027_103047

kommunarr
kommunarr previously approved these changes Oct 27, 2024
@github-actions github-actions bot added PR: merge conflicts / rebase needed and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels Oct 28, 2024
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Copy link
Contributor

Conflicts have been resolved. A maintainer will review the pull request shortly.

@absidue absidue added the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 28, 2024
@FreeTubeBot FreeTubeBot merged commit 8b3c394 into FreeTubeApp:development Oct 28, 2024
5 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 28, 2024
@absidue absidue deleted the list-channel-hashtag-composition-api branch October 28, 2024 13:26
PikachuEXE added a commit to Zeabyte/FreeTube-0 that referenced this pull request Oct 29, 2024
* development: (225 commits)
  Invidious API: Add support for auto-dubbed audio tracks (FreeTubeApp#5943)
  Fix settings password handling (FreeTubeApp#5988)
  Translated using Weblate (Serbian)
  Translated using Weblate (Breton)
  Translated using Weblate (Toki Pona)
  Translated using Weblate (Breton)
  Translated using Weblate (Toki Pona)
  Translated using Weblate (Icelandic)
  Bump youtubei.js from 10.5.0 to 11.0.0 (FreeTubeApp#5996)
  Bump shaka-player from 4.11.10 to 4.11.11 (FreeTubeApp#5995)
  Bump eslint-plugin-vue from 9.29.1 to 9.30.0 in the eslint group (FreeTubeApp#5994)
  Translated using Weblate (Latvian)
  Translated using Weblate (Toki Pona)
  Translated using Weblate (Icelandic)
  Translated using Weblate (Hungarian)
  Translated using Weblate (Toki Pona)
  Translated using Weblate (Icelandic)
  Translated using Weblate (Hungarian)
  Migrate FtListChannel and FtListHashtag to the composition API (FreeTubeApp#5945)
  Fix issue FreeTubeApp#5969 (FreeTubeApp#5970)
  ...
Soham456 pushed a commit to Soham456/FreeTube that referenced this pull request Dec 5, 2024
SuperAKWA pushed a commit to SuperAKWA/FreeTube that referenced this pull request Jan 24, 2025
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