Skip to content

Refactor dozor plot to separate out selection use case

Axel Bocciarelli requested to merge refactor-dozor into main

The dozor plot is used in two main places:

  1. inside the "Quality indicator" modal (or processed dataset viewer).
  2. 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.

Merge request reports

Loading