Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

fix: share indicators for incoming shares - #10759

Merged
JammingBen merged 3 commits into
masterfrom
rework-sharing-indicators
Apr 17, 2024
Merged

JammingBen merged 3 commits into
masterfrom
rework-sharing-indicators

Conversation

@JammingBen

@JammingBen JammingBen commented Apr 10, 2024 •

Copy link
Copy Markdown
Contributor

Description

Fixes an issue where share indicators would falsely show for and in incoming shares. These are only needed where outgoing shares are being displayed, meaning in project spaces the user has access to and their personal space.

Refactoring and clean-up in the course of this:

  • Introduce a ResourceStatusIndicator type
  • Remove the unnecessary property target from status indicators

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests
  • Documentation
  • Maintenance (e.g. dependency updates or tooling)

@JammingBen JammingBen self-assigned this Apr 10, 2024
@update-docs

update-docs Bot commented Apr 10, 2024

Copy link
Copy Markdown

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@JammingBen
JammingBen force-pushed the rework-sharing-indicators branch 4 times, most recently from ee6e513 to 786314b Compare April 11, 2024 07:00
@JammingBen
JammingBen marked this pull request as ready for review April 11, 2024 07:35
@JammingBen JammingBen mentioned this pull request Apr 11, 2024
30 of 40 tasks
@JammingBen
JammingBen force-pushed the rework-sharing-indicators branch from 786314b to 2248e75 Compare April 11, 2024 08:49

@kulmann kulmann left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  • If I create a user-share I see a user-share indicator in the file list (correct so far)
  • if I then create a link-share, I don't see the user-share indicator anymore, but only the link-share indicator
  • both share indicators at the same time are only visible after a page reload / navigation to a different folder and back to the original location

@JammingBen

Copy link
Copy Markdown
Contributor Author
  • If I create a user-share I see a user-share indicator in the file list (correct so far)
  • if I then create a link-share, I don't see the user-share indicator anymore, but only the link-share indicator
  • both share indicators at the same time are only visible after a page reload / navigation to a different folder and back to the original location

Hmm I can't reproduce this. But I remember seeing this issue a while ago. Anything I'm missing in the steps to reproduce? 🤔

@kulmann kulmann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can't reproduce my recent issue anymore. Looks good to me, but needs a rebase now 😉

Fixes an issue where share indicators would falsely show for and in incoming shares. These are only needed where outgoing shares are being displayed, meaning in project spaces the user has access to and their personal space.

Refactoring and clean-up in the course of this:

* Introduce a `ResourceStatusIndicator` type
* Remove the unnecessary property `target` from status indicators
@JammingBen
JammingBen force-pushed the rework-sharing-indicators branch from 2248e75 to 31384af Compare April 17, 2024 11:28
@sonarqubecloud

Copy link
Copy Markdown

@JammingBen
JammingBen merged commit 539d2bb into master Apr 17, 2024
@delete-merged-branch
delete-merged-branch Bot deleted the rework-sharing-indicators branch April 17, 2024 12:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Introduce interface for resource status indicators

2 participants