Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rendering] Teams adaptive cards automatically obscured in channels on the New Channels Experience/Teams 2.1 client #8641

Open
z3019494 opened this issue Aug 7, 2023 · 13 comments

Comments

@z3019494
Copy link

z3019494 commented Aug 7, 2023

Target Platforms

Other

SDK Version

1.4

Application Name

Microsoft Teams 2.0/Microsoft Teams Chat

Problem Description

Teams 2.1 or the Teams 1.0 New Channel Experience requires the user to click on the "see more" button as most of an adaptive card is obscured.

This was not the case in

  • The Teams 1.0 client classic channels experience
  • Teams chat (1.0 or 2.1)

Screenshots

Teams 2.1 or the Teams 1.0 new channels experience, requiring the user to click on "see more" to view an entire adaptive card:
image

Teams 1.0 classic channel experience, renders nicely without obscuring any information.
image

Card JSON

{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.4",
    "msteams": {
        "width": "full"
    },
    "body": [
        {
            "type": "Container",
            "items": [
                {
                    "type": "ColumnSet",
                    "columns": [
                        {
                            "type": "Column",
                            "width": "auto",
                            "items": [
                                {
                                    "type": "Image",
                                    "altText": "Alert",
                                    "url": "https://normanhurb-h.schools.nsw.gov.au/content/dam/doe/sws/schools/n/normanhurb-h/icons/exam.png",
                                    "width": "75px",
                                    "selectAction": {
                                        "type": "Action.OpenUrl",
                                        "url": "https://teams.microsoft.com/l/stage/2a527703-1f6f-4559-a332-d8a7d288cd88/0?context=%7B%22contentUrl%22%3A%22https%3A%2F%2Fschoolsnsw.sharepoint.com%2F%3Ab%3A%2Fs%2FN1XHSGBP%2Fmathematics%2FEaa5SGAOfe9ImIY94m_NJQ4BYrXhidPy87eYHN7cQl8egQ%22%2C%22websiteUrl%22%3A%22https%3A%2F%2Fschoolsnsw.sharepoint.com%2F%3Ab%3A%2Fs%2FN1XHSGBP%2Fmathematics%2FEaa5SGAOfe9ImIY94m_NJQ4BYrXhidPy87eYHN7cQl8egQ%22%2C%22name%22%3A%22Notification%20for%20Year%2009%202023%20Assessment%20Task%203%22%7D",
                                        "id": "10"
                                    }
                                }
                            ]
                        },
                        {
                            "type": "Column",
                            "width": "stretch",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "text": "**Assessment Task Notification**",
                                    "weight": "Bolder",
                                    "size": "Large",
                                    "wrap": true,
                                    "color": "Accent"
                                },
                                {
                                    "type": "TextBlock",
                                    "text": "2023 Year 09 Assessment Task 3",
                                    "wrap": true,
                                    "spacing": "None",
                                    "color": "Attention",
                                    "weight": "Bolder",
                                    "size": "Large"
                                }
                            ],
                            "verticalContentAlignment": "Center"
                        }
                    ]
                }
            ],
            "style": "warning",
            "bleed": true
        },
        {
            "type": "TextBlock",
            "text": "Dear <atTag><tagId>MDVhMGU2OWEtNDE4YS00N2MxLTljMjUtOTM4NzI2MWJmOTkxIyM1NzI3MjgxNi0yMjMxLTQ5ZjUtOTFiZS03NGY0NmY2Y2JhYzIjI3RRYWNHUXNwNEQ%3D</tagId><groupId>57272816-2231-49f5-91be-74f46f6cbac2</groupId></atTag>, please note that a new Assessment Task Notification is now available.",
            "wrap": true
        },
        {
            "type": "TextBlock",
            "text": "The following resources for revision will be provided no later than these dates:",
            "weight": "Bolder",
            "color": "Accent",
            "wrap": true,
            "separator": true
        },
        {
            "type": "FactSet",
            "facts": [
                {
                    "title": "Past Paper(s):",
                    "value": "Thursday, August 3, 2023"
                },
                {
                    "title": "Past Paper Solution(s):",
                    "value": "Monday, August 14, 2023"
                }
            ]
        },
        {
            "type": "Container",
            "bleed": true,
            "style": "emphasis",
            "items": [
                {
                    "type": "TextBlock",
                    "text": "Actions",
                    "wrap": true,
                    "weight": "Bolder",
                    "color": "Accent"
                },
                {
                    "type": "ActionSet",
                    "spacing": "None",
                    "actions": [
                        {
                            "type": "Action.OpenUrl",
                            "title": "Preview detailed notification for Year 09 2023 Assessment Task 3 (PDF)",
                            "url": "https://teams.microsoft.com/l/stage/2a527703-1f6f-4559-a332-d8a7d288cd88/0?context=%7B%22contentUrl%22%3A%22https%3A%2F%2Fschoolsnsw.sharepoint.com%2F%3Ab%3A%2Fs%2FN1XHSGBP%2Fmathematics%2FEaa5SGAOfe9ImIY94m_NJQ4BYrXhidPy87eYHN7cQl8egQ%22%2C%22websiteUrl%22%3A%22https%3A%2F%2Fschoolsnsw.sharepoint.com%2F%3Ab%3A%2Fs%2FN1XHSGBP%2Fmathematics%2FEaa5SGAOfe9ImIY94m_NJQ4BYrXhidPy87eYHN7cQl8egQ%22%2C%22name%22%3A%22Notification%20for%20Year%2009%202023%20Assessment%20Task%203%22%7D",
                            "id": "0",
                            "iconUrl": "https://normanhurb-h.schools.nsw.gov.au/content/dam/doe/sws/schools/n/normanhurb-h/icons/pdf.png"
                        },
                        {
                            "type": "Action.OpenUrl",
                            "title": "View Learning Programs",
                            "url": "https://schoolsnsw.sharepoint.com/:f:/s/293YP4GC/EpYRilAICVtDpEHcOejpFl0Ba6t73Hr7JzT0SI5j_rEBFA?e=SWDaQl",
                            "id": "1",
                            "iconUrl": "https://normanhurb-h.schools.nsw.gov.au/content/dam/doe/sws/schools/n/normanhurb-h/icons/sharepoint.png"
                        }
                    ]
                }
            ]
        }
    ]
}

