-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
fix(replay): Iterate on the bulk "Delete" replay button when its disabled #101498
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
base: master
Are you sure you want to change the base?
Conversation
…bled We want to make it more obvious that permissions are needed, and make it accessible for people on mobile devices
| selectedIds={selectedIds} | ||
| /> | ||
| ) : null} | ||
| </Tooltip> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Button and Tooltip Vanish on Null Project
The DeleteReplays button and its tooltip disappear when project is null, even if oneProjectEligible is true and a disabled state with an explanation is intended. This happens because the button is conditionally rendered based on project's existence, which also causes the Tooltip to receive null children.
|
|
||
| {isAllSelected && disabledMessage ? ( | ||
| <FullGridAlert type="error" system> | ||
| {disabledMessage} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Permission Banner Missing for Partial Selection
The permission error banner for deleting replays only appears when all replays are selected. When only some replays are selected, the delete button is disabled, but the banner explaining the lack of permission doesn't show up, leaving users without an explanation for the disabled action.
❌ 3 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
|
This pull request has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you add the label "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
|
@sentry review |
|
Seer had some issues with your request. Please try again. |
|
@sentry review |
|
Seer had some issues with your request. Please try again. |
| selectedIds={selectedIds} | ||
| /> | ||
| <Tooltip disabled={!disabledMessage} title={disabledMessage}> | ||
| {project ? ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disabled delete button now disappears when banner is "Select a single project from the dropdown to delete replays", but not when banner is "You must have project:write or project:admin access to delete replays" -- is this intentional?
|
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you remove the label "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
|
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you remove the label "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
We want to make it more obvious that permissions are needed, and make the tooltip accessible for people on mobile devices
So i've added a red banner that appears after making a selection to inform the user. This is not a scalable solution, if there were more multi-select action-buttons then it wouldn't make as much sense to throw a banner up there for each button, explaining all the different permissions. What we're trying to do though is make things more discoverable for now (short term!) because people have missed the tooltip and have been confused.
Fixes https://linear.app/getsentry/issue/REPLAY-763