You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement the Classes Pane within the Annotation Page, allowing users to add, edit, select, and delete classes. Each class corresponds to a unique annotation category with specific settings such as name, color, and magnification level. Classes are globally consistent across the project and can be created directly or through a context menu in the annotation pane.
The following has already been implemented:
Classes pane react component already exists
pane already lists all classes in the project
selecting a list item corrently sets the class and updates the other components in the page.
Feature Details
The Classes Pane contains the following elements:
Class List (scrollable):
"Tissue" Class: Selectable but immutable.
"Class 1": Selectable and mutable.
... etc.
“+” Button: Allows adding a new class by opening the Add Class modal.
Add Class Functionality:
Add Class Modal: Opens when the “+” button or “Create new class” context menu item is clicked.
Fields:
Class Name: Text field for naming the class.
Class Color: Color picker for setting the class color.
Working Magnification: Dropdown to select the magnification level, with options based on the project requirements.
Patch Preview: Displays a 40x preview image that updates when the working magnification changes.
Submit Button: Saves the new class and adds it to the Classes Pane.
Suggested Magnification: When creating a class this way, the working magnification will auto-fill with a suggested value based on the size of the selected annotation.
Class Elements in the Pane:
Details:
Each class is listed with the following:
Class Name
Edit Button: Opens the Add Class modal with current settings pre-filled for editing.
Delete Button: Removes the class after user confirmation.
Color Square: Displays the class color, which also serves as the fill color for annotations of this class.
Edit Class: Clicking the edit button on a class opens the Add Class modal (with the fields pre-filled).
Delete Class: Clicking the delete button on a class shows a warning confirmation. Upon confirmation, all relevant UI elements (annotation, ground truth, and predictions) are re-rendered without any annotations of the deleted class.
Acceptance Criteria
Classes Pane displays a scrollable list of classes, including "Tissue" (immutable) and any user-created classes.
Users can add a new class through the “+” button or the context menu in the annotation pane.
The Add Class modal opens as expected, updates the preview image based on the selected magnification, and saves new classes to the Classes Pane.
Each class element displays the class name, edit button, delete button, and color square.
Edit Class: Users can edit class details, which updates in the Classes Pane.
Delete Class: Users can delete a class after confirming a warning. UI elements re-render without annotations belonging to the deleted class.
References:
N/A
The text was updated successfully, but these errors were encountered:
Classes Pane in the Annotation Page
Description
Implement the Classes Pane within the Annotation Page, allowing users to add, edit, select, and delete classes. Each class corresponds to a unique annotation category with specific settings such as name, color, and magnification level. Classes are globally consistent across the project and can be created directly or through a context menu in the annotation pane.
The following has already been implemented:
Feature Details
The Classes Pane contains the following elements:
Class List (scrollable):
Add Class Functionality:
Class Elements in the Pane:
Acceptance Criteria
References:
N/A
The text was updated successfully, but these errors were encountered: