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

Fix "replied by me" filter and improve search highlighting #441

Merged
merged 8 commits into from
Aug 12, 2021

Conversation

MrOrz
Copy link
Member

@MrOrz MrOrz commented Aug 8, 2021

"Replied by me" filter in search page

A typo break the "replied by me" filter. Also, I forgot to implement "selected" display for "replied by me".
Both are fixed in this PR.

Fixes #370.

Reply search

repliedbyme-reply

Article search

replied-by-me-article

Search highlighting

Previously the search string will only be highlighted if the exact string are found in the text. Space-separated search queries are considered as one string during this process, thus the search result are barely highlighted.

This PR fixes the search highlight by:

  • parsing the highlight field provided in rumors-api edge fields
  • Display highlights from text, reference (replies only) and parsed contents in individual hyperlinks
  • Make "reply search" timestamps look clickable (adds back underline)
    • so that user knows where to click in the result of reply search

Article search

圖片

Reply search

圖片

Others

  • Removes dead code ListItem.styles.js
  • Not sure why "In reference text" and "In linked text" are not translated......

@MrOrz MrOrz self-assigned this Aug 8, 2021
@MrOrz MrOrz marked this pull request as ready for review August 8, 2021 16:37
@MrOrz MrOrz merged commit 13dd609 into master Aug 12, 2021
@MrOrz MrOrz deleted the search-enhancements branch August 12, 2021 17:06
MrOrz added a commit that referenced this pull request Aug 15, 2021
- Changes from #441 are not tested because travis stopped working.
- This PR updates these snapshots and fixes the repo.
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.

"I checked" Button has invalid
2 participants