GeezerVison is showing github.com — refactor(mobile): app link parsing reads top to bottom with pipe by juliusmarminge · Pull Request #26330 · pingdotgg/t3code
Conversation
getAppStateFromPath was eight nested calls, so you read it inside out to see what runs first. https://git.cafe/pingdotgg/t3code/pulls/26326 had also moved it into lib/appLinkState.ts so a test could import it. That test wrote its route paths out by hand, so a change to Stack.tsx would pass it unnoticed.
The function is back in App.tsx, and its steps now run top to bottom through pipe from effect/Function, in the same order as before. restoreDraftLinkState and restoreSettingsLinkState take extra arguments, so they stay as small lambdas. appLinkState.ts and its test are deleted.
vp run check:changed passes.
Model: Claude Opus 5.5 via Claude Code in T3 Code.
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Moves getAppStateFromPath back into App.tsx and writes its steps in run
order with pipe instead of eight nested calls. Drops the appLinkState
test, which re-declared the route paths by hand and so could not catch
a routing change.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Approvability
Verdict: Approved at 944ff77
Macroscope's review found this PR approvable — The mobile app-link parser is moved into App.tsx and rewritten as a top-to-bottom pipeline, preserving the existing transformation and side-effect order. This is a contained refactor with no apparent change to link-handling behavior or product defaults.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 0deb383 and 944ff77.
Files selected for processing: 3
-
apps/mobile/src/App.tsx
apps/mobile/src/lib/appLinkState.test.ts
apps/mobile/src/lib/appLinkState.ts
Files with no reviewable changes: 2
-
- apps/mobile/src/lib/appLinkState.test.ts
- apps/mobile/src/lib/appLinkState.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
Walkthrough
-
App.tsx now defines getAppStateFromPath locally. It parses paths with React Navigation and applies the app-link transformations. The former appLinkState module and its pairing-link tests are deleted.
Changes: Mobile app-link parser
| Layer / File(s) |
Summary |
Local app-link parser apps/mobile/src/App.tsx, apps/mobile/src/lib/appLinkState.ts, apps/mobile/src/lib/appLinkState.test.ts |
App.tsx defines getAppStateFromPath and composes the existing link-state transformations with pipe. The former parser module and its pairing-link tests are deleted. |
Priority: Low
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Refactor
Possibly related PRs
Suggested reviewers: flamboh, macroscopeapp
Merge Risk: Minimal · up to 944ff
-
The parser relocation preserves the prior transformation behavior, so this change is mergeable.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title clearly and concisely describes the main refactor: moving mobile app-link parsing to a top-to-bottom pipe. |
| Description check |
 |
The description explains the problem, the implementation changes, the deleted test rationale, and the verification command. It does not provide explicit scope approval or detailed observed verificatio… |
| 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: Description check
-
Explanation
The description explains the problem, the implementation changes, the deleted test rationale, and the verification command. It does not provide explicit scope approval or detailed observed verification results, but it is mostly complete and directly related to the changes.
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:M
30-99 changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|