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

Conversation

@guimafelipe
Copy link
Contributor

Summary of the pull request

The default behavior for Adaptive Cards is to add the data JSON of an action altogether with the existent input data. This change implemented this behavior.

References and relevant issues

Detailed description of the pull request / Additional comments

When a action had data embed in it, it would override all the inputs data from the Adaptive Card. From the documentation, the data is actually intended to be combined with the existent input. This was limiting how widgets could behave and future changes.

Validation steps performed

PR checklist

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

Comment on lines +327 to +328
var objA = JObject.Parse(jsonStringA);
var objB = JObject.Parse(jsonStringB);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ugh, maybe not dotnet/runtime#31433

// We are treating any text inside a container with the "Warning" style
// as an actual warning to be announced.
// For now, the only types of containers widgets use are Containers and Columns. In the future,
// we may add Caroussels, Tables and Facts to this list.
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit:

Suggested change
// we may add Caroussels, Tables and Facts to this list.
// we may add Carousels, Tables and Facts to this list.

using Microsoft.UI.Xaml.Controls;
using Microsoft.Windows.Widgets;
using Microsoft.Windows.Widgets.Hosts;
using Newtonsoft.Json.Linq;
Copy link
Collaborator

@krschau krschau Sep 11, 2024

Choose a reason for hiding this comment

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

To encourage not overusing newtonsoft (and making it more clear where we do), can we remove the using and explicitly qualify where we need to down in the code?

@krschau krschau merged commit 9e0592b into main Sep 12, 2024
@lauren-ciha lauren-ciha mentioned this pull request Sep 23, 2024
1 task
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