microsoft / microsoft/BotFramework-WebChat

Type out `useWebChatAPIContext`

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

Nobody has claimed this yet.

Bot Services customer-reported
Dominant language
HTML
Stars
1.8k
Forks
1.6k
Avg merge
22h 58m
Merged PRs (30d)
2

Description

Screenshots

Version

main (4.15.3-0)

Describe the bug

useWebChatAPIContext should be typed out so its caller has good typing to use, e.g. useCreateActivityStatusRenderer.

This is raised in PR #4362. When I try to type it out, it breaks a few places. So, I am scoping it as another issue so we don't submit a huge code chunk at once.

Steps to reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Additional context

[Bug]

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 reviewing the useWebChatAPIContext hook and its caller, useCreateActivityStatusRenderer, in the changes raised by PR #4362. Trace the places that break when the context is typed, then verify that callers have useful typing and that the affected checks pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
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.