Repository navigation
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 18 minutes. View limit details
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. |
Beta npm buildMaintainers can publish one Capacitor Plus workspace package from this PR to npm for fast testing. Comment Examples: /publish-beta core
/publish-beta cli
/publish-beta @capacitor-plus/coreIf exactly one workspace package changed, Packages:
The workflow will:
Security note: beta publish is only enabled for branches inside this repository. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 385d2ecdc7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
a9cef46 to
a680026
Compare
TorichanCapgo
left a comment
There was a problem hiding this comment.
VERDICT: READY at 1d60c59
Jose gate, full review at HEAD (CodeRabbit and cubic skipped from limits, this review stands in). Author riderx (Martin), upstream author @resp76. Live: OPEN, not draft, base plus, CLEAN, 0 behind, 7 ahead. All checks finished green: lint, setup, test-core, test-cli, test-android, test-ios (Xcode 26.0), Socket, comment. Nothing pending. 0 unresolved threads (the one Codex P1 about changelog whitespace is fixed: HEAD is "restore CI-managed changelogs from plus" and the PR touches only 2 files). No CHANGES_REQUESTED. No workflow changes, no secrets, no toolchain bumps.
Faithfulness against ionic-team#8715 (head ad39c29, 2 files): I diffed the two patches. They are identical except hunk line offsets (cli/src/tasks/migrate-uiscene.ts is a few lines different in plus) and one context line in the __testables export, where plus has findMatchingBrace and lacks extractConfigurationForConnecting. The added code (getStoryboardBridgeSubclass, useBridgeSubclass, the storyboard lookup in migrateToUIScene, the logger.info) and the new cli/test/migrate-uiscene-storyboard.spec.ts are byte for byte the upstream content.
Logic: reads Main.storyboard only when it exists, finds the initial view controller id, takes its customClass if it is a valid Swift identifier and not CAPBridgeViewController, and swaps rootViewController = CAPBridgeViewController() in the SceneDelegate template. Returns null (current behavior) otherwise. Behavior matches the description.
Tests: the spec runs the real functions against the shipped ios-spm-template storyboard and SceneDelegate (null for shipped, custom class found, no initial controller, swap result). Behavioral, not source regexes. test-cli and test-ios both passed at HEAD (test-ios is part of CI here).
Blockers: none.
Nits:
- The storyboard is parsed with regexes (upstream's choice). A storyboard with the initialViewController attribute after a reordered tag is handled, but a customClass on a navigation controller wrapper would be missed. Acceptable, same as upstream.
- The PR body is the standard sync template, fine.
8da5cf4 to
021c709
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 021c709c1f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const SHIPPED_STORYBOARD = readFileSync( | ||
| resolve(REPO_ROOT, 'ios-spm-template/App/App/Base.lproj/Main.storyboard'), | ||
| 'utf-8', | ||
| ); |
There was a problem hiding this comment.
Use legacy UIKit fixtures instead of the current SwiftUI templates
This test suite reads Main.storyboard at module initialization, but that file no longer exists in the shipped SPM template, so Jest will fail with ENOENT before running any tests. A repository-wide file search and inspection of the asset packer confirm that it is not generated either. The current SceneDelegate.swift is also an empty SwiftUI delegate without the replacement target, so the final assertion would still fail after fixing the storyboard input. Use self-contained legacy UIKit fixtures for both inputs so these tests can exercise the migration without depending on templates that have already moved to SwiftUI.
Useful? React with 👍 / 👎.
021c709 to
aea372d
Compare
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
…rating to UIScene Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit ad39c29)
037af60 to
2aef36b
Compare
…esync Co-authored-by: Martin DONADIEU <martindonadieu@gmail.com>
Upstream PR Sync
This PR syncs changes from an external contributor's PR on the official Capacitor repository.
Original PR
Automation
Synced from upstream by Capacitor+ Bot
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.