Skip to content

Fix/multiple fixes#247

Open
diocas wants to merge 6 commits into
cernboxfrom
fix/multiple_fixes
Open

Fix/multiple fixes#247
diocas wants to merge 6 commits into
cernboxfrom
fix/multiple_fixes

Conversation

@diocas
Copy link
Copy Markdown

@diocas diocas commented May 18, 2026

Multiple fixes; the commit messages should be clear what they do. Will update the Jira tickets afterwards.

diocas and others added 6 commits May 18, 2026 11:40
Ensure that it redirects home if embed mode not set
The .0 is being removed in the dav library.
Filtering now operates on the full resource list before pagination,
so page counts and page navigation always reflect the filtered result
rather than the raw total. A watcher resets to page 1 whenever any
filter changes to prevent landing on an empty page.

The "Shared By" filter deduplicates by user id instead of display name,
so two accounts with identical display names are no longer merged into
one option. When two users share the same display name, the account id
is appended in parentheses to distinguish them.

SharedWithMeSection accepts optional paginationPages/paginationPage
props so the parent can supply the correct filtered page count to
the pagination control.
… space checks

Updated the DriveRedirect component to utilize the new useSpacesLoading hook, allowing it to show a loading spinner while spaces are being loaded. Additionally, improved the logic to display a "not found" message when no personal space exists for a personal alias. Updated unit tests to reflect these changes and ensure proper functionality.
@Gerry-Cern
Copy link
Copy Markdown

Reviewed PR 247 against cernbox. The filter/pagination ordering, shared-by deduplication by user id, and .0 filename handling look sound. Three regressions should be fixed before merge:

  1. DriveRedirect shows "not found" while spaces are still loading (DriveRedirect.vue)

The redirect watchEffect sets showNotFound = true whenever personalSpace is missing. It does not use spacesLoading or spacesInitialized from the spaces store. While spaces are still loading, valid personal aliases (personal, personal/home, empty alias) take the failure path and render NotFoundMessage instead of the loading spinner. Unknown non-personal aliases can also show not-found too early; that should only happen after spaces have finished loading.

  1. Stale DriveRedirect unit test (DriveRedirect.spec.ts)

The test expects router.replace({ name: 'files-spaces-projects' }) when no personal space exists. With an empty spaces list, personalSpace is undefined and the PR shows not-found instead of redirecting to projects. The test fails against current behavior and does not cover the loading vs not-found transition.

  1. Shared With Me scroll-to breaks with pagination (SharedWithMe.vue)

After filter-then-paginate, scrollToResourceFromRoute is called with the current page items only (paginatedFilteredItems). Before pagination was applied at this level, scroll used the full sorted filtered list. Deep links / scrollTo for a share on page 2 or later will not find the resource in the array passed to scroll.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants