Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[React]: Add super simple usage of the new web worker-based cody chat #62792

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

vovakulikov
Copy link
Contributor

@vovakulikov vovakulikov commented May 20, 2024

Part of #62448
For more details and to dive deep into worker and shims problems see this sourcegraph/cody#4227

Screenshot 2024-05-20 at 08 39 44

Steps to make this work

  • Open Cody repository on the vk/integrate-cody-web-chat-2 branch
  • At the root of the repo, run pnpm install to make sure you're up to date with all of the dependencies.
  • Go to the web package (cd web)
  • Build it with pnpm build
  • Create a global link with pnpm link --global (Ignore the warning message about no binary)
  • Open sourcegraph/sourcegraph repository on this PR branch
  • Make sure you are in the root of the repo.
  • Run pnpm link --global @sourcegraph/cody-web
  • Run sg start web-standalone to bundle the web app and launch an instance that uses S2 for the backend. You'll need to create a login on S2 that is not federated by GitHub.
  • Turn on newCodyWeb: true in your experimentalFeatures
  • Have fun experimenting!

At the moment, props are hardcoded, shims are static, styles in cody web and sourcegraph web are disconnected

Test plan

  • Check that old version of Cody has got no regressions

@peterguy peterguy changed the title [React]: Add super simple usage of the new wob worker based cody chat [React]: Add super simple usage of the new web worker based cody chat Jun 12, 2024
@peterguy peterguy changed the title [React]: Add super simple usage of the new web worker based cody chat [React]: Add super simple usage of the new web worker-based cody chat Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant