-
Notifications
You must be signed in to change notification settings - Fork 15
Organize old components & minor changes #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughIntroduces runtime-config-driven Moeflow Companion integration and reworks module structure. Adds Makefile tasks for locale generation, reorganizes component exports/paths, updates API surface (named api, namespaced calls), adjusts List API, refactors FileList flow, adds AI translate modal/hook, revises i18n keys/strings, and initializes runtime config at app startup. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant U as User
participant App as App Startup
participant Cfg as runtimeConfig (async)
participant Store as Redux Store
participant I18n as i18n Init
Note over App: mountApp()
App->>Cfg: await runtimeConfig
Cfg-->>App: RuntimeConfig
App->>Store: dispatch setRuntimeConfig(config)
App->>I18n: initialize()
I18n-->>App: ready
App-->>U: Render application
sequenceDiagram
autonumber
participant U as User
participant FL as FileList
participant Modal as AI Translate Modal
participant Hook as useMoeflowCompanion
participant Svc as Moeflow Companion Service
participant API as Backend API
Note over FL: User clicks "Auto Translate"
FL->>Modal: openTranslateModal(files)
Modal->>Hook: useMoeflowCompanion()
Hook->>Svc: connect(gradioUrl, model)
Svc-->>Hook: connected | disabled | disconnected
alt connected
loop files (constrained concurrency)
Modal->>Svc: multimodalTranslate(blob, targetLang, model)
Svc-->>Modal: translated blocks
Modal->>API: create Source(s)
API-->>Modal: source id(s)
Modal->>API: create Translation(s)
API-->>Modal: saved
Modal-->>U: update status (done)
end
Modal-->>U: Enable OK button
else disabled/disconnected
Modal-->>U: Show inactive/failed statuses
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (103)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
|




Summary by CodeRabbit
New Features
UX Improvements
Localization
Refactor
Chores