Repository navigation
fix(view): fix list_window mid-flip quiet edits and unmeasured-tail foot latching - #577
Merged
Merged
Conversation
…ding, trim dead guards
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.
Summary
Fixes four virtualized-list edge cases surfaced by 5,000-seed
list_stability_fuzz_testsweeps inpackages/view, while keeping streaming-row growth during active FLIP animations smooth:Newly mounted
flip_newslot missingtallbinding (lsf_stream2(675UL, 60)):View::scrolls_window_ids(packages/view/src/list_window.pion), slot creation calledbind()(binding.scale(flip_open(k, slot))) beforetall.set(k, my_tall), andflip_openreadc.untracked(). When a newly insertedflip_newrow mounted mid-FLIP,flip_opensawNoneand returned1.0, rendering the row at unscaled full height overlapping its lower neighbor.tall.set(k, my_tall)beforebind()and readc.get()insideflip_open(only reached whiled > 0.0 && flip_new.contains(k) && !flip_whole.contains(k)).Quiet visible row height change mid-FLIP causing height-offset or overlap conflict (
lsf_stream2(519UL, 60),lsf_stream2(2579UL, 60)):flip_setting_outaroundset_out'slaid_now()calls. When an already-measured row quietly changes height during an activeflip_way, keep the FLIP animation running (e.g. streaming text growing+8ptwhile a new message slides in) and callrest_fliponly if the changed row itself carries an active height FLIP offset (dh.abs() > 0.5,seed 519) or the updated layout causes consecutive visibleshowingrows to overlap in drawn coordinates (drawn_top < prev_bot - 0.5,seed 2579).Quiet deletion of boundary visible row mid-FLIP (
lsf_stream2(761UL, 60)):set_outruns after twoafter_flushpasses, by which time a quietly deleted first/last visible row has already been unmounted fromshowing. Snapshot pre-flushbefore_showinginchange()(aligned 1:1 withpending_was) and checkshowing ∪ before_showinginsideclassify_flip_quiet(packages/view/src/list_flip.pion).Premature
to_foot()latching when deletes/moves reveal unmeasured or stale-height tail rows (lsf_stream2(502UL/598UL/608UL/809UL, 60)):at_most, require every row fromall.first_at(t)throughall.length() - 1to haveall.known(i).filled_rev(updated whens.fillcompletes with!incomplete, or when thelaid_revwatcher confirms nos.fillis pending and every visible row isrow_ready). Inself.reacts(at_most), defer eagers.to_foot()(before mutatings.held) unlesshand || glided || filled_rev.v == laid_rev.v, lettings.fill_putdecide after mounting and re-measuring newly revealed rows.Verification
stream2sweep (onpion-c6c6dd79a7,PION_STRICT_STUB=1):lsf_stream20..<4000× 60 steps +0..<1000× 150 steps (390,000 steps): 0 failures.lsf_stream1,lsf_stream3,lsf_stream4,lsf_stream50..<250× 50 steps each (50,000 steps): 0 failures.packages/view/src/list_stability_fuzz_test.pion:502, 519, 598, 608, 675, 761, 809, 2579(60 steps each).at_most/filled_rev/before_showing):204, 311, 538, 584, 722, 736.+8ptgrowth of penultimate row while newly appended row is mid-FLIP preserves smooth FLIP without snapping or overlapping.flips + foot_roomtest: quiet offscreen delete whilefoot_room > 0.5followed by tail appends keeps following foot.packages/view/src/list_flip_test.pion: direct unit test forclassify_flip_quietboundary head/tail deletions vs offscreen deletion.pionc fmt --checkon all 4 modified files: pass.python3 scripts/invar check --json:ok: true.python3 scripts/invar audit --json --require-reactive:ok: true(0 errors / 0 warnings).packages/view230/230,packages/ui913/913,packages/motion44/44,packages/glass34/34,packages/kit75/75,packages/lg161/161.