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

experimental search input: Scroll selection into view after completion#49684

Merged
fkling merged 1 commit into
mainfrom
fkling/search-input-globbing
Mar 20, 2023
Merged

experimental search input: Scroll selection into view after completion#49684
fkling merged 1 commit into
mainfrom
fkling/search-input-globbing

Conversation

@fkling

@fkling fkling 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.

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.
@fkling fkling requested a review from a team March 20, 2023 13:04
@cla-bot cla-bot Bot added the cla-signed label Mar 20, 2023

@philipp-spiess philipp-spiess left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wait globbing is not used in the backend at all? 😅

@fkling

fkling commented Mar 20, 2023

Copy link
Copy Markdown
Contributor Author

@philipp-spiess Time to do some cleanup 😄

@sg-e2e-regression-test-bob

Copy link
Copy Markdown

Bundle size report 📦

Initial size Total size Async size Modules
0.00% (0.00 kb) 0.00% (+0.02 kb) 0.00% (+0.02 kb) 0.00% (0)

Look at the Statoscope report for a full comparison between the commits 4446e7f and dd33656 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 enabled auto-merge (squash) March 20, 2023 13:15
philipp-spiess added a commit that referenced this pull request Mar 20, 2023
As @fkling noticed in #49684, these option is no longer supported:

- https://github.com/sourcegraph/sourcegraph/pull/27886
- https://github.com/sourcegraph/sourcegraph/pull/46045

Time to do some cleanup in the front end code!
@philipp-spiess

Copy link
Copy Markdown
Contributor

@philipp-spiess Time to do some cleanup 😄

#49687 🫡

@fkling fkling merged commit 87b738d into main Mar 20, 2023
@fkling fkling deleted the fkling/search-input-globbing branch March 20, 2023 13:25
github-actions Bot pushed a commit that referenced this pull request Mar 20, 2023
#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)
philipp-spiess added a commit that referenced this pull request Mar 21, 2023
As @fkling noticed in #49684, these option is no longer supported:

- https://github.com/sourcegraph/sourcegraph/pull/27886
- https://github.com/sourcegraph/sourcegraph/pull/46045

Time to do some cleanup in the front end code!

Process:

- Grep for `globbing`
- Delete everything that is related to front end code

## Test plan

- CI

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

## App preview:

- [Web](https://sg-web-ps-rm-globbing-from-frontend.onrender.com/search)

Check out the [client app preview
documentation](https://docs.sourcegraph.com/dev/how-to/client_pr_previews)
to learn more.
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