Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Add Hyper-V settings card styled adaptive cards - #2489

Merged
bbonaby merged 18 commits into
mainfrom
user/bbonaby/add-hyper-v-code-for-creation-adaptive-cards
Apr 5, 2024
Merged

Add Hyper-V settings card styled adaptive cards #2489
bbonaby merged 18 commits into
mainfrom
user/bbonaby/add-hyper-v-code-for-creation-adaptive-cards

Conversation

@bbonaby

@bbonaby bbonaby commented Mar 29, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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.

@bbonaby
bbonaby marked this pull request as ready for review March 31, 2024 10:09
@bbonaby
bbonaby requested review from huzaifa-d and sshilov7 April 1, 2024 21:45
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
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: indendation

Comment thread HyperVExtension/src/HyperVExtension/Providers/HyperVProvider.cs
@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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants