chore: add columns and transformedData to ArtworkImport #6451
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I think this will allow Volt's table view of an import to be a bit generic, just showing the user the columns they initially included (and transformed/normalized data values).
Now, Volt still needs to 'know' for example that titles can have inline editing enabled and maybe should render differently than another column type, but I feel like that could be a little config within Volt: column names -> Component kinda thing. We can see if that makes sense to move somewhere upstream - into MP kinda like homeview. But, since Volt is likely to be the only client for this whole imports schema, we can probably keep that stuff in Volt.
Ultimately, we want the specifics of the CSV in question to 'inform' the Volt table rendering of the import. This is b/c different partners may start to include different columns, we have optional columns, etc.
We can even drive Volt's experience for images this way without a feature flag! If an import included image filenames as a column - it can present those and ask for the image upload step, as we currently do. But if an import didn't include that column...it won't render in the table and the UI can skip that step.