Skip to content

Support basic server-side notification settings - #2493

Open
rajveermalviya wants to merge 2 commits into
zulip:mainfrom
rajveermalviya:pr-notif-settings
Open

rajveermalviya wants to merge 2 commits into
zulip:mainfrom
rajveermalviya:pr-notif-settings

Conversation

@rajveermalviya

Copy link
Copy Markdown
Member

Fixes #661.

Screenshot 2026-10-19 at 21 38 23 Screenshot 2026-10-19 at 21 38 30

@rajveermalviya rajveermalviya added the maintainer review PR ready for review by Zulip maintainers label Nov 4, 2026
@rajveermalviya
rajveermalviya requested a review from Ruhdee November 4, 2026 18:25

@Ruhdee Ruhdee left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@rajveermalviya Thank you! LGTM, except for one small change.

Comment thread test/widgets/settings_test.dart Outdated
const title = 'Notifications when offline';
await prepareNotificationSettingsPage(tester);
String? reportedError;
reportErrorToUserBriefly = (message, {details}) => reportedError = message;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
reportErrorToUserBriefly = (message, {details}) => reportedError = message;
reportErrorToUserBriefly = (message, {details}) => reportedError = message;
addTearDown(() => reportErrorToUserBriefly = defaultReportErrorToUserBriefly);

Right now, this test is the last one in the file so the absence of a teardown doesn't cause failures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes zulip#661.

The labels are the legacy app's.  The page is styled like the rest of
the settings UI, pending its redesign in zulip#1375.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rajveermalviya

Copy link
Copy Markdown
Member Author

Thanks for the review @Ruhdee! Pushed an update, PTAL.

@Ruhdee Ruhdee left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you! The localization string name changes make sense. As for the suggestion I made earlier, it's good that you didn't apply it. It is not needed because prepareNotificationSettingsPage calls testBinding.reset, which indirectly resets the reportErrorToUserBriefly callback. Some other places in the code (like this) include redundant teardowns. This could be a future cleanup; it's not relevant to this PR.

LGTM; moving to integration review.

@Ruhdee Ruhdee 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 Nov 21, 2026
@Ruhdee Ruhdee assigned chrisbobbe and unassigned Ruhdee Nov 21, 2026
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.

Set basic server-side notification settings

3 participants