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

add LazyQueryInputFormControl, remove duplicated common pattern#63537

Merged
sqs merged 1 commit into
mainfrom
sqs/query-form-control
Jul 2, 2024
Merged

add LazyQueryInputFormControl, remove duplicated common pattern#63537
sqs merged 1 commit into
mainfrom
sqs/query-form-control

Conversation

@sqs

@sqs sqs commented Jun 28, 2024

Copy link
Copy Markdown
Member

Many places used a LazyQueryInput with a focus ring and implemented it incorrectly:

  • The text would overflow
  • The tooltips in the query input would be chopped off

This cleans up duplicate code and fixes those bugs.

No visual changes.

Test plan

View the query input and try overflowing it on:

  • search context query input
  • saved search query input
  • code monitor query input

@sqs sqs requested a review from a team June 28, 2024 09:06
@cla-bot cla-bot Bot added the cla-signed label Jun 28, 2024
@sqs sqs force-pushed the sqs/query-form-control branch 5 times, most recently from 87057f5 to 19d47ec Compare July 1, 2024 07:55
@sqs sqs requested a review from a team July 1, 2024 07:55
Many places used a LazyQueryInput with a focus ring and implemented it incorrectly:

- The text would overflow
- The tooltips in the query input would be chopped off

This cleans up duplicate code and fixes those bugs.
@sqs sqs force-pushed the sqs/query-form-control branch from 19d47ec to 0821d14 Compare July 2, 2024 00:13

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

I remember I had the same problem in Code Insights creation UI, with this change we probably can drop some wrappers that I wrote there as well, but this doesn't block this.

@sqs sqs merged commit 1b9459c into main Jul 2, 2024
@sqs sqs deleted the sqs/query-form-control branch July 2, 2024 00:34
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.

2 participants