Skip to content

Conversation

@JammingBen
Copy link
Contributor

While also aligning the drag&drop-behavior for both the tile and table view.

fixes #1638
part of #1518

@JammingBen JammingBen self-assigned this Nov 19, 2025
Base automatically changed from fix/embed-click-behavior to main December 2, 2025 07:52
@JammingBen JammingBen marked this pull request as ready for review December 2, 2025 09:24
@JammingBen JammingBen requested review from Copilot and kulmann December 2, 2025 09:24
Copy link
Contributor

Copilot AI left a 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 OcTable component to pass item objects instead of DOM selectors in drag events
  • Applied consistent drag styling using data-item-id attributes 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.

@JammingBen JammingBen force-pushed the fix/tiles-view-drag-highlight branch from 7924fe6 to e3c3a6a Compare December 2, 2025 09:52
While also aligning the drag&drop-behavior for both the tile and table view.
@JammingBen JammingBen force-pushed the fix/tiles-view-drag-highlight branch from e3c3a6a to db4dfa3 Compare December 3, 2025 15:05
Copy link
Contributor

@kulmann kulmann left a 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!

@kulmann kulmann merged commit 722d225 into main Dec 5, 2025
28 checks passed
@kulmann kulmann deleted the fix/tiles-view-drag-highlight branch December 5, 2025 10:51
openclouders pushed a commit that referenced this pull request Dec 5, 2025
fix: add missing drag styling in tiles view
@openclouders openclouders mentioned this pull request Dec 5, 2025
1 task
@openclouders openclouders mentioned this pull request Dec 15, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tiles view is missing drag highlight

3 participants