learningequality / learningequality/studio
Folder icons in hierarchy view do not automatically go from filled to outline version when topic goes from full to empty
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 191
- Forks
- 307
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 10
Description
Summary
Ref: https://github.com/learningequality/studio/pull/2636#issuecomment-742011119
Folder icons in hierarchy view do not automatically go from filled to outline version when topic goes from full to empty

Category
BUG
How to reproduce
- Create a topic
- Add a resource to the topic -> topic icon goes from outline to filled
- Remove that resource by any of the node-removal widgets
- Node is removed, yet the topic's icon on the left is still filled
However, if you do this, the icon is updated correctly in a pretty reliable way:
- Go to the trash and restore the resource back to the topic
- Add/remove the resource
- The folder icon will toggle correctly
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 hierarchy-view steps: add a resource to a topic, remove it using a node-removal widget, and observe the folder icon. Trace the icon state update after removal and compare it with the restore-and-remove path; done means the icon changes from filled to outline when the topic becomes empty.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100