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

[swapello] fix card unable to drag issue #2173

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

AddisonYan
Copy link

@AddisonYan AddisonYan commented Jul 11, 2024

Description

The current swapello's board dragging is broken, showing 'Cannot find droppable entry with id [...]'
Fix the dragging issue by creating a new droppable component

Describe your PR! If it fixes specific issue, mention it with "Fixes # (issue)".

Select what type of change this PR introduces:

  1. Just code/docs improvement (no functional change).
  2. Bug fix (non-breaking change which fixes an issue).
  3. New feature (non-breaking change which adds functionality).
  4. Breaking change (fix or feature that would cause existing functionality to not work as expected).

Update Waspc ChangeLog and version if needed

If you did a bug fix, new feature, or breaking change, that affects waspc, make sure you satisfy the following:

  1. I updated ChangeLog.md with description of the change this PR introduces.
  2. I bumped waspc version in waspc.cabal to reflect changes I introduced, with regards to the version of the latest wasp release, if the bump was needed.

Update example apps if needed

If you did code changes and added a new feature or modified an existing feature, make sure you satisfy the following:

  1. I updated waspc/examples/todoApp as needed (updated modified feature or added new feature) and manually checked it works correctly.
  2. I updated waspc/headless-test/examples/todoApp and its e2e tests as needed (updated modified feature and its tests or added new feature and new tests for it).

@infomiho
Copy link
Contributor

@AddisonYan Thank you for the contribution, left some minor suggestions

@AddisonYan AddisonYan changed the title [swapello] tilt board when dragging [swapello] fix board unable to drag issue Jul 13, 2024
@AddisonYan AddisonYan changed the title [swapello] fix board unable to drag issue [swapello] fix card unable to drag issue Jul 15, 2024
@infomiho
Copy link
Contributor

@AddisonYan hey, I can't really reproduce the bug you mentioned on the main branch.

The current swapello's board dragging is broken, showing 'Cannot find droppable entry with id [...]'

Could you share a video of the bug being reproduced?

@AddisonYan
Copy link
Author

AddisonYan commented Jul 19, 2024

@AddisonYan hey, I can't really reproduce the bug you mentioned on the main branch.

The current swapello's board dragging is broken, showing 'Cannot find droppable entry with id [...]'

Could you share a video of the bug being reproduced?

Screen.Recording.2024-07-18.at.8.59.40.PM.mov

image

@infomiho here is the screen recording, both list and card cannot be dragged. i am using wasp v13. are you using v14? if it is fixed in v14 then we do not need this pr anymore.

Copy link
Contributor

@infomiho infomiho left a comment

Choose a reason for hiding this comment

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

Left some minor comments, thank you for your effort! Sorry for taking this long to comment again.

Could I ask you to sync your fork with the Wasp repo? https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

Then I'll be able to test it with Wasp 0.14.0.

import { Droppable as RBDDroppable } from 'react-beautiful-dnd'


export const Droppable = ({ children, ...props }) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you auto format this file?

It's missing a new line at the end and the indentation feels off.

import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd'

import { DragDropContext, Draggable } from 'react-beautiful-dnd'
import { Droppable } from './Drappable'
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you rename the file from Drappable to Droppable?

@@ -243,7 +243,7 @@ const List = ({ list, index, cards }) => {
index={index}
>
{(provided, snapshot) => (
<div className='list-wrapper'
<div className={`list-wrapper`}
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you pls revert this change since it doesn't do anything and it's not what you'd usually write for a React component static className.

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.

2 participants