Skip to content

Conversation

@JammingBen
Copy link
Contributor

fixes #1420

@JammingBen JammingBen self-assigned this Oct 27, 2025
Copilot AI review requested due to automatic review settings October 27, 2025 12:46
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 fixes a bug where the "set space image" action was incorrectly appearing for personal and share spaces when it should only be available for project spaces.

Key changes:

  • Added validation to restrict the action to project spaces only
  • Added test coverage for personal and share space types
  • Removed unused previewService import

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/web-pkg/src/composables/actions/files/useFileActionsSetImage.ts Added isProjectSpaceResource check to ensure action only shows for project spaces and removed unused import
packages/web-pkg/tests/unit/composables/actions/files/useFileActionsSetImage.spec.ts Added test cases to verify action is hidden for personal and share space types

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

💪

@kulmann kulmann merged commit 14a9d31 into main Oct 28, 2025
29 checks passed
@kulmann kulmann deleted the fix/set-as-space-image branch October 28, 2025 12:44
@openclouders openclouders mentioned this pull request Oct 28, 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.

"Set as space image" action is showing in personal space

3 participants