Skip to content

feat: improve chat page cold start experience#140

Merged
dory-finn merged 1 commit intomainfrom
feat/chat-cold-start-improvements
Apr 2, 2026
Merged

feat: improve chat page cold start experience#140
dory-finn merged 1 commit intomainfrom
feat/chat-cold-start-improvements

Conversation

@solarhell
Copy link
Copy Markdown
Collaborator

@solarhell solarhell commented Apr 2, 2026

Summary

  • Hide sidebar when empty: Do not render the Sessions Sidebar when there are no sessions. Once the user sends their first message, the session is created and the sidebar appears automatically.
  • Schema-aware suggestions: Replace hardcoded suggested questions with dynamically generated ones based on actual table names (e.g. orders → "Show daily order trends") and column names (e.g. created_at → "Trend in the last 7 days"). Falls back to hardcoded suggestions when schema is unavailable.
  • Input guidance: Updated placeholder to Ask about your data… Try: "Top 10 users by revenue last week" and auto-focus the input textarea on page load.

Closes #139

Test plan

  • Open chat page with no existing sessions — sidebar should be hidden, suggestions and input visible
  • Verify suggestions reflect actual database tables/columns when schema is loaded
  • Verify fallback suggestions appear when schema is unavailable or loading
  • Send a message — session should be created and sidebar should appear
  • Delete all sessions — should return to welcome state with sidebar hidden
  • Verify input textarea is auto-focused on page load
  • Verify new placeholder text is displayed
  • Test compact mode (copilot) — sidebar hide logic uses same conditional, verified in code

- Hide sessions sidebar when no sessions exist, auto-show on first message
- Generate schema-aware suggested questions based on actual table/column names
- Add welcoming placeholder text and auto-focus input on page load

Closes #139
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dory Ready Ready Preview, Comment Apr 2, 2026 10:10am
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
dory-admin Ignored Ignored Apr 2, 2026 10:10am
dory-beta Ignored Ignored Apr 2, 2026 10:10am

Request Review

@solarhell
Copy link
Copy Markdown
Collaborator Author

solarhell commented Apr 2, 2026

Preview Screenshot

Verified locally:

  • Sidebar hidden when no sessions
  • New placeholder text displayed
  • Input auto-focused on page load
  • Fallback suggestions shown when no database selected
  • Sidebar appears after sending a message
  • Sidebar disappears after deleting all sessions

@solarhell
Copy link
Copy Markdown
Collaborator Author

screenshot

Copy link
Copy Markdown
Contributor

@dory-finn dory-finn left a comment

Choose a reason for hiding this comment

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

LGTM

@dory-finn dory-finn merged commit 203e4c2 into main Apr 2, 2026
5 of 6 checks passed
@solarhell solarhell deleted the feat/chat-cold-start-improvements branch April 3, 2026 03:37
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.

Chat Page Cold Start Improvements

2 participants