microsoft / microsoft/BotFramework-WebChat
Type out `useWebChatAPIContext`
Nobody has claimed this yet.
- 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
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
Additional context
[Bug]
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 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