Skip to content

release: v1.1.0 with architecture refactoring and text translation features#18

Merged
hubo1989 merged 1 commit into
mainfrom
review
Feb 25, 2026
Merged

release: v1.1.0 with architecture refactoring and text translation features#18
hubo1989 merged 1 commit into
mainfrom
review

Conversation

@hubo1989
Copy link
Copy Markdown
Owner

@hubo1989 hubo1989 commented Feb 25, 2026

Summary

  • Architecture refactoring with Coordinator pattern (AppDelegate split into 3 coordinators)
  • Text selection translation feature (Cmd+Shift+Y)
  • Translate and insert feature (Cmd+Shift+I)
  • Unit test coverage for core components
  • Code quality improvements addressing CodeRabbit feedback

Changes

Architecture

  • Split AppDelegate into CaptureCoordinator, TextTranslationCoordinator, HotkeyCoordinator
  • Added protocol abstractions for dependency injection (TranslationServicing, TextSelectionServicing, TextInsertServicing)
  • Refactored SettingsViewModel shortcut recording to use enum-based state machine
  • Optimized PermissionManager from timer-based polling to event-driven

Bug Fixes

  • Fixed translate-and-insert using wrong language settings
  • Fixed applicationWillTerminate async race condition with DispatchSemaphore
  • Fixed Retina screen display issues

Code Quality

  • Refactored keyCodeForCharacter from switch (complexity 50) to dictionary (complexity 1)
  • Wrapped debug prints in #if DEBUG conditional compilation
  • Removed redundant MainActor.run calls
  • Added proper access control (private(set))

Documentation

  • Rewritten README for v1.1.0
  • Added architecture design plan

🤖 Generated with Claude Code

Summary by CodeRabbit

发布说明

  • 新功能

    • 文本选择翻译功能
    • 翻译并插入工作流
  • 文档

    • 添加完整的快捷键参考指南
    • 更新安装说明,包括辅助功能权限要求
    • 新增版本更新日志
    • 添加 macOS 隔离警告解决方案

版本升级至 1.1.0

- Update version to 1.1.0
- Rewrite README with new features:
  - Text selection translation (Cmd+Shift+Y)
  - Translate and insert (Cmd+Shift+I)
  - Architecture refactoring with Coordinator pattern
  - Unit testing coverage
- Update project structure documentation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Feb 25, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3fcba13 and 70ee62c.

📒 Files selected for processing (2)
  • README.md
  • ScreenTranslate.xcodeproj/project.pbxproj

📝 Walkthrough

概要

将ScreenTranslate从v1.0.2升级到v1.1.0,更新项目版本号并重新组织README文档,添加新功能描述、快捷键映射表和安装指南。

变更清单

内聚组/文件 摘要
文档更新
README.md
重写项目特性列表、新增"快捷键"和"预览窗口操作"部分;添加辅助功能权限要求;扩展项目结构文档;引入v1.1.0更新日志。
版本号更新
ScreenTranslate.xcodeproj/project.pbxproj
将current project version从3递增至4,marketing version从1.0.2升级至1.1.0(Debug和Release配置)。

预计审查工作量

🎯 1 (Trivial) | ⏱️ ~3 分钟

诗句

🐰 版本号悄悄升高,
快捷键清单齐闪耀,
文档重生焕新颜,
一点零二变一点一,
小兔欢呼促发展!✨

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch review

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.

@hubo1989 hubo1989 merged commit d2361e6 into main Feb 25, 2026
1 check was pending
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