Skip to content

Conversation

@chrisbobbe
Copy link
Collaborator

@chrisbobbe chrisbobbe commented Oct 25, 2025

Fixes #890.
Fixes #1083.

image

@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
@alya
Copy link
Collaborator

alya commented Oct 27, 2025

Screenshot looks good to me, thanks!

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.
@gnprice
Copy link
Member

gnprice commented Oct 31, 2025

Thanks for taking care of this! Looks good; merging.

@gnprice gnprice force-pushed the pr-stack-trace-malformed-response branch from 980771d to cb9c4dc Compare October 31, 2025 00:20
@gnprice gnprice merged commit cb9c4dc into zulip:main Oct 31, 2025
1 check passed
@chrisbobbe chrisbobbe deleted the pr-stack-trace-malformed-response branch October 31, 2025 00:20
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

4 participants