Skip to content

Conversation

@JammingBen
Copy link
Contributor

@JammingBen JammingBen commented Nov 5, 2025

And refactors the ResourceTable component to script setup. This was long overdue since it was partly options API still. Also deprecates createFileAction of useResourceRouteResolver. Feels misplaced there and we already have useFileActions.

Check commits for an easier review.

fixes #1499
refs #1462

@JammingBen JammingBen self-assigned this Nov 5, 2025
Copilot AI review requested due to automatic review settings November 5, 2025 06:50
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 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 context parameter and createFileAction method in useResourceRouteResolver
  • Removing usage of deprecated createFileAction in favor of directly emitting fileClick events
  • Replacing useResourceRouteResolver with useFolderLink in 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.

@JammingBen JammingBen force-pushed the fix/space-batch-actions-not-loading branch from 2cf1fc0 to 25a57d5 Compare November 5, 2025 06:57
@JammingBen JammingBen merged commit 4ca7d8c into main Nov 5, 2025
28 checks passed
@JammingBen JammingBen deleted the fix/space-batch-actions-not-loading branch November 5, 2025 07:41
@openclouders openclouders mentioned this pull request Nov 5, 2025
1 task
openclouders pushed a commit that referenced this pull request Nov 5, 2025
…t-loading

fix: space batch actions not loading in spaces table
@JammingBen
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
stable-4.2

Questions ?

Please refer to the Backport tool documentation

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.

Space batch actions not loading

3 participants