Skip to content
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

fix: share indicators for incoming shares #10759

Merged
merged 3 commits into from
Apr 17, 2024
Merged

Conversation

JammingBen
Copy link
Contributor

@JammingBen JammingBen commented Apr 10, 2024

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
Copy link

update-docs bot commented Apr 10, 2024

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
40 tasks
@JammingBen JammingBen force-pushed the rework-sharing-indicators branch from 786314b to 2248e75 Compare April 11, 2024 08:49
Copy link
Contributor

@kulmann kulmann left a comment

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
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? 🤔

Copy link
Contributor

@kulmann kulmann left a comment

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
Copy link

@JammingBen JammingBen merged commit 539d2bb into master Apr 17, 2024
3 checks passed
@delete-merged-branch delete-merged-branch bot deleted the rework-sharing-indicators branch April 17, 2024 12:11
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.

Introduce interface for resource status indicators
2 participants