microsoft / microsoft/AdaptiveCards

[Designer] tries to load twitter profile picture

Open
#4,283 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Platform

  • React

Package Versions

  • adaptivecards-designer v0.7.4

Details

I setup the AdaptiveCard Desinger using React js and the adaptivecards-designer npm package like shown in the designers readme.

Now after attaching the desinger, I am setting a card using the designer.setCard() function. Looking at the designer in the built app, the set card is instantly displayed. However, Microsoft Edge (Chromium) and privacy addons warn about an url call, which tried to load the twitter profile picture of @matthidinger. It seems that the default example card is loaded as soon as the designer is attached. The card is defined as defaultTemplatePayload using defaultDataPayload in source/nodejs/adaptivecards-designer/src/constants.ts.

Is there a way to overwrite the defaultTemplatePayload or defaultDataPayload, so no calls to twitter are made?

Thank you very much.

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 with source/nodejs/adaptivecards-designer/src/constants.ts and the designer README example, focusing on defaultTemplatePayload and defaultDataPayload. Trace what is loaded when the React designer is attached before setCard() runs. Done means the default setup no longer requests the Twitter profile image, or provides a documented way to replace the default payloads.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.