Skip to content

[HOME] Add drag and drop for homepage section cards #65025

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

Merged
merged 14 commits into from
Apr 7, 2025
Merged

Conversation

lfryemason
Copy link
Contributor

Updates dnd-kit and implements it on the homepage for section cards.

Screen.Recording.2025-04-03.at.2.02.25.PM.mov

Does not store the order on the backend - refreshing the page resets order. This will be done in a future PR.

Links

https://codedotorg.atlassian.net/browse/TEACH-1589

# Conflicts:
#	apps/package.json
#	apps/src/templates/studioHomepages/teacherHomepageV2/SectionCard.tsx
#	apps/src/templates/studioHomepages/teacherHomepageV2/SectionList.tsx
#	apps/src/templates/studioHomepages/teacherHomepageV2/teacherHomepage.module.scss
#	apps/yarn.lock
@lfryemason lfryemason requested a review from Nokondi April 4, 2025 19:32
Copy link
Contributor

@Nokondi Nokondi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing!

# Conflicts:
#	apps/src/templates/studioHomepages/teacherHomepageV2/SectionCard.tsx
#	apps/src/templates/studioHomepages/teacherHomepageV2/teacherHomepage.module.scss
@lfryemason lfryemason merged commit d8ebd62 into staging Apr 7, 2025
4 checks passed
@lfryemason lfryemason deleted the lfm/h-dnd branch April 7, 2025 14:13
@molly-moen molly-moen mentioned this pull request Apr 7, 2025
8 tasks
tshaffercodeorg pushed a commit that referenced this pull request Apr 8, 2025
* Update dnd-kit version

* Add drag and drop

* Add some necessary options

* More options

* Another option

* Fix option

* use handle

* Fix merge

* Fix archive and order

* Add test

* Slightly fix spacing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants