Skip to content

Feature/translate settings#1947

Merged
Tlaster merged 2 commits intomasterfrom
feature/translate-settings
Apr 1, 2026
Merged

Feature/translate settings#1947
Tlaster merged 2 commits intomasterfrom
feature/translate-settings

Conversation

@Tlaster
Copy link
Copy Markdown
Contributor

@Tlaster Tlaster commented Mar 31, 2026

No description provided.

@Tlaster Tlaster marked this pull request as ready for review April 1, 2026 03:15
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 885318d3c1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

prompt = prompt,
)

if (result != null) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Treat null translation result as failure

When TranslationProvider.translateDocumentJson returns null (for example, missing OpenAI credentials or unavailable on-device model), translateHtmlContent currently falls through and returns the original HTML as a successful state instead of surfacing an error. This makes RSS translation look like a successful no-op and suppresses the retry/error path in the UI, so users cannot tell configuration/network failures from successful translation.

Useful? React with 👍 / 👎.

Comment on lines +127 to +130
switch onEnum(of: translatePresenter.state.translatedHtml) {
case .success(let data): return String(data.data)
case .loading, .error: return nil
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Surface RSS translation errors in iOS UI

The iOS RSS translation wrapper maps .error to nil exactly like .loading, so translation failures are silently treated as “just show original content.” After users tap Translate, the translate button is hidden, so in failure cases they get no error feedback and no in-screen retry path. This will make transient/network/config issues look like the feature is broken or inactive.

Useful? React with 👍 / 👎.

@Tlaster Tlaster merged commit 2a3a0f2 into master Apr 1, 2026
10 of 11 checks passed
@Tlaster Tlaster deleted the feature/translate-settings branch April 1, 2026 03:31
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