Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Cody Web: Update Cody Web to 0.3.6 [React version]#64254

Merged
vovakulikov merged 2 commits intomainfrom
vk/update-cody-web-to-0.3.6
Aug 2, 2024
Merged

Cody Web: Update Cody Web to 0.3.6 [React version]#64254
vovakulikov merged 2 commits intomainfrom
vk/update-cody-web-to-0.3.6

Conversation

@vovakulikov
Copy link
Contributor

Closes https://linear.app/sourcegraph/issue/SRCH-720/new-chat-button-in-side-panel-view
Closes https://linear.app/sourcegraph/issue/SRCH-808/chat-history-in-side-panel-view

This PR does a few things

  • Updates Cody Web to 0.3.6 (this includes improvements around mentions UI, web url mention support, etc)
  • Adds "create new chat" button to the sidebar cody chat UI
  • Adds history chats UI to the sidebar cody chat UI (note that in GA we will rely on the new Tabs UI, this history UI is just a temporal solution for the Sourcegraph Aug release, in sep GA release it will be improved)

Test plan

  • General manual checks on Cody Web.
  • Check that you can create a new chat from the sidebar chat UI
  • Check that you can select chats from the history panel from the sidebar chat UI

Changelog

@vovakulikov vovakulikov requested a review from a team August 2, 2024 20:06
@vovakulikov vovakulikov self-assigned this Aug 2, 2024
@cla-bot cla-bot bot added the cla-signed label Aug 2, 2024
Comment on lines +82 to +84
<ChatUi className={classNames({ [styles.hidden]: mode !== 'chat' })} />

<div className={classNames(styles.chatHistory, { [styles.hidden]: mode !== 'history' })}>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q: why do we hide these rather than just render one or the other?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good question, so the ChatUI and Chat history internally do a lot of things around subscription to the cody agent event. Hiding it with display:none helps with avoiding unnecessary loading states there

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, makes sense. Thanks!

@vovakulikov vovakulikov merged commit 4caad25 into main Aug 2, 2024
@vovakulikov vovakulikov deleted the vk/update-cody-web-to-0.3.6 branch August 2, 2024 21:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants