Skip to content

feat(DATAGO-104907): Suggest potential things I can do when launching a new chat#1282

Open
amir-ghasemi wants to merge 2 commits intomainfrom
amir/feat-starter
Open

feat(DATAGO-104907): Suggest potential things I can do when launching a new chat#1282
amir-ghasemi wants to merge 2 commits intomainfrom
amir/feat-starter

Conversation

@amir-ghasemi
Copy link
Copy Markdown
Collaborator

@amir-ghasemi amir-ghasemi commented Mar 28, 2026

This pull request introduces a new "starter cards" feature to the chat interface, providing users with intelligent, LLM-generated (or default) suggestions to help them start a conversation. The implementation includes backend API integration, UI components for displaying and interacting with starter cards, and logic to handle the empty chat state with a personalized greeting. Additionally, tests and exports are updated to support the new feature.

Starter Cards Feature Implementation

  • Added a new API layer for fetching LLM-generated starter card suggestions, including query keys, service functions, and a custom React Query hook (useStarterSuggestions). [1] [2] [3] [4]
  • Created the ChatStarterCards component, which displays a set of suggestion cards (either LLM-generated or default), handles user interactions (expanding cards, selecting options), and emits events to trigger chat input submission.
  • Exported ChatStarterCards from the chat components index for use elsewhere in the app.

Chat Page Integration and UX Enhancements

  • Integrated ChatStarterCards into the ChatPage component, displaying it in the empty chat state alongside a personalized greeting based on the user's name or email. Added logic to determine when the chat is empty and to handle starter card option clicks by dispatching a custom event. [1] [2] [3] [4]
  • Updated ChatInputArea to listen for the starter card submit event, automatically submitting the selected prompt as a user message.

Testing and Mocks

  • Updated chat page tests to mock the authentication context and the new ChatStarterCards component, ensuring test coverage for the new feature. [1] [2]
image image

@github-actions
Copy link
Copy Markdown

✅ FOSSA Guard: Licensing (SolaceLabs_solace-agent-mesh) • PASSED

Compared against main (4a355dab7572521050d2f26f9dae2b267ccddcbf) • 0 new, 6 total (6 in base)

Scan Report | View Details in FOSSA

@github-actions
Copy link
Copy Markdown

✅ FOSSA Guard: Vulnerability (SolaceLabs_solace-agent-mesh) • PASSED

Compared against main (4a355dab7572521050d2f26f9dae2b267ccddcbf) • 0 new, 3 total (3 in base)

Scan Report | View Details in FOSSA

@github-actions
Copy link
Copy Markdown

WhiteSource Policy Violation Summary

✅︎ No Blocking Whitesource Policy Violations found in solaceai/solace-agent-mesh-ui-pr-1282!

@sonarqube-solacecloud
Copy link
Copy Markdown

Quality Gate failed Quality Gate failed

Failed conditions
1 Security Hotspot
50.7% Coverage on New Code (required ≥ 60%)

See analysis details on SonarQube

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.

1 participant