Page MenuHomePhabricator

[native] [ENG-2207] Too big notifications when the message is long
ClosedPublic

Authored by kuba on Feb 10 2023, 4:00 AM.
Tags
None
Referenced Files
F3486731: D6685.diff
Wed, Dec 18, 5:48 AM
Unknown Object (File)
Thu, Dec 12, 1:08 AM
Unknown Object (File)
Wed, Dec 11, 1:48 PM
Unknown Object (File)
Tue, Nov 26, 11:12 AM
Unknown Object (File)
Nov 16 2024, 9:44 PM
Unknown Object (File)
Nov 16 2024, 9:44 PM
Unknown Object (File)
Nov 16 2024, 9:44 PM
Unknown Object (File)
Nov 16 2024, 9:44 PM
Subscribers

Details

Summary

Long messages lead to in-app notifications taking up almost half the screen on iOS and Android.

Screenshot_1676029164.png (2×1 px, 137 KB)

IMG_0006.PNG (2×1 px, 461 KB)

Test Plan

I tested new behavior on both operating systems. Now it shows only the first line of the message.

Screenshot_1676029334.png (2×1 px, 150 KB)

IMG_0007.PNG (2×1 px, 264 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kuba retitled this revision from [native] Too big notifications when the message is long to [native] [ENG-2207] Too big notifications when the message is long.Feb 10 2023, 4:05 AM
kuba edited the summary of this revision. (Show Details)
kuba edited the test plan for this revision. (Show Details)
tomek requested changes to this revision.Feb 13 2023, 4:50 AM
tomek added inline comments.
native/push/in-app-notif.react.js
25 ↗(On Diff #22326)

Why is this character removed? Is there a difference in how the notif looks like when it is present?

28 ↗(On Diff #22326)

I think it might be safer to not include a nested array

This revision now requires changes to proceed.Feb 13 2023, 4:50 AM
kuba marked an inline comment as done.
kuba edited the summary of this revision. (Show Details)
kuba edited the test plan for this revision. (Show Details)

Removing nested array

Fixed Tomek's comments.

native/push/in-app-notif.react.js
25 ↗(On Diff #22326)

Previously it was responsible for a new line between Title and Content. Now it's handled by covering message in <SingleLine> component.

This revision is now accepted and ready to land.Feb 14 2023, 4:15 AM