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

Add Hyper-V settings card styled adaptive cards #2489

Merged

Conversation

bbonaby
Copy link
Contributor

@bbonaby bbonaby commented Mar 29, 2024

Summary of the pull request

This PR builds off of #2488

It uses the new settings styled adaptive cards introduced in that PR. Please review that one for context. This PR creates the adaptive cards that the Hyper-V extension will send back to dev home once Dev Home requests its creation adaptive cards.

For the UI of how this is rendered see video in #2488

Note: once the above PR goes into the Feature branch I'll retarget this PR to that branch

References and relevant issues

Detailed description of the pull request / Additional comments

Validation steps performed

PR checklist

  • Closes #xxx
  • Tests added/passed
  • Documentation updated

{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.6",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure this will refuse to render, you have to make it version 1.5

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interestingly it renders perfectly with 1.6 still.

Comment on lines +161 to +170
{
{ "ImageDescription", GetMergedDescription(image) },
{ "SubDescription", image.Publisher },
{ "Header", image.Name },
{ "HeaderIcon", image.Symbol.Base64Image },
{ "ActionButtonText", "More info" },
{ "ContentDialogInfo", SetupContentDialogInfo(image) },
{ "ButtonToLaunchContentDialogLabel", buttonToLaunchContentDialogLabel },
{ "SecondaryButtonForContentDialogText", secondaryButtonForContentDialogText },
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: indendation

@bbonaby bbonaby mentioned this pull request Apr 5, 2024
3 tasks
@bbonaby bbonaby changed the base branch from user/bbonaby-add-adaptive-card-updates2 to main April 5, 2024 18:45
@bbonaby bbonaby merged commit 8faf847 into main Apr 5, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

4 participants