Skip to content

fix: select shares from notifications and show the highest share role - #3598

Merged
AlexAndBear merged 3 commits into
mainfrom
fix/shared-with-me-scroll-and-role
Oct 13, 2026
Merged

AlexAndBear merged 3 commits into
mainfrom
fix/shared-with-me-scroll-and-role

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Description

  • Notification link: share notifications link to the resource id instead of the share id, so every notification for a shared item (e.g. one for a user and one for a group share) selects it in “Shared with me”.
  • Role: for a user plus a group share on the same item the roles are sorted by weight, so the highest one is shown instead of a random one.
Before After
Notification link b27 a27
User + group share b28 a28

Related Issue

  • No issue, found in the functional bug sweep of the web client

How Has This Been Tested?

  • test environment: local dev server, Playwright (Chromium)
  • user share + group share on the same folder: both notifications scroll to and select the item in “Shared with me” (list and tiles view)
  • user share (view) + group share (edit) on the same folder: “Can edit” shown on every reload
  • unit tests added

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 moved this from In Progress to Needs Review in OpenCloud Team Board Oct 7, 2026

@JammingBen JammingBen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The sorting for a user plus a group share looks good in the table, but only one of the 2 notifications correctly scrolls to the resource when clicking. Maybe you could use resource.id instead of share.id in Notifications.vue:160-161 to fix this?

@AlexAndBear
AlexAndBear merged commit c7cced9 into main Oct 13, 2026
31 checks passed
@AlexAndBear
AlexAndBear deleted the fix/shared-with-me-scroll-and-role branch October 13, 2026 06:48
@openclouders openclouders mentioned this pull request Oct 13, 2026
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.

2 participants