Repository navigation
Conversation
1fanwang
force-pushed
the
fix-launchplan-count-typo
branch
from
June 21, 2026 08:41
3c7258b to
9bbe292
Compare
The launch plan table and card views virtualized against
document.getElementById('scroll-element'), which is null in this layout, so the
virtualizer had no scroll container and rendered the wrong number of rows. The
table view also read result?.length (the lodash `result` function, always
truthy) instead of results?.length. Render the results directly with stable keys.
Signed-off-by: 1fanwang <1fannnw@gmail.com>
The fix changes both launch-plan views, but the regression covered only the table. Exercise the card view with enough results to fail under the old detached virtualizer. Signed-off-by: 1fanwang <1fannnw@gmail.com>
1fanwang
force-pushed
the
fix-launchplan-count-typo
branch
from
August 24, 2026 10:25
9bbe292 to
8795275
Compare
Signed-off-by: 1fanwang <1fannnw@gmail.com>
Contributor
Author
|
@kumare3 could you review when you have time? |
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.
TL;DR
The launch-plan card and table views can show too few launch plans, or none at all, even when more were supplied. They decide how many rows to render by measuring a scroll container element that does not exist in this layout, so the measurement comes back null. Both views now render the launch-plan results they receive directly, without depending on that measurement.
Type
Are all requirements met?
Complete description
The card and table views now render exactly the results they are given, instead of relying on the missing scroll measurement. Loading and empty states are unchanged.
Testing Done
Rendered the actual card and table views in jsdom with their normal providers and child components, once with the pre-fix source (commit 04d6a33) and once with this fix applied (commit 260c647, this PR head). The probe supplies 64 launch plans, counts the rendered cards and rows, then separately checks the empty table.
With Node 16.19.0 and the checkout installed dependencies, save the source below as launch_plan_repro.cjs in the repository root, then run each command and its result is shown directly below it.
Command:
git checkout 04d6a334cb0742e0337226ef8b390188c6b2e00d -- packages/oss-console/src/components/LaunchPlan && NODE_ENV=test node launch_plan_repro.cjsResult, pre-fix source, 64 supplied plans render as 0:
Command:
git checkout 260c64759ec11aca589353d58610a08fe6096bba -- packages/oss-console/src/components/LaunchPlan && NODE_ENV=test node launch_plan_repro.cjsResult, this PR head, all 64 supplied plans render:
Reproducer source: launch_plan_repro.cjs
I did not run a browser scrolling test or a live-backend smoke test.
Tracking Issue
N/A
Follow-up issue
N/A