-
Notifications
You must be signed in to change notification settings - Fork 25
fix: add missing drag styling in tiles view #1645
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds missing drag styling for the tiles view while standardizing drag-and-drop behavior across both tile and table views. The changes refactor drag-and-drop logic into a shared composable to ensure consistent behavior.
Key changes:
- Extracted drag-and-drop functionality into a new shared composable
useResourceViewDrag - Updated
OcTablecomponent to pass item objects instead of DOM selectors in drag events - Applied consistent drag styling using
data-item-idattributes across both views
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
packages/web-pkg/src/composables/resources/useResourceViewHelpers.ts |
Integrated drag functionality and exposed helper methods for resource selection |
packages/web-pkg/src/composables/resources/useResourceViewDrag.ts |
New composable containing shared drag-and-drop logic for both tile and table views |
packages/web-pkg/src/composables/resources/index.ts |
Exported the new drag composable |
packages/web-pkg/src/components/FilesList/ResourceTiles.vue |
Removed duplicated drag logic in favor of shared composable |
packages/web-pkg/src/components/FilesList/ResourceTable.vue |
Removed duplicated drag logic and updated to use shared composable |
packages/design-system/src/components/OcTable/OcTable.vue |
Changed event signatures to pass item objects instead of selectors |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
7924fe6 to
e3c3a6a
Compare
While also aligning the drag&drop-behavior for both the tile and table view.
e3c3a6a to
db4dfa3
Compare
kulmann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works like a charm, nice!
fix: add missing drag styling in tiles view
While also aligning the drag&drop-behavior for both the tile and table view.
fixes #1638
part of #1518