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

feat(ui): add chat page and integrate with files #2099

Merged
merged 13 commits into from May 17, 2024
Merged

Conversation

wwayne
Copy link
Collaborator

@wwayne wwayne commented May 11, 2024

Screen record

https://jam.dev/c/84eb9ae8-8a7b-477f-bc38-9a44b7d2cf6d

Notable changes

  • tabby-chat-panel: New client-side API navigate. One use case for invoking navigate is when a user clicks on a reference link in the chat.
  • tabby-chat-panel/react: Enhance the initialization of useServer and useClient. Prevent duplicate rendering in React development mode.
  • ee/tabby-ui/chat: New page which embed the Chat component, it owner userServer
  • ee/tabby-ui/files/components/chat-side-bar.tsx: Embed /chat iframe with useClient

@wwayne wwayne changed the title Files chat panel feat(ui): add chat page and integrate with files May 11, 2024
@wwayne wwayne requested a review from wsxiaoys May 11, 2024 09:39
@wwayne wwayne marked this pull request as ready for review May 11, 2024 09:40
@wwayne wwayne marked this pull request as draft May 11, 2024 09:45
@wwayne wwayne marked this pull request as ready for review May 11, 2024 10:13
@wwayne wwayne marked this pull request as draft May 14, 2024 07:03
Base automatically changed from client-chat-panel to main May 15, 2024 01:54
clients/tabby-chat-panel/src/index.ts Outdated Show resolved Hide resolved
clients/tabby-chat-panel/src/react.ts Outdated Show resolved Hide resolved
@wwayne wwayne requested review from wsxiaoys and liangfung May 17, 2024 07:55
@wwayne wwayne marked this pull request as ready for review May 17, 2024 07:56
if (isInIframe)
return createServer(api)
}, [isInIframe])
return useMemo(() => serverRef.current, [serverRef.current])
Copy link
Member

Choose a reason for hiding this comment

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

return serverRef.current directly? no need to use memo

@wsxiaoys wsxiaoys merged commit 0f91131 into main May 17, 2024
4 checks passed
@wsxiaoys wsxiaoys deleted the files-chat-panel branch May 17, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants