scratchfoundation / scratchfoundation/scratch-blocks

Add Comment ID to comment DOM

Open
#1,696 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ergonomics
Dominant language
JavaScript
Stars
2.8k
Forks
1.6k
Avg merge
4h 51m
Merged PRs (30d)
12

Description

#1687 brings in changes from Blockly which expose block IDs in the block DOM for debugging. It does something similar for core/comment so that block comments have their owner block's ID. ScratchBlockComment should probably be augmented to also (or as a replacement for the block ID) have the comment's ID exposed.

See discussion here: https://github.com/LLK/scratch-blocks/pull/1687#discussion_r211274399

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

Review the changes from #1687 and the linked discussion first, then locate ScratchBlockComment and its comment DOM generation. Expose the comment's ID in the DOM, clarifying whether it should supplement or replace the owner block ID; verify the resulting DOM matches the debugging purpose described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.