-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cody Web: Fixes config features event (#5050)
At the moment, I think we recently did some work around adding the `useFeatureFlag` hook. Cody Controller was sending the `setConfigFeatures` event too early before we init in Cody Web component, and because of this we render transcript UI with no feature flag info and hence `useFeatureFlag ` was failing with `useFeatureFlags must be used within a FeatureFlagsProvider` This PR simply adds `setConfigFeatures` to the ready event handler so it would be sent after Chat UI is ready. Also, in this PR I changed the name of the cody web package to make it more standard and move out of my personal NPM account to sourcegraph organization. ## Test plan - Run Cody Web demo `cd web & pnpm dev` - Open Dev tools and remove all tables in your IndexDB for the demo domain - Refresh the page - You should see chat UI with no history and no messages
- Loading branch information
1 parent
6d2b254
commit 024dffc
Showing
5 changed files
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters