Skip to content

Conversation

@elzody
Copy link
Contributor

@elzody elzody commented Aug 11, 2024

This PR includes tests for: #1381

📝 Summary

This PR changes to using the refactored API for search highlighting. Instead of using @nextcloud/event-bus, we use the proper API implemented on the editor itself for searching within the editor.

Related PR: nextcloud/text#6199

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests
  • Documentation (README or documentation) has been updated or is not required

@elzody elzody requested a review from mejo- August 11, 2024 16:40
@elzody elzody self-assigned this Aug 11, 2024
@elzody elzody force-pushed the refactor/search-highlight branch 2 times, most recently from b4d0c7d to 5ad5bd1 Compare August 12, 2024 17:57
@elzody elzody changed the title Refactor/search highlight feat: use search highlighting editor API from text Aug 12, 2024
Copy link
Member

@mejo- mejo- left a comment

Choose a reason for hiding this comment

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

Works nice, only a small comment.

And I pushed one commit that fixes the scrollIntoView() when in edit mode. I hope you don't mind 😬

@elzody elzody force-pushed the refactor/search-highlight branch from 4b2c65e to 135601e Compare August 13, 2024 17:51
@mejo- mejo- force-pushed the refactor/search-highlight branch from 135601e to dfda617 Compare August 13, 2024 18:52
@elzody elzody force-pushed the refactor/search-highlight branch from dfda617 to 2aea268 Compare August 13, 2024 19:02
@elzody elzody marked this pull request as ready for review August 13, 2024 19:03
@mejo- mejo- force-pushed the refactor/search-highlight branch from 2aea268 to 43ad7e2 Compare August 14, 2024 08:39
@mejo- mejo- force-pushed the refactor/search-highlight branch from f5ed3e8 to f856f8b Compare August 15, 2024 07:50
@elzody elzody linked an issue Aug 15, 2024 that may be closed by this pull request
@mejo- mejo- merged commit c2ecf60 into main Aug 18, 2024
@mejo- mejo- deleted the refactor/search-highlight branch August 18, 2024 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add test coverage for search highlight

3 participants