Skip to content

feat: add suggested prompts on empty chat - #204

Merged
Aharshi3614 merged 2 commits into
Aharshi3614:mainfrom
Yuva-Deekshitha-N:feature/issue-126-suggested-prompts
Aug 4, 2026
Merged

feat: add suggested prompts on empty chat#204
Aharshi3614 merged 2 commits into
Aharshi3614:mainfrom
Yuva-Deekshitha-N:feature/issue-126-suggested-prompts

Conversation

@Yuva-Deekshitha-N

Copy link
Copy Markdown
Contributor

Resolves #126

Description

  • Display suggested prompts when the chat is empty
  • Clicking a prompt inserts it into the input box
  • Prompts hide after the first message is sent
  • Prompts reappear after clearing the chat

Related Issue

Fixes #126


Type of Change

  • Bug fix
  • New feature
  • Enhancement
  • Documentation update
  • Refactoring
  • Performance improvement
  • Tests
  • Other (please specify)

Changes Made

  • Added hasStarted state to track if conversation has begun
  • Added SUGGESTED_PROMPTS array with 4 example questions
  • Rendered prompt chips above response area, hidden after first query
  • Added styles for .suggested-prompts and .prompt-chip in App.css

Testing

  • Tested locally
  • Existing tests pass
  • Added new tests (if applicable)

Additional Notes:


Screenshots (if applicable)


Checklist

  • My code follows the project's coding style.
  • I have linked the related issue.
  • I have tested my changes.
  • I have updated documentation where necessary.
  • My changes do not introduce new warnings or errors.
  • The project builds successfully.
  • This PR only addresses the linked issue.

@Aharshi3614
Aharshi3614 merged commit a5ca1a0 into Aharshi3614:main Aug 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Prompt Suggestions on Empty Chat Screen

2 participants