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 search coming back in notebook and editor #15443
Fix search coming back in notebook and editor #15443
Conversation
Thanks for making a pull request to jupyterlab! |
I just gave this a manual test
however I could not see any improvement, the searched terms keeps on being highlighted even when the search dialog is closed so I take it the way I am trying to test is not right, is it ? |
If you still see it in the dev mode, can you record a screencast? |
stupid me, I am more into developing extensions these days and I forgot about the all seems to be in order now; I'll try to give it a more thorough shot later on then :) |
just to confirm, I have been able to test this manually with larger notebooks and so far I have not seen the search dialog reappearing unintentionally, so it's all good as far as I am concerned; at the very least it is way better than before :) thanks a lot @krassowski for fixing this, it is a huge burden off heavy users who use Search all the time ps1. I tried to analyse the outcome of CI that has many failures, it does not seem to relate to these changes but I could not say for sure ps2. just as a comment, not quite related to the topic at hand, but |
No worries, I will take care of these. Briefly there are two issues: (a) we need to update snapshots as new PRs were merged since and the UI looks slightly different (b) parallel execution of tests on CI is breaking some test cases which is being worked on elsewhere.
I agree from the UX point of view. Having it not touch render state and showing a tooltip "3 more matches in source code" could be a good solution IMO. If you cannot find an issue about this, please create a new one. |
...otebook-search-highlight.test.ts-snapshots/notebook-search-highlight-1-jupyterlab-darwin.png
Outdated
Show resolved
Hide resolved
Remove no-op await locator line
bot please update galata snapshots again |
Galata snapshots updated. |
and revert spurious snapshot updates
@krassowski in any case I'd like to thank you a million times again for taking care of this nagging issue, I am eager to see this released so I can stop writing junk in the search dialog only to keep the issue from happening ;-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot at @krassowski
@meeseeksdev please backport to 4.0.x |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
…editor * a test case to illustrate issue jupyterlab#14871 * cleanup unused code * rename outline into highlight as it sounds more proper * fix typo in variable name _unrenderedByHighligh → _unrenderedByHighlight * Fix search coming back in notebook and editor * Add missing return * Rename snapshots and limit screenshot to notebook area Remove no-op await locator line * Update Playwright Snapshots * Improve async test implementation to avoid early closing * Update Playwright Snapshots * Remove visual snapshots, use locator counts instead and revert spurious snapshot updates --------- Co-authored-by: Thierry Parmentelat <thierry.parmentelat@inria.fr> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> (cherry picked from commit 746ce2d)
…5562) * a test case to illustrate issue #14871 * cleanup unused code * rename outline into highlight as it sounds more proper * fix typo in variable name _unrenderedByHighligh → _unrenderedByHighlight * Fix search coming back in notebook and editor * Add missing return * Rename snapshots and limit screenshot to notebook area Remove no-op await locator line * Update Playwright Snapshots * Improve async test implementation to avoid early closing * Update Playwright Snapshots * Remove visual snapshots, use locator counts instead and revert spurious snapshot updates --------- Co-authored-by: Thierry Parmentelat <thierry.parmentelat@inria.fr> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> (cherry picked from commit 746ce2d)
References
Builds on the test proposed in #15259 (thanks @parmentelat)
Fixes #14871
Code changes
Track the search on/off state and only announce state changes/act on them if the search is on.
User-facing changes
Search does not come back in notebook and file editor
Backwards-incompatible changes
None