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(app): improve rendering code preview on large files #3284

Merged
merged 7 commits into from
Jan 3, 2025

Conversation

onx2
Copy link
Contributor

@onx2 onx2 commented Dec 18, 2024

Description

  • Fixes WB-22387

This PR memoizes the code preview component, isolates the scroll to only the preview, and removes highlighting when the file gets large enough. This isn't a perfect solution but at least before the code freeze the page becomes usable.

Testing

Tested on open ai large files >8MB

@onx2 onx2 requested a review from a team as a code owner December 18, 2024 17:17
@onx2 onx2 self-assigned this Dec 18, 2024
@circle-job-mirror
Copy link

circle-job-mirror bot commented Dec 18, 2024

onx2 added 2 commits December 18, 2024 12:22
this is probably happpening because of some erroneous react code running that uses
prism.highlightAll but who knows
@jlzhao27 jlzhao27 merged commit 98cb7b8 into master Jan 3, 2025
119 of 120 checks passed
@jlzhao27 jlzhao27 deleted the onx2/WB-22387 branch January 3, 2025 18:20
@github-actions github-actions bot locked and limited conversation to collaborators Jan 3, 2025
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.

3 participants