microsoft / microsoft/BotFramework-WebChat

Using `adaptiveCard.selectAction` instead of `onClick`/`onKeyPress`

Open
#3,199 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

backlog feature-request needs-scope
Dominant language
HTML
Stars
1.8k
Forks
1.6k
Avg merge
22h 58m
Merged PRs (30d)
2

Description

In the old days, AC doesn't have JS hook functions.

In the new days, AC has the hook called selectAction. We should migrate over there.

https://github.com/compulim/BotFramework-WebChat/blob/575c91a5262324e846608db14cbc12e2599b70fd.buddy2/packages/bundle/src/adaptiveCards/Attachment/AdaptiveCardRenderer.js#L238-L238

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 packages/bundle/src/adaptiveCards/Attachment/AdaptiveCardRenderer.js at line 238 and inspect how the current onClick/onKeyPress hooks are wired. Migrate that interaction to Adaptive Cards' selectAction mechanism, with the old hook usage removed when the migration is complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.