Skip to content

Conversation

@chrisbobbe
Copy link
Collaborator

@chrisbobbe chrisbobbe commented Oct 25, 2025

Fixes #890.
Fixes #1083.

image

We're about to show a stack trace in an error dialog, and it'll be
easier to read when start-aligned than center-aligned.

Applying it here with DefaultTextStyle, rather than on each Text
widget, to avoid repetition, particularly because one caller (of
_adaptiveContent) passes multiple Text widgets and we'd have to
handle each of those; that's in UpgradeWelcomeDialog.
(The comment about log entries being truncated at 1 kiB is copied
from a similar debugLog call.)

Issue zulip#1083 isn't completely fixed here; we'd still like to show
stack traces for malformed `/register` responses.

Fixes-partly: zulip#1083
(Except when we get a SocketException, which is common when the
device is asleep.)

This includes showing a stack trace when the /register response is
malformed, so I think that's the last of zulip#1083, having addressed
events in a recent commit.

Fixes zulip#890.
Fixes zulip#1083.
@chrisbobbe chrisbobbe added the maintainer review PR ready for review by Zulip maintainers label Oct 25, 2025
@chrisbobbe
Copy link
Collaborator Author

chrisbobbe commented Oct 25, 2025

UI change for @alya's review: left-aligning the body text in dialogs on iOS, per Greg's suggestion:

Before After
image image

(Prompted by noticing that the stack traces look bad when center-aligned.)

Copy link
Member

@rajveermalviya rajveermalviya left a comment

Choose a reason for hiding this comment

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

Thanks @chrisbobbe! LGTM, moving over to Greg's review.

@rajveermalviya rajveermalviya added integration review Added by maintainers when PR may be ready for integration and removed maintainer review PR ready for review by Zulip maintainers labels Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration review Added by maintainers when PR may be ready for integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include stack trace when reporting MalformedServerResponseException Show detailed register-queue feedback

3 participants