[dev] [Marfuen] mariano/fix-trust-framework-toggle#2753
Merged
Conversation
The 20 framework onToggle/onStatusChange handlers were swallowing the caught error and showing a generic "Failed to update X status" toast, making it impossible to tell whether the underlying call failed on permission, validation, network, or DB error. Log the error to console and pass error.message into the toast description so the actual cause surfaces to the operator. No behavior change beyond observability. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
This is an automated pull request to merge mariano/fix-trust-framework-toggle into dev.
It was created by the [Auto Pull Request] action.
Summary by cubic
Surfaced real error messages for Trust Portal compliance framework toggles to make failures actionable. We now log errors and include the message in toast descriptions; UI behavior is unchanged.
Bug Fixes
error.messagein toast descriptions instead of generic messages.Refactors
TrustPortalSwitch.tsx; no runtime impact.Written for commit 066a68b. Summary will update on new commits.