Refactor dozor plot to separate out selection use case
The dozor plot is used in two main places:
- inside the "Quality indicator" modal (or processed dataset viewer).
- inside the "Start reprocess" modal, to select ranges to exclude.
The feature that involves clicking on the dozor plot to show the corresponding image in H5Web is only relevant to the first use case. However, both use cases currently render the same InteractiveDozor
component, which complicates things.
So as a first step, in this MR, I split the two use cases by extracting the preparation of the dozor plot's Plotly config into a custom hook. As a result, the InteractiveDozorExcludeSelection
component (rendered by the second use case) now uses this hook instead of the InteractiveDozor
component, which is now reserved for the first use case.