feat: add ability to delete all instruction steps - #1599
Draft
maxelkins wants to merge 4 commits into
Draft
Conversation
maxelkins
temporarily deployed
to
previews/1599/merge
August 14, 2026 16:00 — with
GitHub Actions
Inactive
Contributor
Author
|
Bold radio text is incorrect (shows in standalone) another symptom of react portals moving outside shadow dom. https://github.com/RaspberryPiFoundation/digital-editor-issues/issues/1716 |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds deliberate scope selection when removing instruction steps.
Changes:
- Supports removing the current step or all steps.
- Updates modal copy, controls, styling, and translations.
- Adds tests for scope selection and removal behavior.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
src/utils/instructionSteps.js |
Defines removal scope constants. |
src/components/Modals/RemoveInstructionStepModal.jsx |
Adds scope radio controls. |
src/components/Modals/GeneralModal.jsx |
Supports custom modal classes. |
src/components/Menus/Sidebar/InstructionsPanel/InstructionsPanel.jsx |
Implements scoped removal behavior. |
src/components/Menus/Sidebar/InstructionsPanel/InstructionsPanel.test.jsx |
Tests removal scopes and defaults. |
src/assets/stylesheets/Modal.scss |
Limits input styling to text inputs. |
src/assets/stylesheets/Instructions.scss |
Styles the removal modal. |
public/translations/en.json |
Adds updated removal copy. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
maxelkins
marked this pull request as draft
August 18, 2026 08:54
maxelkins
temporarily deployed
to
previews/1599/merge
August 18, 2026 08:54 — with
GitHub Actions
Inactive
maxelkins
force-pushed
the
remove-all-instruction-steps
branch
from
August 18, 2026 08:58
538bf45 to
2be0d17
Compare
maxelkins
temporarily deployed
to
previews/1599/merge
August 18, 2026 08:58 — with
GitHub Actions
Inactive
maxelkins
force-pushed
the
remove-all-instruction-steps
branch
from
August 20, 2026 10:49
2be0d17 to
770fccb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Teachers editing instructions can now remove every step at once, not just the step they are on. The remove confirmation modal offers a choice of scope, defaulting to the current step so that clearing everything is always a deliberate selection.
Fixes https://github.com/RaspberryPiFoundation/digital-editor-issues/issues/1705
Changes
FieldsetandRadioInputcomponentsclassNameto be passed throughGeneralModalScreenshots
Screenshot.2026-08-14.at.17.18.05.mp4