-
Notifications
You must be signed in to change notification settings - Fork 25
fix: space batch actions not loading in spaces table #1517
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 refactors the ResourceTable.vue component from Options API to Composition API (script setup) and removes deprecated functionality from useResourceRouteResolver. The main changes include:
- Converting ResourceTable from Options API to Composition API using
<script setup> - Deprecating the
contextparameter andcreateFileActionmethod inuseResourceRouteResolver - Removing usage of deprecated
createFileActionin favor of directly emittingfileClickevents - Replacing
useResourceRouteResolverwithuseFolderLinkin ResourceTiles - Removing unused slot documentation comments
- Adding proper TypeScript type imports for
FileActionOptions - Standardizing selection handling to use
resourcesStore.toggleSelection()
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| ResourceTiles.spec.ts | Adds import for useResourcesStore and pre-sets selection state in test to match new store-based selection handling |
| useResourceRouteResolver.ts | Marks the context parameter and createFileAction method as deprecated |
| ResourceTiles.vue | Refactors to use useFolderLink instead of useResourceRouteResolver, emits fileClick directly, and uses resourcesStore.toggleSelection() |
| ResourceTable.vue | Major refactor from Options API to Composition API with script setup, including props/emits/slots definitions and function conversions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
2cf1fc0 to
25a57d5
Compare
…t-loading fix: space batch actions not loading in spaces table
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
And refactors the
ResourceTablecomponent to script setup. This was long overdue since it was partly options API still. Also deprecatescreateFileActionofuseResourceRouteResolver. Feels misplaced there and we already haveuseFileActions.Check commits for an easier review.
fixes #1499
refs #1462