microsoft / microsoft/pxt-microbit

JavaScript toolbox block colours missing when set as hue

Open
#6,739 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Blocks extension
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:

  1. Edit project https://makecode.microbit.org/_WcrDrgeA9L1P
  2. Check JavaScript mode toolbox of the added extensions
  3. 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
.
Image
.
Image
.
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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.