Repository navigation
Speed up the release plan table with many packages - #611
Merged
Merged
Conversation
The table rendered every package at once with a select, checkboxes and tooltips in each row, and called NotNotarizedPackages() in every row, so a plan with ~1000 packages took seconds to open or to reset the search. Render only the visible rows with a virtual scroll that keeps scrolling with the page, compute the not notarized packages once, build destination options once per arch and the trustness badge once per row. Also fix the force selection: unchecking a row that isn't selected duplicated the selected list and "Force all" made it the same array as the table rows. The destination check now looks at every package instead of only the last rendered select.
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.
Problem
A release plan with ~1000 packages opens for several seconds and the page lags: the table renders every package at once (a select, checkboxes, tooltips and buttons per row),
NotNotarizedPackages()filters all packages in every row on each render, and destination options are rebuilt for every package.Changes
virtual-scroll-target="body"), and switches to its own scroll in fullscreen. Rows get their own key since packages have noidand a package can be added twice.selectedusedindexOf() === -1and duplicated the list; "Force all" madeselectedthe same array as the table rows.Checks
In the browser against release 67541 (1148 packages, production data, read only), in view and edit mode, comparing the old and the new component on the same data:
getPlan(), destinations, destination options, badges and columns are identical;🤖 Generated with Claude Code