Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

[Backport 5.0] experimental search input: Scroll selection into view after completion#49689

Merged
fkling merged 1 commit into
5.0from
backport-49684-to-5.0
Mar 20, 2023
Merged

[Backport 5.0] experimental search input: Scroll selection into view after completion#49689
fkling merged 1 commit into
5.0from
backport-49684-to-5.0

Conversation

@github-actions

@github-actions github-actions Bot commented Mar 20, 2023

Copy link
Copy Markdown
Contributor

Originally I wanted to do properly pass in the globbing parameter but then I noticed that this feature had been removed for quite a while (#27886, #46045).
But while working on this I noticed that the cursor is not properly scrolled into view when completing a long value. Adding scrollIntoView fixes that.

Test plan

Enter a long query into the input, type file: and select a long file suggestion. The input should scroll the cursor into view.

App preview:

Check out the client app preview documentation to learn more.

Backport 87b738d from #49684

#49684)

Originally I wanted to do properly pass in the `globbing` parameter but
then I noticed that this feature had been removed for quite a while
(#27886, #46045).
But while working on this I noticed that the cursor is not properly
scrolled into view when completing a long value. Adding `scrollIntoView`
fixes that.

## Test plan

Enter a long query into the input, type `file:` and select a long file
suggestion. The input should scroll the cursor into view.

## App preview:

- [Web](https://sg-web-fkling-search-input-globbing.onrender.com/search)

Check out the [client app preview
documentation](https://docs.sourcegraph.com/dev/how-to/client_pr_previews)
to learn more.

(cherry picked from commit 87b738d)
@github-advanced-security

Copy link
Copy Markdown

You have successfully added a new SonarCloud configuration ``. As part of the setup process, we have scanned this repository and found no existing alerts. In the future, you will see all code scanning alerts on the repository Security tab.

@sg-e2e-regression-test-bob

Copy link
Copy Markdown

Bundle size report 📦

Initial size Total size Async size Modules
1.68% (+51.76 kb) 🔺 -0.05% (-6.56 kb) -0.51% (-58.33 kb) 🔽 -0.14% (-1) 🔽

Look at the Statoscope report for a full comparison between the commits 96d6321 and 530863b or learn more.

Open explanation
  • Initial size is the size of the initial bundle (the one that is loaded when you open the page)
  • Total size is the size of the initial bundle + all the async loaded chunks
  • Async size is the size of all the async loaded chunks
  • Modules is the number of modules in the initial bundle

@fkling fkling merged commit 7cb51ab into 5.0 Mar 20, 2023
@fkling fkling deleted the backport-49684-to-5.0 branch March 20, 2023 19:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants