microsoft / microsoft/AdaptiveCards

[Designer] Errors are shown when using templating expressions

Open
#7,775 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Designer Bug
Dominant language
C#
Stars
2k
Forks
595
Avg merge
1d 19h
Merged PRs (30d)
1

Description

Problem Description

If you are using a templated string as a property value within the designer, errors are displayed to the user.

Expected behavior

There should not be errors shown to the user if a property value is set to a templating expression.

Note: this does not impact functionality.

Card JSON
{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.5",
    "body": [
        {
            "type": "Container",
            "items": [
                {
                    "type": "TextBlock",
                    "text": "THIS IS A TEST ${priceChange}",
                    "wrap": true,
                    "color": "${if(priceChange >= 0, 'good', 'attention')}"
                }
            ]
        }
    ]
}

Data

{
    "priceChange": 4
}
Screenshot
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the Designer by reproducing the issue with the supplied Card JSON and data, focusing on the templated text and color properties. Confirm that the designer currently displays errors and that the card otherwise functions; done means those errors are no longer shown for templating expressions.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
design
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.