-
Notifications
You must be signed in to change notification settings - Fork 25
fix: add missing file list update after undo delete in space #1561
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 isItemInCurrentFolder helper function by moving it from web-runtime to web-pkg to improve code reusability and maintainability across the codebase.
- Moved
isItemInCurrentFolderhelper fromweb-runtime/src/container/sse/helpers.tstoweb-pkg/src/helpers/resource/isItemInCurrentFolder.ts - Relocated associated tests from
web-runtime/tests/unit/container/sse/helpers.spec.tstoweb-pkg/tests/unit/helpers/resource/isItemInCurrentFolder.spec.ts - Updated all import statements across files to use the new location from
@opencloud-eu/web-pkg
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/web-runtime/tests/unit/container/sse/helpers.spec.ts | Removed isItemInCurrentFolder tests and related imports (SpaceResource, isItemInCurrentFolder) |
| packages/web-runtime/src/container/sse/shares.ts | Updated import to use isItemInCurrentFolder from @opencloud-eu/web-pkg instead of local helpers |
| packages/web-runtime/src/container/sse/helpers.ts | Removed isItemInCurrentFolder function and its dependencies |
| packages/web-runtime/src/container/sse/files.ts | Updated import to use isItemInCurrentFolder from @opencloud-eu/web-pkg instead of local helpers |
| packages/web-pkg/tests/unit/helpers/resource/isItemInCurrentFolder.spec.ts | Added comprehensive test suite for isItemInCurrentFolder (moved from web-runtime) |
| packages/web-pkg/src/helpers/resource/isItemInCurrentFolder.ts | Added isItemInCurrentFolder helper function implementation |
| packages/web-pkg/src/helpers/resource/index.ts | Exported isItemInCurrentFolder from resource helpers |
| packages/web-pkg/src/composables/actions/files/useFileActionsUndoDelete.ts | Refactored to use isItemInCurrentFolder helper instead of direct comparison for improved robustness |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
packages/web-pkg/tests/unit/helpers/resource/isItemInCurrentFolder.spec.ts
Outdated
Show resolved
Hide resolved
packages/web-pkg/tests/unit/helpers/resource/isItemInCurrentFolder.spec.ts
Outdated
Show resolved
Hide resolved
b2bf7a6 to
d416ac4
Compare
…update fix: add missing file list update after undo delete in space
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
Needed to move
isItemInCurrentFolderfrom the runtime to web-pkg.fixes #1522