microsoft / microsoft/pxt-microbit
JavaScript toolbox block colours missing when set as hue
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 804
- Forks
- 721
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 2
Description
Describe the bug
Arising from support ticket https://support.microbit.org/helpdesk/tickets/98102 (private)
The JavaScript mode toolbox doesn't display blocks properly when the block colour is set by hue.
To Reproduce
Steps to reproduce the behavior:
- Edit project https://makecode.microbit.org/_WcrDrgeA9L1P
- Check JavaScript mode toolbox of the added extensions
- See error
Expected behavior
The JavaScript mode toolbox shows the correct colour blocks.
If hue is not fully supported, should the docs be updated?
Screenshots
.
.
.
micro:bit version (please complete the following information):
not hardware related
Desktop (please complete the following information):
- OS: [e.g. iOS] Windosw
- Browser [e.g. chrome, safari] Chrome
- Version [e.g. 22]
Additional context
Extensions not showing blocks in JavaScript toolbox:
https://github.com/coderdojoolney/pxt-olney
https://github.com/letstalkscience/pxt-cozir
https://github.com/monkmakes/plant-monitor-makecode
https://github.com/sgbotic/pxt-sgbotic-ultimate-sr04-rgb
https://github.com/tinkertanker/pxt-ir-receiver
https://github.com/tinkertanker/pxt-range-vl53l0x
https://github.com/tinkertanker/pxt-rotary-encoder-ky040
https://github.com/tinkertanker/pxt-tinkercademy-microbot
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
Reproduce the issue using the linked MakeCode project and inspect the JavaScript mode toolbox handling for blocks whose colour is specified by hue. Confirm the affected extensions, then verify that their toolbox blocks display the expected colours or that the documentation accurately describes hue support.
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
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100