Affected Apps / Packages
Studio (apps/studio)
Description
Users are prevented from completely clearing their Education history or Skill groups. The UI delete buttons are disabled when list size is ≤ 1. Even if the UI constraint is bypassed, the Zustand store actions (removeEducation, removeSkillGroup) enforce a length <= 1 block and silently fail.
Steps to Reproduce
- Go to
/editor/resume/[id].
- Delete entries in the Education or Skills section until only one remains.
- Observe that the delete button is disabled.
- Try to invoke the deletion directly or inspect the store: the delete action will silently return the current state without removing the last entry.
Expected Behavior
Users should be allowed to delete all items and clear their education/skills list completely (i.e. reduce the array length to 0).
Environment Information
- OS: Windows
- Browser: Chrome / Edge
- Node.js: 20.x
Relevant Logs
No response
Proposed Fix / Suggestions
- Update Zustand Store (
resume-store.ts): Remove the check checking if length is <= 1.
- Update UI Components (
EducationSection.tsx & SkillsSection.tsx): Allow deleting down to 0.
Affected Apps / Packages
Studio (apps/studio)
Description
Users are prevented from completely clearing their Education history or Skill groups. The UI delete buttons are disabled when list size is
≤ 1. Even if the UI constraint is bypassed, the Zustand store actions (removeEducation,removeSkillGroup) enforce alength <= 1block and silently fail.Steps to Reproduce
/editor/resume/[id].Expected Behavior
Users should be allowed to delete all items and clear their education/skills list completely (i.e. reduce the array length to
0).Environment Information
Relevant Logs
No response
Proposed Fix / Suggestions
resume-store.ts): Remove the check checking if length is<= 1.EducationSection.tsx&SkillsSection.tsx): Allow deleting down to 0.