Skip to content
Source
Sign inSign up
pingdotgg/t3code

Revert "fix(mobile): keep Android markdown icons aligned with text" #11098

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/11098/headmerged by juliusmarminge View on GitHub

juliusmarmingecommented

Reverts pingdotgg/t3code#11079

PR adds a bunch of platform conditionals in a file that already runs on a single platform. I am very confused and haven't seen a proof that this doesn't regress the ios side of thigns so reverting.

Summary by CodeRabbit

  • Bug Fixes

    • Improved text copying so inline image placeholders are removed without altering surrounding authored whitespace.
    • Removed unnecessary spacing before file and external-link icons on Android.
    • Standardized vertical spacing between document blocks for a more consistent reading experience.
  • Documentation

    • Updated composer guidance to remove outdated Android-specific text selection and message-copy instructions.
    1. juliusmarminge merged this3836890

    2. juliusmarminge closed this

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

    4. github-actions[bot](GitHub profile, opens in a new tab) added labels📱 Native Change

    5. Review Change StackReview Change Stack

      Caution

      Review failed

      The pull request is closed.

      ℹ️ Recent review info
      ⚙️ Run configuration

      Configuration used: Path: .coderabbit.yaml

      Review profile: CHILL

      Plan: Team

      Run ID: 105423d5-56dd-47be-afa1-52f17212080c

      📥 Commits

      Reviewing files that changed from the base of the PR and between 444fd8badd265ddde33babf2a21bf3f527334e98 and 942b48a284ca2dcf1dafb9c15b870d45e6eb7dc7.

      📒 Files selected for processing (9)
      • apps/mobile/modules/t3-markdown-text/android/build.gradle
      • apps/mobile/modules/t3-markdown-text/android/src/main/java/expo/modules/t3markdowntext/T3MarkdownTextSelectionModule.kt
      • apps/mobile/modules/t3-markdown-text/android/src/test/java/expo/modules/t3markdowntext/MarkdownSelectionCopyTest.kt
      • apps/mobile/modules/t3-markdown-text/src/NativeMarkdownBlock.ios.tsx
      • apps/mobile/modules/t3-markdown-text/src/NativeMarkdownSelectableText.ios.tsx
      • apps/mobile/modules/t3-markdown-text/src/SelectableMarkdownText.ios.tsx
      • apps/mobile/modules/t3-markdown-text/src/nativeMarkdownText.ts
      • apps/mobile/src/lib/nativeMarkdownText.test.ts
      • docs/user/composer.md

      📝 Walkthrough

      Walkthrough

      The changes simplify Android selection sanitization, remove obsolete Android test setup, inline markdown block spacing, and adjust selectable text rendering for non-rich chunks and icon runs. Related composer documentation is removed.

      Changes

      Markdown rendering and selection

      Layer / File(s)Summary
      Android selection sanitization
      apps/mobile/modules/t3-markdown-text/android/...
      Selection copying now removes only inline-image replacement characters. The obsolete Robolectric test class and test-only Gradle configuration are removed.
      Markdown block spacing
      apps/mobile/modules/t3-markdown-text/src/nativeMarkdownText.ts, apps/mobile/modules/t3-markdown-text/src/NativeMarkdownBlock.ios.tsx, apps/mobile/src/lib/nativeMarkdownText.test.ts
      Block spacing is calculated inline. Document children use uniform spacing and direct rendering. Tests retain spacer-run validation.
      Selectable rendering paths
      apps/mobile/modules/t3-markdown-text/src/SelectableMarkdownText.ios.tsx, apps/mobile/modules/t3-markdown-text/src/NativeMarkdownSelectableText.ios.tsx, docs/user/composer.md
      Non-rich Android chunks use selectable text rendering. Icon runs no longer receive a leading non-breaking space. Android selection guidance is removed from the composer documentation.

      Estimated code review effort: 3 (Moderate) | ~20 minutes

      Suggested reviewers: sunkenintime

      ✨ Finishing Touches
      📝 Generate docstrings
      • Create stacked PR
      • Commit on current branch
      🧪 Generate unit tests (beta)
      • Create PR with unit tests
      • Commit unit tests in branch `revert-11079-t3code/fix-android-text-overlays`

      Comment `@coderabbitai help` to get the list of available commands.

Sign in to join this conversation.