Skip to content

Feat/release mobile 1.1.0#54

Merged
FloChehab merged 3 commits into
mainfrom
feat/release-mobile-1.1.0
May 13, 2026
Merged

Feat/release mobile 1.1.0#54
FloChehab merged 3 commits into
mainfrom
feat/release-mobile-1.1.0

Conversation

@FloChehab

@FloChehab FloChehab commented May 13, 2026

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • New Features

    • Enhanced transcript display with improved text formatting and full markdown support for better readability
  • Bug Fixes

    • Corrected iOS modal timing issue to ensure retry dialog displays only after menu fully closes
  • Chores

    • Version bump to 1.1.0 across both Android and iOS platforms

Review Change Stack

@coderabbitai

coderabbitai Bot commented May 13, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

Mobile app version 1.1.0 release across all platforms with transcript rendering enhancement and improved retry modal interaction. Version fields updated in Android Gradle, iOS Xcode configurations, and npm package. React Native Markdown library added. Retry modal opens after popover close to prevent UI conflicts.

Changes

Mobile App v1.1.0 Release

Layer / File(s) Summary
Version and dependency updates
src/mobile/android/app/build.gradle, src/mobile/ios/AssistantTranscripts.xcodeproj/project.pbxproj, src/mobile/package.json
versionCode incremented from 8 to 9 and versionName updated to 1.1.0 in Android Gradle. iOS Debug and Release configurations updated with matching CURRENT_PROJECT_VERSION 8→9 and MARKETING_VERSION 1.0.3→1.1.0. Package version bumped to 1.1.0. react-native-enriched-markdown@0.5.0 added as dependency.
iOS CocoaPods build phase xcfilelist migration
src/mobile/ios/AssistantTranscripts.xcodeproj/project.pbxproj
[CP] Embed Pods Frameworks and [CP] Copy Pods Resources shell phases updated to use xcfilelist-based inputFileListPaths/outputFileListPaths instead of inputPaths/outputPaths for improved dependency tracking.
Markdown-based transcript display
src/mobile/src/components/AppText.tsx, src/mobile/src/screens/RecordingDetailsScreen.tsx
typography exported from AppText for styling reuse. RecordingDetailsScreen imports added for AppText, typography, and EnrichedMarkdownText. Transcript rendering replaced nested AppText segments with single EnrichedMarkdownText component using markdown string built from transcript segments, styled via typography config.
Deferred retry modal opening
src/mobile/src/components/RecordingMenu.tsx
pendingRetry state tracks whether retry modal should open after popover close. handlePopoverCloseComplete callback extended to open retry modal when pendingRetry is true after the iOS timeout. Retry button handler sets pendingRetry and closes popover instead of directly opening modal.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • suitenumerique/dictaphone#52: Both PRs modify src/mobile/src/components/RecordingMenu.tsx for transcript regeneration and retry behavior, with deferred modal opening via pendingRetry.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Feat/release mobile 1.1.0' accurately describes the main objective of this pull request—releasing version 1.1.0 of the mobile application. The PR includes version bumps across Android, iOS, and package configurations, plus supporting features like markdown text rendering enhancements.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/mobile/src/screens/RecordingDetailsScreen.tsx`:
- Around line 235-247: The markdown string built for EnrichedMarkdownText uses
raw transcriptSegments values (segment.speaker and segment.text); escape these
fields before joining so markdown characters are treated as literal text. Add or
reuse a helper like escapeMarkdown and call it on
formatTimestamp(segment.start), segment.speaker and segment.text (preserving
trim for text) when constructing the template passed to the markdown prop;
update the interpolation in the transcriptSegments.map used by
EnrichedMarkdownText to use the escaped values instead of the raw fields.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 744b0fe7-a225-4899-9367-fe9f664aadd1

📥 Commits

Reviewing files that changed from the base of the PR and between d8c4f88 and 2e0c512.

⛔ Files ignored due to path filters (2)
  • src/mobile/ios/Podfile.lock is excluded by !**/*.lock
  • src/mobile/yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (6)
  • src/mobile/android/app/build.gradle
  • src/mobile/ios/AssistantTranscripts.xcodeproj/project.pbxproj
  • src/mobile/package.json
  • src/mobile/src/components/AppText.tsx
  • src/mobile/src/components/RecordingMenu.tsx
  • src/mobile/src/screens/RecordingDetailsScreen.tsx

Comment on lines +235 to +247
<EnrichedMarkdownText
selectable={true}
markdownStyle={{
strong: typography.bodyBold,
paragraph: typography.body,
}}
markdown={transcriptSegments
.map(
(segment) =>
`**${formatTimestamp(segment.start ?? -1)} · ${t('transcript.speaker')} ${segment.speaker}** ${segment.text.trim()}`
)
.join('\n\n')}
/>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Escape dynamic transcript content before markdown rendering.

At lines 244-245, segment.speaker and segment.text are injected raw into the markdown string. If either field contains markdown syntax characters (e.g., *, _, [, ], >), they will be interpreted as formatting directives rather than literal text, potentially causing unintended display changes or, in cases where the markdown renderer supports embedded URLs/links, enabling injection attacks. Escape both fields before concatenation.

Proposed fix
+const escapeMarkdown = (value: string) =>
+  value.replace(/([\\`*_{}\[\]()#+\-.!|>~])/g, '\\$1')

 <EnrichedMarkdownText
   selectable={true}
   markdownStyle={{
     strong: typography.bodyBold,
     paragraph: typography.body,
   }}
   markdown={transcriptSegments
     .map(
       (segment) =>
-        `**${formatTimestamp(segment.start ?? -1)} · ${t('transcript.speaker')} ${segment.speaker}**  ${segment.text.trim()}`
+        `**${formatTimestamp(segment.start ?? -1)} · ${t('transcript.speaker')} ${escapeMarkdown(String(segment.speaker ?? ''))}**  ${escapeMarkdown(segment.text.trim())}`
     )
     .join('\n\n')}
 />
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/mobile/src/screens/RecordingDetailsScreen.tsx` around lines 235 - 247,
The markdown string built for EnrichedMarkdownText uses raw transcriptSegments
values (segment.speaker and segment.text); escape these fields before joining so
markdown characters are treated as literal text. Add or reuse a helper like
escapeMarkdown and call it on formatTimestamp(segment.start), segment.speaker
and segment.text (preserving trim for text) when constructing the template
passed to the markdown prop; update the interpolation in the
transcriptSegments.map used by EnrichedMarkdownText to use the escaped values
instead of the raw fields.

@FloChehab FloChehab merged commit 2e0c512 into main May 13, 2026
8 of 9 checks passed
@coderabbitai coderabbitai Bot mentioned this pull request May 14, 2026
This was referenced Jun 1, 2026
@FloChehab FloChehab deleted the feat/release-mobile-1.1.0 branch June 2, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant