mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:31:43 +00:00
Closes srch-103 Currently we don't show the global context filter on the search home page or the search results page (global context is the default context). This commit does two things: - It prefills the search input on the search homepage with the user's default context (like the React app) - It the logic that pre-processed the search query and removed the context filter if it was global. In other words we simplify the query logic by showing/submitting the search query as is. Notably this doesn't affect how the search input works on repo pages. ## Test plan - Opening the search home page pre-fills the query input with the default search context - Submitting a query without a `context:` filter does not add a `context:` filter to the URL or the search input - If a query contains `context:global` that filter is preserved in the query input (it wasn't before) |
||
|---|---|---|
| .. | ||
| src | ||
| .bazelignore | ||
| .stylelintrc.json | ||
| BUILD.bazel | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| vitest.config.ts | ||
Branded
This folder contains client code that is branded, i.e. it implements the visual design language we use across our web app and e.g. in the options menu of the browser extension. Code here can use global classes and must not adapt styles of the code host (for more details, see Styling UI in the handbook).
Any code that is code host agnostic should go into ../shared instead.