learningequality / learningequality/studio

Folder icons in hierarchy view do not automatically go from filled to outline version when topic goes from full to empty

Open
#2,664 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

DEV: frontend P2 - normal TAG: ux update
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
image

Category

BUG

How to reproduce

  1. Create a topic
  2. Add a resource to the topic -> topic icon goes from outline to filled
  3. Remove that resource by any of the node-removal widgets
  4. 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:

  1. Go to the trash and restore the resource back to the topic
  2. Add/remove the resource
  3. The folder icon will toggle correctly

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.