Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

Makecode Role UI inconsistencies聽#1370

Description

@ross-inksmith

Different parts of the UI will show different subsets of roles, or use different names
(Follow up from Tom Ball (@tballmsft)'s visit 馃憢)
#1352 overlaps with this.

Fig 1: dropdown

Fig 2: dropdown4444

Fig 3: clientts

Fig 4:
javascript

Fig 5: available-roles

Fig 6: roles-after-use

  • Roles defined using the Modules > Configure button display in the dropdown menu (Fig 1), but don't complete with intellisense in javascript. (Actually I'm not sure how to use those in javascript at all)
  • Roles defined in extension code will display using the variable name rather than the constructor name. (Fig 3, Code from pxt-jacdac/led/client.ts). Works when annotated
  • Roles defined in javascript only show up if an annotated such as //% fixedInstance whenUsed block="LED 4444", don't use either the variable or constructor names (Figs 1, 2, 4). Since this is also a comment, it's stripped if you switch back and forth between blocks and javascript.
  • Roles only show up in the simulator dialog once they've been used in a block (Fig 5, 6)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions