Corpus export field redesign

Erwan Rouchet
2026-03-10T14:33:38Z

https://redmine.teklia.com/issues/10348

The CorpusExportField component uses a strange design that is inconsistent with other configuration fields. This is because it had been temporarily used outside of the context of a configuration field in !1954 (merged), until the export workers could be migrated to the new format, and we wanted to have zero changes to the existing export modal until we could properly migrate. A redesign had been planned from the start.

The component should thus be redesigned to look more like the Secret or ModelVersion fields: an input displays the currently selected corpus export, and clicking this input opens a modal to either select an existing export or use the latest state of the project, using the original design of this field. The modal should not have any OK/Close button at the bottom, it can just close immediately after clicking on any of the Select buttons to save time.