microsoft / microsoft/AdaptiveCards
[Designer] tries to load twitter profile picture
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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