Skip to content

ref(feedback): Replace react-virtualized with @tanstack/react-virtual in Feedback #95398

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ryan953
Copy link
Member

@ryan953 ryan953 commented Jul 12, 2025

The list still looks the same, this was surprisingly easy actually.

SCR-20250712-kygo

2 helper files i pulled in from sentry-toolbar (InfiniteListItems, InfiniteListState) made it easier too, they wrap a bunch of state conditions and also wrap the load-more triggers which really cleanup this <FeedbackList> component now.

Related to https://github.com/getsentry/frontend-tsc/issues/91

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 12, 2025
@ryan953 ryan953 force-pushed the ryan953/partial-focus-fix-conflicts-with-open-pr branch from 75f9749 to b6c6c3a Compare July 12, 2025 18:45
flex-grow: 1;
min-height: 300px;
padding-bottom: ${space(0.5)};
Copy link
Member Author

Choose a reason for hiding this comment

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

This is to add spacing under the last item shown

Image

Comment on lines +94 to 96
const Centered = styled('div')`
justify-self: center;
`;
Copy link
Member Author

Choose a reason for hiding this comment

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

No more absolute positioning for the 'loading more' spinner

Before
Image

After
Image

Comment on lines -178 to -180
position: relative;
top: 50%;
transform: translateY(-50%);
Copy link
Member Author

Choose a reason for hiding this comment

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

This isn't needed anymore

Image

`@tanstack/react-virtual` in Feedback
@ryan953 ryan953 force-pushed the ryan953/partial-focus-fix-conflicts-with-open-pr branch from b6c6c3a to e35a094 Compare July 12, 2025 19:18
@ryan953 ryan953 marked this pull request as ready for review July 14, 2025 15:40
@ryan953 ryan953 requested a review from a team as a code owner July 14, 2025 15:40
cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

Comment on lines +50 to +58
return <p>Loading...</p>;
}

function ErrorMessage({error}: {error: Error}) {
return <p>Error: {error.message}</p>;
}

function BackgroundUpdatingMessage() {
return <footer>Background Updating...</footer>;
Copy link
Member

Choose a reason for hiding this comment

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

do these need t()?

@@ -0,0 +1,13 @@
export default function uniqueBy<Data extends Record<string, unknown>>(
Copy link
Member

Choose a reason for hiding this comment

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

let's rename the file uniqueBy to match this fn?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants