DAP - Added empty state for trial and sub

What does this MR do and why?

This MR adds avatar support for AI foundational chat agents and introduces an improved onboarding experience for users with active trials or subscriptions.

Key features:

  • Agent Avatars: Adds visual avatars for each foundational chat agent (GitLab Duo, Planner, Security Analyst, Data Analyst) displayed throughout the UI
  • New Empty State Component: Creates ActiveTrialOrSubscriptionEmptyState that shows when users first access the chat with an active trial or subscription
  • Agent Discovery: Displays up to 2 suggested agents and predefined chat prompts to help users explore available agents
  • Backend Support: Adds trial/subscription status detection and passes this information to the frontend

References

Screenshots or screen recordings

image.png image.png

How to set up and validate locally

  • Make sure you have a namespace which is either on free trial or already has an active subscription
  • Open any page
  • Click on "Gitlab Duo chat history" from the right sidebar icon
    • image.png
  • Clear the history so we can start a new thread
  • Create a new gitlab duo chat thread
  • You should see new empty state, screenshots attached above. ⬆️

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #585916

Merge request reports

Loading