scratchfoundation / scratchfoundation/scratch-blocks

Undoing removing a block which had a comment attached does not restore the comment

Open
#1,936 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Expected Behavior

Undoing anything that gets rid of a block should make the block and attached comments come back.

Actual Behavior

Undoing doesn't restore comments!

Steps to Reproduce
  1. Create a new project and drag a block out into the workspace.
  2. Attach a comment to the block (right click -> add comment).
  3. Drag the block back into the palette. This should delete the comment too.
  4. Press ^-Z to undo. Note that the comment is not restored.
Operating System and Browser

Firefox 67.0b15, Linux (Debian).

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 in a new project using the block, attached comment, palette removal, and undo steps described above. Trace how removing a block records undo state and how attached comments are handled; done means undo restores both the block and its comment in Firefox on Linux.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.