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

search contexts: allow setting a default context and use it on load#45387

Merged
limitedmage merged 7 commits into
mainfrom
jp/defaultcontext
Dec 12, 2022
Merged

search contexts: allow setting a default context and use it on load#45387
limitedmage merged 7 commits into
mainfrom
jp/defaultcontext

Conversation

@limitedmage

@limitedmage limitedmage commented Dec 7, 2022

Copy link
Copy Markdown
Contributor

Part of #44903

Allows user to set their default context from the search contexts management page. The update is optimistic and will revert and show an error if it's not successful.

image

image

Test plan

Added unit tests

App preview:

Check out the client app preview documentation to learn more.

@limitedmage limitedmage requested review from a team and novoselrok December 7, 2022 22:34
@cla-bot cla-bot Bot added the cla-signed label Dec 7, 2022
@sourcegraph-bot

sourcegraph-bot commented Dec 7, 2022

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff 57fab81...30b935c.

Notify File(s)
@beyang internal/search/searchcontexts/search_contexts.go
internal/search/searchcontexts/search_contexts_test.go
@camdencheek internal/search/searchcontexts/search_contexts.go
internal/search/searchcontexts/search_contexts_test.go
@fkling client/search-ui/src/input/SearchBox.story.tsx
client/search-ui/src/input/SearchContextDropdown.test.tsx
client/search-ui/src/input/SearchContextMenu.story.tsx
client/search-ui/src/input/SearchContextMenu.test.tsx
client/search-ui/src/input/SearchContextMenu.tsx
client/search/src/backend.ts
client/search/src/index.ts
client/web/src/search/home/SearchPage.story.tsx
client/web/src/search/home/SearchPage.test.tsx
client/web/src/search/results/StreamingSearchResults.test.tsx
@keegancsmith cmd/frontend/graphqlbackend/search_contexts.go
internal/search/searchcontexts/search_contexts.go
internal/search/searchcontexts/search_contexts_test.go
@philipp-spiess client/jetbrains/webview/src/search/App.tsx
client/jetbrains/webview/src/search/input/JetBrainsSearchBox.story.tsx
client/jetbrains/webview/src/search/input/JetBrainsSearchBox.tsx
@rvantonder cmd/frontend/graphqlbackend/search_contexts.go
@vdavid client/jetbrains/webview/src/search/App.tsx
client/jetbrains/webview/src/search/input/JetBrainsSearchBox.story.tsx
client/jetbrains/webview/src/search/input/JetBrainsSearchBox.tsx

@sg-e2e-regression-test-bob

sg-e2e-regression-test-bob commented Dec 7, 2022

Copy link
Copy Markdown

Bundle size report 📦

Initial size Total size Async size Modules
0.03% (+0.89 kb) 0.03% (+3.87 kb) 0.02% (+2.98 kb) 0.00% (0)

Look at the Statoscope report for a full comparison between the commits 30b935c and 57fab81 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

* search contexts: show default context in dropdown

* search contexts: add backend for querying default search context (#45483)

* search contexts: select default context on page load (#45489)

* search contexts: show alert if default is not available (#45500)
@limitedmage limitedmage changed the title search contexts: set default from management page search contexts: allow setting a default context and use it on load Dec 12, 2022
@limitedmage limitedmage merged commit 58f7e59 into main Dec 12, 2022
@limitedmage limitedmage deleted the jp/defaultcontext branch December 12, 2022 17:39
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.

4 participants