Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): replace react-sortable-hoc with dnd-kit #6860

Merged
merged 17 commits into from
Sep 6, 2023

Conversation

demshy
Copy link
Member

@demshy demshy commented Jul 27, 2023

Summary
Replace react-sortable-hoc with a newer and maintained library for sorting in file control (image gallery), ListControl and RelationControl (where it is coupled with react-select). This is a necessary step before upgrading to react 18.

Test plan
Restaurants entity has been added to the config so this can be tested on one screen. Don't forget to yarn install before testing

Screen.Recording.2023-09-06.at.10.18.46.mov

Checklist

Please add a x inside each checkbox:

A picture of a cute animal (not mandatory but encouraged)

@github-actions github-actions bot added the type: chore work needed to keep the product and development running smoothly label Jul 27, 2023
@demshy demshy changed the title chore(deps): replace react-sortable-hoc with dnd-kit in file control chore(deps): replace react-sortable-hoc with dnd-kit Sep 6, 2023
@martinjagodic martinjagodic enabled auto-merge (squash) September 6, 2023 08:25
@martinjagodic martinjagodic merged commit 09665c0 into master Sep 6, 2023
17 checks passed
@martinjagodic martinjagodic deleted the chore/replace-dnd-implementation branch September 6, 2023 09:00
martinjagodic pushed a commit that referenced this pull request Oct 16, 2023
* chore: replace react-sortable-hoc with dnd-kit in file control

* chore: update yarn.lock

* fix: allow multiple images with same path

* style: cleanup console logs

* chore: replace sortable hoc on list control

* test: update snapshots

* chore: replace dnd implementation in relation control

* chore: add dnd-kit deps to appropriate packages

* chore: harmonize sensors and clean up

* fix: remove sortable for single relation controls

* test: add restaurants entity for dnd implementations on one screen

* fix: fix file control when value is not an array or list

* refactor: merge listitem with parent, update snapshots

* test: update selector in field validation test
martinjagodic pushed a commit that referenced this pull request Oct 17, 2023
* chore: replace react-sortable-hoc with dnd-kit in file control

* chore: update yarn.lock

* fix: allow multiple images with same path

* style: cleanup console logs

* chore: replace sortable hoc on list control

* test: update snapshots

* chore: replace dnd implementation in relation control

* chore: add dnd-kit deps to appropriate packages

* chore: harmonize sensors and clean up

* fix: remove sortable for single relation controls

* test: add restaurants entity for dnd implementations on one screen

* fix: fix file control when value is not an array or list

* refactor: merge listitem with parent, update snapshots

* test: update selector in field validation test
martinjagodic pushed a commit to geotrev/netlify-cms that referenced this pull request Oct 17, 2023
* chore: replace react-sortable-hoc with dnd-kit in file control

* chore: update yarn.lock

* fix: allow multiple images with same path

* style: cleanup console logs

* chore: replace sortable hoc on list control

* test: update snapshots

* chore: replace dnd implementation in relation control

* chore: add dnd-kit deps to appropriate packages

* chore: harmonize sensors and clean up

* fix: remove sortable for single relation controls

* test: add restaurants entity for dnd implementations on one screen

* fix: fix file control when value is not an array or list

* refactor: merge listitem with parent, update snapshots

* test: update selector in field validation test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: chore work needed to keep the product and development running smoothly
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants