-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update One Box Code Snippets UI (#5753)
closes: https://linear.app/sourcegraph/issue/SRCH-1100/one-box-search-improvements-correct-issues-from-dog-fooding closes: https://linear.app/sourcegraph/issue/SRCH-1115/make-individual-search-results-in-one-box-collapsible - Bring back the result hide functionality - Include the ask Cody button at bottom of file - Limit displayed results to 5, with show more button - File path background should be opaque. Designs: https://www.figma.com/design/eR495BJclVpdGdXf4lhSsH/One-box?node-id=632-7402&node-type=canvas&t=gs8ttscPyqpA2YTj-0 Loom: https://www.loom.com/share/1c1d01bc6f734eee8ff0f54cae8adf96 ## Test plan - Enable Onebox and execute code search intent - Make sure only first 5 results are shown and "show more" and "ask the llm" button are shown at the bottom. - Make sure the code snippets now have the dark bg same as the code snippets returned in the Cody response. - The file link does not have any border now. - Test the hide code snippet function by clicking on the caret left to the file link. ## Changelog
- Loading branch information
1 parent
c24f9b3
commit 3c8d530
Showing
8 changed files
with
152 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 1 addition & 10 deletions
11
vscode/webviews/components/codeSnippet/components/FileMatchChildren.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,5 @@ | ||
.chunk { | ||
position: relative; | ||
overflow-x: auto; | ||
padding: 0.25rem 0.5rem; | ||
background-color: var(--cody-chat-code-background); | ||
|
||
&:first-child { | ||
padding-top: 0.5rem; | ||
} | ||
|
||
&:last-child { | ||
padding-bottom: 0.5rem; | ||
} | ||
background-color: var(--code-background); | ||
} |
Oops, something went wrong.