Sample Code Language

No response

Sample Code

No response

@z3019494 z3019494 changed the title [Rendering] Teams adaptive cards automatically obscured in channels on the Teams 2.1 client [Rendering] Teams adaptive cards automatically obscured in channels on the New Channels Experience/Teams 2.1 client Aug 7, 2023
@Schuchie
Copy link

Schuchie commented Oct 18, 2023

I am also affected.

Looks like its related:
MicrosoftDocs/msteams-docs#8091

@WilbertWalrus
Copy link

This is still not fixed in version 1.6.00.29964 (64-bit)

@ChetanSharma-msft — not everyone is on Channels 2.0 yet

@Prasad-MSFT
Copy link

Hi @z3019494 - Could you please let us know in which version you tested this and observed that its fixed as mentioned here?

@z3019494
Copy link
Author

z3019494 commented Dec 6, 2023

@Prasad-MSFT :

For me, it's been fixed on Teams 2.1 web:
image

...as well as 23306.3314.2555.9628

image

@z3019494
Copy link
Author

z3019494 commented Dec 6, 2023

I have a suspicion it's been fixed just as Loop Components in channels is being rolled out... 😂

@havedill
Copy link

havedill commented Dec 11, 2023

@Prasad-MSFT :
...as well as 23306.3314.2555.9628

I'm seeing this issue on my version, even now

image

@Prasad-MSFT
Copy link

@Schuchie , @WilbertWalrus , @havedill - We checked this using New Teams (Teams 2.1), and the card is rendering properly.
image

@havedill
Copy link

Maybe it's a webhook specific issue then? I'm still seeing this on all my clients on the new teams mac and windows. Going to the old teams fixes the issue. Jira and Zabbix both use webhooks to create these

image

image

image

@havedill
Copy link

I just realized there is a duplicate thread going on. More info here:

MicrosoftDocs/msteams-docs#8091 (comment)

@havedill
Copy link

havedill commented Jan 26, 2024

I can reproduce with this simple bash as well to my webhook connector.

JSON="{\"title\": \"${env^^} Incoming Server Updates\", \"themeColor\": \"Red\", \"text\": \"<br>
$MESSAGE
\" }"

curl -k -H "Content-Type: application/json" -d "${JSON}" "${TEAMS_URL}"

@Prasad-MSFT
Copy link

@havedill - We tried below using simple bash to our webhook connector and observed below behaviour in Teams classic and New Teams as well:
curl.exe -H "Content-Type:application/json" -d "{ '@type': 'MessageCard', '@context': 'https://schema.org/extensions', 'summary':'\uD83D\uDCAC <b>Summary test</b> on', 'themeColor': '#00FF00', 'title': '\uD83D\uDCAC <b>Sebastian commented</b> on', 'sections':[{'text': 'The actionable messages include six visible buttons on the card. Each button is defined in the potentialAction property of the message by using ActionCard actions, each with an input type, a text field, a date picker, or a multiple-choice list. Each ActionCard has an associated action, for example HttpPOST.For the HttpPOST action, the bearer token is included with the requests. This token includes the Microsoft Entra identity of the Microsoft 365 user who took the action.You can also use this JSON to create cards containing rich inputs, such as text entry, multiselect, or selecting date and time. The code that generates the card and posts it to the webhook URL can run on any hosted service. These cards are defined as part of actionable messages and are also supported in cards used in Teams bots and message extensions.'}]}" $WEBHOOKURL

image

Could you please confirm if you are observing the same or not?

@Prasad-MSFT
Copy link

Update:
We have reopened the bug which was already raised and made engineering team aware about the reoccurrence of the issue. Once we get further update, we will inform in this thread.

Thanks again!

@WilbertWalrus
Copy link

@Prasad-MSFT — any updates, do we have to wait another year for this to be fixed 🙈

I've lost count how many times I've had to click "see more" just to see the 2nd or 3rd line of a short channel message.

Collectively, just think of how many extra clicks millions of Microsoft Teams users performed in the past year+, that collectively effort could have ended world hunger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants