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

Search: Add hashtags to results #3780

Conversation

ChunkyProgrammer
Copy link
Member

@ChunkyProgrammer ChunkyProgrammer commented Jul 16, 2023

Search: Add hashtags to results

Pull Request Type

  • Feature Implementation

Related issue

#3483 (comment)

Description

This PR parses hashtags in the search results

Screenshots

image

Testing

(Test with both Invidious and local api)

  • Search #hi, see hashtag in results
  • Search #meow see updated results + updated hashtag
  • Search '#ThisShouldNotAddAHashtagResult'

Desktop

  • OS: Windows
  • OS Version: 11
  • FreeTube version: 0.18.0

Additional context

Requires iv-org/invidious#3989 to be merged and LuanRT/YouTube.js#441 to be released

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) July 16, 2023 20:04
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jul 16, 2023
@PikachuEXE
Copy link
Collaborator

PikachuEXE commented Jul 17, 2023

Is it ready or WIP ._.
if it's WIP best to make it draft
That's the clearest message about this PR's status

@ChunkyProgrammer
Copy link
Member Author

Blocked is probably the best message for it (we are waiting for the IV pr to be merged but I don't expect any changes on my end unless something comes up in review)

@PikachuEXE
Copy link
Collaborator

I can see LuanRT/YouTube.js#441 merged
Update required package version?

@ChunkyProgrammer
Copy link
Member Author

Yeah, that'll have to be done too

@ChunkyProgrammer ChunkyProgrammer removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Jul 17, 2023
@ChunkyProgrammer ChunkyProgrammer force-pushed the add-support-for-hashtags-in-search-results branch from 57673fb to 17a3539 Compare July 18, 2023 01:50
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.

Looks like the Invidious pull request was just merged.

src/renderer/components/ft-list-hashtag/ft-list-hashtag.js Outdated Show resolved Hide resolved
static/locales/en-US.yaml Outdated Show resolved Hide resolved
src/renderer/helpers/api/local.js Outdated Show resolved Hide resolved
@ChunkyProgrammer ChunkyProgrammer added PR: waiting for review For PRs that are complete, tested, and ready for review and removed PR: WIP labels Aug 26, 2023
@kommunarr
Copy link
Collaborator

Looking at FreeTube's general heading structure, I think we can make a few improvements. But this looks in line with the existing structure. Waiting on an answer to absidue's q, but then LGTM.

Copy link
Collaborator

@PikachuEXE PikachuEXE left a comment

Choose a reason for hiding this comment

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

Maybe just pass a "handle" (e.g. hi, meow) and generate outputs inside?

src/renderer/helpers/api/local.js Outdated Show resolved Hide resolved
src/renderer/helpers/api/local.js Outdated Show resolved Hide resolved
@efb4f5ff-1298-471a-8973-3d47447115dc

@ChunkyProgrammer ready for review or do you still need to address some things?

@PikachuEXE
Copy link
Collaborator

I still can't understand the URL generation & title still an object

Copy link
Member

Choose a reason for hiding this comment

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

lgtm

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 c7025b6 into FreeTubeApp:development Sep 9, 2023
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Sep 9, 2023
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Sep 11, 2023
* development: (46 commits)
  Translated using Weblate (Hebrew)
  Translated using Weblate (Hebrew)
  Translated using Weblate (Chinese (Simplified))
  Add subscribed icon to comments (FreeTubeApp#4007)
  Translated using Weblate (Icelandic)
  Translated using Weblate (Czech)
  Translated using Weblate (Bulgarian)
  Translated using Weblate (Polish)
  Translated using Weblate (Arabic)
  Translated using Weblate (Greek)
  Translated using Weblate (Italian)
  Translated using Weblate (Chinese (Simplified))
  Translated using Weblate (Hungarian)
  Translated using Weblate (Portuguese (Brazil))
  Translated using Weblate (Ukrainian)
  Translated using Weblate (Spanish)
  Translated using Weblate (Hebrew)
  Translated using Weblate (Turkish)
  Search: Add hashtags to results (FreeTubeApp#3780)
  Implement right-to-left interface (FreeTubeApp#3970)
  ...

# Conflicts:
#	src/renderer/components/ft-element-list/ft-element-list.vue
#	src/renderer/components/ft-prompt/ft-prompt.css
#	src/renderer/components/ft-toast/ft-toast.css
#	src/renderer/scss-partials/_ft-list-item.scss
#	src/renderer/views/Playlist/Playlist.scss
@ChunkyProgrammer ChunkyProgrammer deleted the add-support-for-hashtags-in-search-results branch September 12, 2023 20:12
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.

6 participants