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

Optimize Teams adaptive card style to be similar in readability and features to former webhooks #956

Open
psych0d0g opened this issue Oct 15, 2024 · 0 comments

Comments

@psych0d0g
Copy link

psych0d0g commented Oct 15, 2024

I would like to suggest some changes to the schema, so that the design of the new adaptive cards resemble more closely the known and used to webhooks messages.

  1. Can we get the following added to the msteams schema so that the posted cards use more of the available screen estate before text-wrapping occurs?
    "msteams": {  
        "width": "Full"  
    },  

see for reference:
https://learn.microsoft.com/en-us/answers/questions/932563/can-i-adjust-the-max-width-of-bot-chat-card
https://learn.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-format?tabs=adaptive-md%2Cdesktop%2Cconnector-html#sample-adaptive-card-with-full-width

  1. i would like to request a background image for the adaptive card:
    "backgroundImage": {
        "url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAAXNSR0IArs4c6QAAABBJREFUGFdj+M/A8J8BRAAAE/YD/dtvUXUAAAAASUVORK5CYII=",
        "fillMode": "RepeatHorizontally"
    }

this example would add a 2pixel height red line ontop of the adaptive card (for failures and errors on kustomizations.
and another one with a 2px height green line would be nice for successful reconciliations aswell :)

example red line card:

image

these changes should bring the adaptive cards into a more usable state, comparison of the current situation and diffrence here:
image

@psych0d0g psych0d0g changed the title increase Teams adaptive card notification width Optimize Teams adaptive card style to be similar in readability and features to former webhooks Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant