Show all DuoChat Error Messages, inline as a response message (frontend)

Context

Currently, there are two types of error messages in the DuoChat interface:

  • A fixed error message at the top of the sidebar.
  • An inline error message that behaves like an LLM response but with error styling.

This issue tracks the changes needed to consolidate all error messages into the inline format and eventually remove the fixed error message at the top.

Screenshots

current State future State
Screenshot_2024-05-16_at_14.25.47 Screenshot_2024-05-16_at_14.41.53

Implementation Plan

  1. Update GitLab Monolith DuoChat Implementation: Modify the implementation to avoid using the DuoChat error prop and display all errors as DuoChat messages.
  2. Update DuoChat GitLab UI Component: Remove the error prop and the fixed error at the top (this will be a breaking change).
  3. Update VSCode Extension: Upgrade to the latest GitLab UI version and ensure all errors are passed to DuoChat as messages.
  4. Update JetBrains Extension: Upgrade to the latest GitLab UI version and ensure all errors are passed to DuoChat as messages.
Edited by Jannik Lehmann