Skip to content

Conversation

@AlexAndBear
Copy link
Contributor

Description

image

Related Issue

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear AlexAndBear marked this pull request as ready for review October 8, 2025 17:18
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 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())
Copy link

Copilot AI Oct 8, 2025

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.

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@JammingBen JammingBen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment on lines +126 to +132
const folderViewStyle = computed(() => {
return {
...(unref(folderView)?.isScrollable === false && {
height: `calc(100% - ${unref(appBarRef)?.$el.getBoundingClientRect().height}px)`
})
}
})
Copy link
Contributor

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.

@AlexAndBear AlexAndBear merged commit 7173c39 into main Oct 9, 2025
28 checks passed
@AlexAndBear AlexAndBear deleted the issues/1340 branch October 9, 2025 08:30
@openclouders openclouders mentioned this pull request Oct 9, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tiles view: Shared via link

3 participants