GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — refactor(mobile): app link parsing reads top to bottom with pipe by juliusmarminge · Pull Request #26330 · pingdotgg/t3code

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Oct 28, 2026

Copy link
Copy Markdown
Member

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.

All reactions
@juliusmarminge @claude
refactor(mobile): app link parsing reads top to bottom with pipe
944ff77
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]>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Oct 28, 2026
@macroscopeapp

macroscopeapp Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

macroscopeapp[bot]
macroscopeapp Bot approved these changes Oct 28, 2026
View reviewed changes
@coderabbitai

coderabbitai Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: t3/mobile-app-link-state-pipe
  • File: .coderabbit.config.ts
  • Commit: 944ff77
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Team
  • Run ID: bc51cac3-11f3-44ee-a662-485ad83ecd0a
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

  • pingdotgg/t3code#26326: Moved getAppStateFromPath into appLinkState.ts; this PR moves it back into App.tsx.
  • pingdotgg/t3code#25820: Added prompt-link handlers to the parsed navigation-state pipeline retained in this PR.
  • pingdotgg/t3code#26318: Added withoutPairingTarget, which this PR retains in the parsing pipeline.

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: Passed 4
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main refactor: moving mobile app-link parsing to a top-to-bottom pipe.
Description check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge
juliusmarminge merged commit 2349c81 into main Oct 28, 2026
31 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge
juliusmarminge deleted the t3/mobile-app-link-state-pipe branch October 28, 2026 07:39
@adampeterhiggins adampeterhiggins mentioned this pull request Oct 29, 2026
chore: sync upstream through 07f7f976 adampeterhiggins/t3code#512
Merged
19 tasks done
@olafura olafura mentioned this pull request Nov 7, 2026
test(features): ledger upstream T3 Code through 9504a09f08 hal-c2/hal-c2#1189
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

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.

Projects

None yet

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.

1 participant

@juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.