-
Notifications
You must be signed in to change notification settings - Fork 25
feat: add tiles view for shared via link view #1343
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 adds tiles view support to the "shared via link" view by implementing a folder view extension system. The change enables users to switch between different viewing modes (table, tiles, etc.) when viewing resources shared via link.
- Adds tiles view extension support to the SharedViaLink component
- Updates the extension points to include shared via link views
- Modifies test setup to mock the extension registry properly
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| SharedViaLink.spec.ts | Updates test setup to mock extension registry and folder view extensions |
| SharedViaLink.vue | Refactors component to use dynamic folder views instead of hardcoded ResourceTable |
| extensionPoints.ts | Adds new extension point for shared via link folder views |
| useFolderViews.ts | Includes shared via link extension point in all folder view configurations |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| describe('different files view states', () => { | ||
| it('shows the loading spinner during loading', () => { | ||
| const { wrapper } = getMountedWrapper({ loading: true }) | ||
| console.log(wrapper.html()) |
Copilot
AI
Oct 8, 2025
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.
Debug console.log statement should be removed before merging to production.
packages/web-app-files/tests/unit/views/shares/SharedViaLink.spec.ts
Outdated
Show resolved
Hide resolved
JammingBen
left a comment
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.
👍
| const folderViewStyle = computed(() => { | ||
| return { | ||
| ...(unref(folderView)?.isScrollable === false && { | ||
| height: `calc(100% - ${unref(appBarRef)?.$el.getBoundingClientRect().height}px)` | ||
| }) | ||
| } | ||
| }) |
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.
Since this is the same in every file view, maybe we could make this part of the resourcesViewDefaults in the future.
Description
Related Issue
How Has This Been Tested?
Types of changes