Skip to content
Source
Sign inSign up
pingdotgg/t3code

refactor(mobile): organize design system and shared components #20043

Mergedjuliusmarmingemerged 2 commits intot3/mobile-ds-action-sheets fromrefs/pull/20043/headmerged by juliusmarminge View on GitHub

juliusmarmingecommented

The mobile component folder mixed design-system controls with feature UI. Move the controls and their platform implementations into src/components/ui, keep cross-feature app components in src/components, and move seven feature-owned components into their owning features. Update imports and test mocks directly, without re-export shims or rendering changes.

FolderContents
components/uiText, symbols, buttons, rows, menus, dialogs, sheets, feedback, chrome, and their platform helpers
componentsShared composer pieces, file/media previews, branding, domain icons, loading and error-boundary UI
features/threadsBrowser app icon, attachment button, copy button, clone banner
features/filesAudio preview
features/projectsSource-control icon
features/connectionPermission-update notice

Validation: mobile typecheck; 25 focused tests including platform dependency graphs, header menus, Git branches, questions, and project creation; native static checks; changed-file lint and formatting. React Doctor reported no change-specific findings. No visual behavior changes, so screenshots do not apply.

Design-system progress

API adoption and Pen rendering are tracked separately. This is cumulative through this PR, not a claim that all native renderers are finished.

Pen componentAfter this PR
Component organizationAdded here: components/ui, shared composites, feature-owned components
Host / native themeColors only; native typography and shapes left
List / Section / RowShared RN rows; native Form / ListItems left
ToggleNative switches; Android checkmark treatment left
SegmentedNative + themed; custom rendering deferred
MenuShared Menu used for Android markdown links; iOS native per-link menus retained
SheetShared API; Compose renderer and detent API left
DialogNative alerts / confirm / prompt; Android actions styled; action sheets deferred
SearchFieldShared API; native Android search left
Button / IconButtonAndroid native; standalone iOS native rendering left
ChipShared RN chip; native Android variants left
ToastCustom themed toast retained
FABNative Android FAB; menu left
ToolbarUnified API and platform renderers
AppBarNative Android adopted; large / collapsing variants left
Picker / Slider / StepperNative sliders on both; full Picker / Stepper family left
Progress / EmptyStateNative progress + loader adoption; native iOS empty state left
Typography / shapes / motionControl tokens adopted; native Host injection left
Split / list-detail / railDeferred broader layout work

Custom Appearance cards stay. Segmented controls stay native. Composer, thread-row and task-tray redesigns remain deferred.

Model: GPT-6.1. Harness: Codex.


Devin Review
    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. juliusmarminge added labelsmacroscope-review

    3. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved at 1c0da7b

      Macroscope's review found this PR approvable — This PR reorganizes existing mobile UI and feature components without introducing new behavior; production changes are limited to equivalent import and relative-path updates. The large diff is primarily renames and caller/test updates, with no product-default or deployment changes.

      No code changes detected at cdb3864. Prior analysis still applies.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. github-actions[bot](GitHub profile, opens in a new tab)commented

      Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ℹ️ No successful main baseline artifact is available yet. This run establishes the initial measurement.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire—4.9 KiB—6.8 KiB✅
      CodexThread snapshot wire—3.8 KiB—4.9 KiB✅
      CodexLive turn WebSocket wire—1.2 KiB—2.0 KiB✅
      CodexLive turn WebSocket decoded—20.8 KiB—29.3 KiB✅
      CodexLive turn messages—1—8✅
      ClaudeTotal thread wire—5.0 KiB—6.8 KiB✅
      ClaudeThread snapshot wire—3.8 KiB—4.9 KiB✅
      ClaudeLive turn WebSocket wire—1.2 KiB—2.0 KiB✅
      ClaudeLive turn WebSocket decoded—21.2 KiB—29.3 KiB✅
      ClaudeLive turn messages—1—8✅

      Baseline: unavailable · PR result: cdb3864 · Source CI: success

      Scenario and decoded snapshot size

      10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

      • Codex decoded thread snapshot: 108.5 KiB
      • Claude decoded thread snapshot: 108.8 KiB

      Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

    5. Review in Change Stack →
      ✨ 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.
    6. juliusmarminge merged this86f4a74

    7. juliusmarminge closed this

Sign in to join this conversation.