Setting attribute is_selected doesnt seem to update UI
- Dominant language
- TypeScript
- Stars
- 52
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
The following screenshot can be used as a reference.

When `is_selected` option is selected, the corresponding annotation is expected to be auto selected in the layout of this project for any annotated document that is uploaded. However, that doesn't seem to be the case, I still find all the annotations are unselected, which is the default state of a project document.
**To Reproduce**
Steps to reproduce the behavior:
1. Upload base annotation json file to a new project
2. Select 1 or more annotations in legendConfigs, and update their `is_selected` attribute to True
3. Create the project, upload an output json file, visualize it, expected annotation is still unselected
**Expected behavior**
The annotation whichever has been updated should be pre selected when a json document is visualized.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the issue with a new project: upload a base annotation JSON file, set an annotation's legendConfigs is_selected attribute to True, upload an output JSON file, and visualize it. Trace how legendConfigs is applied during visualization; done means the selected annotation is pre-selected instead of all annotations remaining unselected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100