BotFramework-Emulator icon indicating copy to clipboard operation
BotFramework-Emulator copied to clipboard

Emulator does not render valid adaptive card in an activity

Open chrimc62 opened this issue 5 years ago • 9 comments

Version of emulator: 4.9.1

The below activity has a valid adaptive card that renders properly in adaptivecards.io. In emulator it looks like the below. It seems related to having a curly bracest in the string value. If I change it to obj= and remove the trailing curly brace it works fine.

In emulator (wrong): image

In adaptive cards designer (right): image

Activity:

{
    "type": "message",
    "attachments": [
        {
            "contentType": "application/vnd.microsoft.card.adaptive",
            "content": {
                "type": "AdaptiveCard",
                "version": "1.0",
                "body": [
                    {
                        "type": "TextBlock",
                        "text": "simple",
                        "size": "large"
                    },
                    {
                        "type": "FactSet",
                        "facts": [
                            {
                                "title": "due",
                                "value": "{timex: [2020-06-01], type: date}"
                            }
                        ]
                    }
                ],
                "$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
            }
        }
    ]
}

chrimc62 avatar May 29 '20 23:05 chrimc62

We should test this in Web Chat.

tonyanziano avatar May 29 '20 23:05 tonyanziano

Possibly related to Web Chat bug #3165

stevkan avatar Jun 01 '20 15:06 stevkan

This is still an issue. This: image Renders as this: image

chrimc62 avatar Sep 04 '20 01:09 chrimc62

I just tested this with the latest Web Chat and the bug is still present in 4.10.0.

The issue (https://github.com/microsoft/BotFramework-WebChat/issues/3165) has been labeled for R11 and can be tracked there.

tonyanziano avatar Sep 08 '20 21:09 tonyanziano

This was not fixed in R11 or R12. Is it ever going to be fixed?

chrimc62 avatar Mar 16 '21 01:03 chrimc62

@chrimc62 this is a Web Chat bug so it will be present in Emulator until it is fixed in Web Chat. If you look at https://github.com/microsoft/BotFramework-WebChat/issues/3165 you can see that it was moved into the R13 milestone last week.

tonyanziano avatar Mar 16 '21 15:03 tonyanziano

In progress now - sorry @chrimc62 for the wait. Low on manpower haha.

corinagum avatar Mar 16 '21 17:03 corinagum

Still not fixed in version 4.14.1 of emulator, how's it going?

amazingYolk avatar Jun 13 '22 09:06 amazingYolk

Still not fixed in version 4.14.1 of emulator, how's it going?

image

amazingYolk avatar Jun 13 '22 09:06 amazingYolk