ref(issues): Remove some usages of useHasStreamlinedUI#111036
Merged
ref(issues): Remove some usages of useHasStreamlinedUI#111036
Conversation
scttcper
reviewed
Mar 18, 2026
|
|
||
| export const TreeContainer = styled('div')<{columnCount: number}>` | ||
| margin-top: ${p => p.theme.space.lg}; | ||
| margin-top: 0; |
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Required
sizeprop is accepted but silently unused- Removed the unused
size: numberfrom the type definition and removed thesizeprop from both usages in avatarList.tsx and editAccessSelector.tsx.
- Removed the unused
Or push these changes by commenting:
@cursor push 0352bde6d3
Preview (0352bde6d3)
diff --git a/static/app/components/core/avatar/avatarList.tsx b/static/app/components/core/avatar/avatarList.tsx
--- a/static/app/components/core/avatar/avatarList.tsx
+++ b/static/app/components/core/avatar/avatarList.tsx
@@ -32,7 +32,6 @@
children,
}: {
children: React.ReactNode;
- size: number;
ref?: React.Ref<HTMLDivElement>;
}) {
return (
@@ -85,10 +84,7 @@
renderCollapsedAvatars(avatarSize, numCollapsedAvatars)
) : (
<Tooltip title={`${numCollapsedAvatars} other ${typeAvatars}`} skipWrapper>
- <CollapsedAvatars
- size={avatarSize}
- data-test-id="avatarList-collapsedavatars"
- >
+ <CollapsedAvatars data-test-id="avatarList-collapsedavatars">
{numCollapsedAvatars < 99 && '+'}
{numCollapsedAvatars}
</CollapsedAvatars>
diff --git a/static/app/views/dashboards/editAccessSelector.tsx b/static/app/views/dashboards/editAccessSelector.tsx
--- a/static/app/views/dashboards/editAccessSelector.tsx
+++ b/static/app/views/dashboards/editAccessSelector.tsx
@@ -180,7 +180,7 @@
onMouseEnter={() => setIsCollapsedAvatarTooltipOpen(true)}
onMouseLeave={() => setIsCollapsedAvatarTooltipOpen(false)}
>
- <CollapsedAvatars size={avatarSize}>
+ <CollapsedAvatars>
{numCollapsedAvatars < 99 && <Plus>+</Plus>}
{numCollapsedAvatars}
</CollapsedAvatars>This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.
scttcper
approved these changes
Mar 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


One part of a many code deletions now that the old experience is dead.
This hits a few misc components that rendered differently in the old UI.