You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(*): replace deprecated 'FormEvent' and 'MutableRefObject' types - #1631
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Review was skipped as selected files did not have any reviewable changes.
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: c1b72ad0-8566-42f1-9529-3ffe08f1f0e6
Commits
Reviewing files that changed from the base of the PR and between eb64b50 and 2a9b9c2.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
The pull request updates React event types for form handlers and changes a ref parameter type in a process-output callback. The supplied summaries report no runtime behavior changes.
Changes: React type annotation updates
Layer / File(s)
Summary
Event and ref parameter types src/chat/components/*, src/components/AiDock.tsx, src/components/ShowcaseSubmitForm.tsx, src/components/examples/SandboxBrowser.client.tsx, src/components/examples/WebContainerTerminal.client.tsx
Form handlers replace FormEvent with SubmitEvent or SyntheticEvent. renderProcessOutput replaces MutableRefObject with RefObject.
This change only updates TypeScript type annotations for form handlers and one ref parameter, with no runtime behavior change. It poses minimal merge risk, and the reported type-check and lint results support it.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the two deprecated React types the PR replaces, FormEvent and MutableRefObject. The raw summary and PR objectives confirm the change is a type-only swap to SubmitEvent, SyntheticEvent,…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the two deprecated React types the PR replaces, FormEvent and MutableRefObject. The raw summary and PR objectives confirm the change is a type-only swap to SubmitEvent, SyntheticEvent, and RefObject across 11 form handlers and one ref. The title is conventional and specific, and it covers the main change without listing files.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.
The replacements keep the event handlers and ref writes unchanged. SyntheticEvent also preserves the shared form and button handler’s accepted event shape.
AI review notes: Read the complete 13-file diff at 2a9b9c2. Changes are imports and type annotations only; no event logic changed. CI passed. The report shows unchanged raw JavaScript and CSS, with gzip JavaScript +0.02 KiB within the existing budget policy. I did not run separate browser tests or an emitted-output comparison. CodeRabbit skipped this diff, which is not an independent approval.
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
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
@types/react19 deprecatesFormEventandMutableRefObject.SubmitEventinstead ofFormEvent.ExecutionSessionPanel'sprocessCommandis called from both a formonSubmitand a buttononClick, so it takesSyntheticEvent.WebContainerTerminal'srenderedOutputRefusesRefObject, which is mutable in React 19 types.Type-only change; the emitted JavaScript is the same.
Verification
tsc,oxlintandoxfmtpass;typescript/no-deprecatedno longer reportsFormEventorMutableRefObject.Summary by CodeRabbit