feat: enhance AI experience with welcome page and suggested prompts#133
Merged
feat: enhance AI experience with welcome page and suggested prompts#133
Conversation
…122) Add a rich welcome page to the chatbot with a heading, suggested prompts, and an embedded input so users can start chatting immediately without manually creating a session first. Also add an "Ask AI to write SQL" button to the SQL Console empty state to guide users toward AI features.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
- Fix chat API mock to use ApiEnvelope format ({ code: 0, data: {...} })
- Add openMockConnectionChatbot helper with localStorage setup
- Filter PostHog console errors in test assertions (no API key in test env)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #122
Key files
chatbot/components/empty.tsxChatWelcomecomponentchatbot/chatbot-page.client.tsxchatbot/thread/chatbox.tsxinitialPromptauto-submit supportsql-console/components/tabs/tab-empty.tsxpublic/locales/{en,zh}.jsontests/e2e/ai-experience.spec.tsTest plan
pnpm exec playwright test ai-experience— verify all 4 E2E tests pass