sourcegraph/client/shared
Erik Seliger c56371cf23
Own discoverability (#48232)
This PR mainly does two things to increase the visibility of Own:

- It adds to the landing page examples

(Slightly outdated, now replaces "get advanced" if own is on)
<img width="1299" alt="Screenshot 2023-02-26 at 04 48 53@2x"
src="https://user-images.githubusercontent.com/19534377/221391306-9dd679a9-9906-48fa-9731-84efae9c1122.png">

- And also adds a new banner to the Own panel, with a short description
of it and also more hints towards trying search, too.


![image](https://user-images.githubusercontent.com/19534377/221391182-5f9ed589-d7e8-494f-b731-8f866ce1803f.png)

I am not sure if we want to merge this ~as is or want to make more
changes, but we need to find _some_ consensus soon so I'm just putting
it out here and I'll let you comment what you think about it, how we
should adjust wording, and I shouldn't have removed another example to
make room for this one.

All of these things only appear when Own is enabled, so no one gets
confused. For non-enabled instances, the visibility should be solved by
an in-app page instead.

Closes https://github.com/sourcegraph/sourcegraph/issues/48518

Co-authored-by: Malo Marrec <malo.marrec@gmail.com>
2023-03-03 03:28:56 +01:00
..
dev bazel: add bazel build,tests for client/* (#46193) 2023-02-28 20:46:03 -08:00
src Own discoverability (#48232) 2023-03-03 03:28:56 +01:00
.bazelignore web: drop legacy GraphQL schema generator (#45945) 2022-12-25 18:10:20 -08:00
.eslintignore web: drop legacy GraphQL schema generator (#45945) 2022-12-25 18:10:20 -08:00
.eslintrc.js [SG-39797] Enable no-console ESLint rule (#40458) 2022-10-03 07:19:17 -07:00
.stylelintrc.json web: integrate @sourcegraph/stylelint-plugin-sourcegraph and ban bootstrap imports (#34956) 2022-05-05 04:27:26 +00:00
babel.config.js Move all client code into client/ folder (#14480) 2020-10-07 22:23:53 +02:00
BUILD.bazel bazel: add bazel build,tests for client/* (#46193) 2023-02-28 20:46:03 -08:00
gulpfile.js add 2 env vars to speed up frontend builds (#46055) 2023-01-03 07:35:11 +00:00
jest.config.js fix types for jest.config.base.js (using @jest/types package) (#24339) 2021-08-26 02:33:21 -07:00
LICENSE Move all client code into client/ folder (#14480) 2020-10-07 22:23:53 +02:00
NOTICE Move all client code into client/ folder (#14480) 2020-10-07 22:23:53 +02:00
package.json web: fix pnpm-lock issue (#47478) 2023-02-09 22:04:31 -08:00
README.md web: drop bootstrap depenedency (#41401) 2022-09-07 03:11:26 -07:00
tsconfig.json web: fix pnpm-lock issue (#47478) 2023-02-09 22:04:31 -08:00

Shared

This folder contains common TypeScript/React/SCSS client code shared between the browser extension and the web app.

Everything in this folder is code-host agnostic and cannot make assumptions about whether it is running inside the Sourcegraph web app, in the browser extension on GitHub, Gitlab, Phabricator, Bitbucket Server, etc. In particular, components cannot make use of global CSS classes but must accept CSS classes as props and/or have their own code host agnostic SCSS stylesheets. For more details, see Styling UI in the handbook.

Code that is only used in branded contexts (web app, options menu of the browser extension, ...) should go into ../branded instead.