adobe / helix-importer-ui

Apache License 2.0
20 stars 25 forks source link

Allow user to reorder mapping items. #359

Open atopper opened 1 month ago

atopper commented 1 month ago

Description

Once an box/item is in the mapping, allow it to be reordered so the user does not have to add them in an exact order.

Related Issue

This PR was created on the PR to save more than 1 site in the mapping (local-storage): https://github.com/adobe/helix-importer-ui/pull/354 That should be merged first.

Motivation and Context

Through testing, especially with a complex page, I found I often would want to add a box later and found that deleting a bunch of mappings, adding the one I required, and then adding all the others back again was tedious.

How Has This Been Tested?

Manually.

Screenshots (if appropriate):

The caret (^) will be replaced by a Spectrum 'up arrow' after it is built. I didn't want to change anything under js/dist (see smaller screenshot below) image image

Types of changes

Checklist:

@catalan-adobe