aws-lex-web-ui icon indicating copy to clipboard operation
aws-lex-web-ui copied to clipboard

Getting right symbol on message.

Open vinayburam opened this issue 1 year ago • 2 comments

Hello team, i am facing one strange issue. Getting right symbol one some messages not all mesages. please find below snap image

vinayburam avatar Aug 09 '24 08:08 vinayburam

Oh so you did not code the checkmark its just appearing? I just double-checked our code and I don't see anywhere that we have a checkmark icon coded, but maybe I'm missing something. Is it your own custom CSS?

atjohns avatar Aug 09 '24 20:08 atjohns

@vinayburam That’s default at Vue showDialogStateIcon: true if you aren’t overriding @ loader config

DialogState of the message on bot side per lexv2 runtime schema/api: Failed or ReadyForFulfillment (Fulfilled is no symbol aka icon — just how the frontend ships today)

  • https://github.com/aws-samples/aws-lex-web-ui/blob/22f8273b83910b88809345639bfc963be5e87793/lex-web-ui/src/components/Message.vue#L296-L309
  • https://github.com/aws-samples/aws-lex-web-ui/blob/22f8273b83910b88809345639bfc963be5e87793/lex-web-ui/src/config/index.js#L230-L231
  • https://github.com/aws-samples/aws-lex-web-ui/blob/22f8273b83910b88809345639bfc963be5e87793/src/config/default-lex-web-ui-loader-config.json#L48

You can modify the icons with ultimate error handling following the DialogState type. Or just set ”showDialogStateIcon”: false in **config.json if bot text and responseCardButtons are only highlighting an inconsistency to your prompt feedback.

israelias avatar Aug 12 '24 21:08 israelias