Loading
feat(chat): add alternative response pager for retry feature
Summary
Add AlternativePager component to navigate between alternative LLM responses from retry attempts.
- Add
AlternativePagercomponent with chevron navigation (< 1/2 >) - Add
prependslot toMessageActionBarfor pager placement (left-most position) - Update
DuoChatMessageto supportalternativesprop and selected index tracking - Update
DuoChatConversationto passselectedAlternativesstate and bubble up selection events - Add Storybook stories and unit tests (17 tests for AlternativePager)
The pager allows users to navigate through different response variants when using the retry feature. Whichever alternative is displayed becomes the selected response for follow-up conversation context.
references:
- issue: Browse previous attempts after retry (gitlab#593010 - closed)
- epic: Manual Retry for Duo Chat Responses (gitlab-org#21289 - closed)
Screenshots/Demo
| header | header |
|---|---|
![]() |
![]() |
Test plan
- Unit tests pass for
AlternativePagercomponent - Unit tests pass for
MessageActionBarprepend slot - Verify Storybook stories render correctly
- Integration testing with gitlab repo MR
Related
- Integration MR: TBD (gitlab repo)
Edited by Tomas Bulva

