sourcegraph/client
2022-04-12 10:13:18 +03:00
..
branded Wildcard: Fix label hover state (#33385) 2022-04-11 10:55:37 -04:00
browser bext: refactor to use yarn workspaces in commands (#33700) 2022-04-12 10:13:18 +03:00
build-config Use fully specified file path for process module provider (#32950) 2022-03-23 14:10:43 +01:00
client-api Create a client-api package (#31151) 2022-03-17 01:17:26 -07:00
codeintellify [SG-31914] Fix failing unit tests on client/common, client/codeintellify packages (#32241) 2022-03-08 21:55:50 +07:00
common Notebooks outline (#33530) 2022-04-11 11:17:07 +02:00
eslint-plugin-sourcegraph web: flatten frontend packages inside of the client folder (#19378) 2021-03-26 15:35:26 +08:00
eslint-plugin-wildcard Enable eslint-plugin-wildcard globally (#30830) 2022-03-02 21:19:54 +07:00
extension-api extension api: allow ext to specify max results in panels (#29738) 2022-01-17 14:11:24 +01:00
extension-api-types web: enable import/order ESLint rule (#19806) 2021-04-10 14:58:33 +08:00
http-client Fix native integration to pass cookies/credentials for "Extensions" info graphql request (#33406) 2022-04-07 17:39:26 +06:00
search search: Fix user settings overwriting search parameters from URL (#33542) 2022-04-08 13:09:09 +02:00
search-ui Refactor CodeMirror query input suggestions (#33382) 2022-04-11 17:23:47 +02:00
shared search: Refactor Monaco query input suggestions (#33295) 2022-04-07 13:13:22 +02:00
storybook [SG-32822] Ban imports from client package internals (#32930) 2022-03-31 17:18:42 +07:00
stylelint-plugin-sourcegraph web: seal CSS modules migration with linter rules (#30354) 2022-01-28 07:25:17 -08:00
template-parser refactor: extract the new template-parser package (#29344) 2022-01-11 08:58:28 +07:00
vscode [feat] Deprecate eventLogger.logViewEvent for a new method called eventLogger.logPageView (#33081) 2022-03-28 14:38:28 +02:00
web Enable notebooks by default (#33706) 2022-04-12 06:49:42 +02:00
wildcard Upgrade to the latest version of React (#33641) 2022-04-11 16:14:26 +01:00
README.md web: add new packages to client readme (#32678) 2022-03-16 11:29:03 -04:00

Frontend packages

List

  • web: The web application deployed to http://sourcegraph.com/
  • browser: The Sourcegraph browser extension adds tooltips to code on different code hosts.
  • vscode: The Sourcegraph VS Code extension.
  • eslint-plugin-sourcegraph: Not published package with custom ESLint rules for Sourcegraph. Isn't intended for reuse by other repositories in the Sourcegraph org.
  • extension-api: The Sourcegraph extension API types for the Sourcegraph extensions. Published as sourcegraph.
  • extension-api-types: The Sourcegraph extension API types for client applications that embed Sourcegraph extensions and need to communicate with them. Published as @sourcegraph/extension-api-types.
  • sandboxes: All demos-mvp (minimum viable product) for the Sourcegraph web application.
  • shared: Contains common TypeScript/React/SCSS client code shared between the browser extension and the web app. Everything in this package is code-host agnostic.
  • branded: Contains React components and implements the visual design language we use across our web app and e.g. in the options menu of the browser extension. Over time, components from shared and branded packages should be moved into the wildcard package.
  • wildcard: Package that encapsulates storybook configuration and contains our Wildcard design system components. If we're using a component in two or more different areas (e.g. web-app and browser-extension) then it should live in the wildcard package. Otherwise the components should be better colocated with the code where they're actually used.
  • search: Search-related code that may be shared between all clients, both branded (e.g. web, VS Code extension) and unbranded (e.g. browser extension)
  • search-ui: Search UI components with branded styling that are shared between clients. For example, the <SearchBox> component that is used in both the web application and VS Code extension.
  • storybook: Storybook configuration.

Further migration plan

  1. Fix circular dependency in TS project-references graph wildcard package should not rely on web and probably shared, branded too. Ideally it should be an independent self-contained package.

  2. Decide on package naming and update existing package names. Especially it should be done for a shared package because we have multiple shared folders inside of other packages. It's hard to understand from where dependency is coming from and it's not possible to refactor import paths using find-and-replace.

  3. Investigate if we can painlessly switch to npm workspaces.

  4. Content of packages shared and branded should be moved to wildcard and refactored using the latest FE rules and conventions. Having different packages clearly communicates the migration plan. Developers first should look for components in the wildcard package and then fall-back to legacy packages if wildcard doesn't have the solution to their problem yet.

  5. shared contains utility functions, types, polyfills, etc which is not a part of the Wildcard component library. These modules should be moved into utils package and other new packages: e.g. api for GraphQL client and type generators, etc.

  6. Packages should use package name (e.g. @sourcegraph/wildcard) for imports instead of the relative paths (e.g. ../../../../wildcard/src/components/Markdown) to avoid long relative-paths and make dependency graph between packages clear. (Typescript will warn if packages have circular dependencies). It's easy to refactor such isolated packages, extract functionality into new ones, or even into new repositories.

  7. build or config package should be added later to encapsulate all the configurations reused between packages which will allow removing jest.config, babel.config from the root of the repo.