As reported by @alexvpickering, it is too easy to change the resolution in the Configure embedding page. This triggers a work request that overwrites the clustering cellsets. If a user had manually annotated clusters (by renaming them in Data Exploration) and accidentally changes the resolution values, the annotations are lost and there's no way to recover them.
A simple confirmation button (as we do for the UMAP, which is also calculated in the worker) and a warning that cluster cellsets labels will be lost would be enough.
Goal
Add a confirmation button to the clustering resolution
Add a warning when changing the resolution value (in a little yellow box, as we do elsewhere) that warns users that this would delete the cluster cellset names.
Trigger the work request if and only if the button is clicked
Background
As reported by @alexvpickering, it is too easy to change the resolution in the Configure embedding page. This triggers a work request that overwrites the clustering cellsets. If a user had manually annotated clusters (by renaming them in Data Exploration) and accidentally changes the resolution values, the annotations are lost and there's no way to recover them.
A simple confirmation button (as we do for the UMAP, which is also calculated in the worker) and a warning that cluster cellsets labels will be lost would be enough.
Goal