openedx / openedx/frontend-app-authoring
Problem component is created even after clicking Cancel
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 17
- Forks
- 218
- Avg merge
- 9d 20h
- Merged PRs (30d)
- 20
Description
Description
When adding a new Problem component in a unit, clicking Cancel does not prevent the component from being created.
The component still appears in the unit after cancelling the creation/editing flow. This may be expected if the component is created immediately when selected, but the behavior is confusing because Cancel usually implies that the action should be discarded.
I'm opening this issue to confirm whether this is the expected behavior or whether cancelling should remove the newly created component.
Steps to reproduce
- Go to Course Authoring > Course > Add unit > Add new component.
- Open a course unit.
- Select Add New Component.
- Select Problem.
- When the problem editor opens, click Cancel instead of saving.
- Return to the unit page.
- Check whether the component was created.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Course Authoring flow in the issue: add a unit, choose Add New Component, select Problem, then click Cancel. Trace the Problem editor's creation and cancellation entry points to determine when the component is persisted. Confirm with the maintainer whether Cancel should discard the component before changing behavior; done means the agreed cancellation behavior is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100