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
Unknown Object (File)
Thu, May 2, 1:24 PM
Unknown Object (File)
Apr 3 2024, 11:06 PM
Unknown Object (File)
Apr 3 2024, 11:06 PM
Unknown Object (File)
Apr 3 2024, 11:06 PM
Unknown Object (File)
Apr 3 2024, 11:06 PM
Unknown Object (File)
Apr 3 2024, 11:04 PM
Unknown Object (File)
Mar 21 2024, 10:10 AM
Unknown Object (File)
Mar 20 2024, 9:18 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