microsoft / microsoft/AdaptiveCards

[Rendering] Table type not working with JS sdk v3.0.5

Open
#9,187 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Target Platforms

NodeJS

SDK Version

3.0.5

Application Name

React App

Problem Description

Javascrpt sdk v3.0.4 was correctly rendering the Table type.
But when upgrading to v3.0.5, Table type is not at all rendered.

Screenshots

No response

Card JSON
{
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "type": "AdaptiveCard",
  "version": "1.5",
  "body": [
    {
      "type": "TextBlock",
      "text": "Sample Table",
      "weight": "Bolder",
      "size": "Medium"
    },
    {
      "type": "Table",
      "firstRowAsHeaders": true,
      "gridStyle": "default",
      "columns": [
        { "width": 1 },
        { "width": 2 }
      ],
      "rows": [
        {
          "type": "TableRow",
          "cells": [
            {
              "type": "TableCell",
              "items": [{ "type": "TextBlock", "text": "Name" }]
            },
            {
              "type": "TableCell",
              "items": [{ "type": "TextBlock", "text": "Status" }]
            }
          ]
        },
        {
          "type": "TableRow",
          "cells": [
            {
              "type": "TableCell",
              "items": [{ "type": "TextBlock", "text": "VM-001" }]
            },
            {
              "type": "TableCell",
              "items": [{ "type": "TextBlock", "text": "Healthy" }]
            }
          ]
        },
        {
          "type": "TableRow",
          "cells": [
            {
              "type": "TableCell",
              "items": [{ "type": "TextBlock", "text": "VM-002" }]
            },
            {
              "type": "TableCell",
              "items": [{ "type": "TextBlock", "text": "Warning" }]
            }
          ]
        }
      ]
    }
  ]
}
Sample Code Language

No response

Sample Code

No response

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 by reproducing the supplied Adaptive Card in a React app with NodeJS and JavaScript SDK 3.0.5, then compare the result with SDK 3.0.4. Trace the JavaScript SDK's Table rendering path; done means the provided Table card renders in 3.0.5 as it did previously.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, react
Domain
frontend
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.