Hide raw cloud config errors in settings#8790
Open
miachillgood wants to merge 2 commits into
Open
Conversation
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideReplaces raw backend error strings shown in cloud settings with localized, user-friendly sync error messages, ensuring non-technical copy is displayed when cloud config loading fails. Sequence diagram for localized sync error handling in cloud settingssequenceDiagram
actor User
participant AppFlowyCloudViewSetting
participant CloudConfigRepository
participant FlowyErrorPage
User->>AppFlowyCloudViewSetting: build
AppFlowyCloudViewSetting->>CloudConfigRepository: loadCloudConfig
CloudConfigRepository-->>AppFlowyCloudViewSetting: Either.left(error)
AppFlowyCloudViewSetting->>FlowyErrorPage: message(LocaleKeys.error_syncError.tr, LocaleKeys.error_syncErrorHint.tr)
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Consider ensuring that the underlying
erris still logged or surfaced to observability tooling somewhere else, since replacing it with a generic localized message here removes potentially useful debugging information from the UI. - If not already in place, it may be worth differentiating between offline/network failures and other cloud config errors before mapping them all to the same
error_syncErrorcopy, so users can get more precise guidance when connectivity is the root cause.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider ensuring that the underlying `err` is still logged or surfaced to observability tooling somewhere else, since replacing it with a generic localized message here removes potentially useful debugging information from the UI.
- If not already in place, it may be worth differentiating between offline/network failures and other cloud config errors before mapping them all to the same `error_syncError` copy, so users can get more precise guidance when connectivity is the root cause.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Author
|
Follow-up pushed on the same branch. I kept the user-facing copy generic, added explicit logging for the underlying cloud-config error, and now show a more specific no-network message when the error looks connectivity-related. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Why
When settings loads while offline or cloud config fetch fails, the UI should not surface raw backend/internal error text directly to the user.
Related to #8668.
Validation
Notes
dartorflutterinstalled.Summary by Sourcery
Replace raw cloud configuration error messages in settings with localized, user-friendly sync error copy.
Bug Fixes:
Enhancements: