Repository navigation
fix(web): stop retries from reversing successful video changes - #3680
Merged
Merged
Conversation
Contributor
|
@AksharP5 is attempting to deploy a commit to the Cap Software Inc Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
Author
|
@greptileai review Fixed the reopened-selection finding in a8714f2. Each submission captures its dialog session; old completions still refresh data but cannot clear the new selection or close the reopened dialog. Both new real-component regressions fail on the previous head and pass here, covering failure and success of the old pending removal. The complete compatibility suite passes: 569 tests, nine existing skips. Scoped Biome and TypeScript checks pass. |
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.
When adding and removing videos together, retrying after one action reports failure can undo the action that succeeded. Clear completed submitted changes from the selection when the update finishes, so retry applies only the remaining changes.
Each submission also belongs to its dialog session. An older request still refreshes collection data, but cannot clear selections or close the dialog after it has reopened.
Closes #3679
Start with
[existing-video], select it andnew-video, then click Update twice. The intended result is[new-video].[][new-video][new-video, existing-video][new-video]The four regressions mount the actual dialog, React Query, virtual grid and cards in jsdom with server-action boundary fixtures. They cover both partial-failure directions and closing/reopening while the previous removal is pending, whether that request succeeds or fails. The reopened selection survives and its next update removes the intended video. The regression runs in CI’s web compatibility suite; its existing optimizer prebundles the real form/grid dependencies for consistent React peer resolution.
Validation of current head
a8714f2e0d0b6890b34913ac9fbbab2ec880be9d:e56d291and pass here. The original retry regressions remain passing.The original selection correction received independent GPT-6 Astra HIGH review at
e56d291c1196e0979c137b0dae7489b1f6afe555. The follow-up session guard addresses Greptile’s reopened-selection finding and was verified with the new regressions and complete compatibility suite.No live browser or database end-to-end verification. Explicit partial failure results are covered; rejected promises and ambiguous server-side writes retain existing behavior. Remote code checks have passed, and fresh Greptile review reports 5/5 on the current head. Vercel previews require team authorization.
Reproduce:
bun run --cwd apps/web test __tests__/unit/add-videos-dialog-retry.test.ts

Confidence Score: 5/5
The PR appears safe to merge; the reopened-selection finding is addressed and no new actionable issues were found.Summary
The PR keeps retries from undoing successful video changes and protects selections made after reopening the dialog.
Reviews (2) · Last reviewed commit: "fix(web): isolate video updates between ..." · Reviewed by Greptile