InfiniTime icon indicating copy to clipboard operation
InfiniTime copied to clipboard

Notification age (x minutes ago) on notifcation screen

Open clemensvonmolo opened this issue 3 years ago • 8 comments

This PR adds "x time ago" to the bottom of the notification screen. Every notification item now stores the time at which it was received as a std::time_t (saw no reason to use std::chrono::time_point as it takes more memory with no advantages for storage). The time arrived is set in the notification manager so existing apps don't have to change anything.

I'm not really sure about the location of the text (image below) and if it would be better to use C-style string operations for memory usage and allocation optimisation. IMG_20211117_150831 IMG_20211117_151348 ..e indicator does not interfere with the message

clemensvonmolo avatar Nov 17 '21 14:11 clemensvonmolo

Great feature.

SteveAmor avatar Nov 17 '21 19:11 SteveAmor

Works nicely. Only problem is that the 'no notifications' notification has it (and it doesn't seem to update).

Itai-Nelken avatar Dec 01 '21 19:12 Itai-Nelken

Not sure if this is still active, but this would be great to get merged. What is left to do / blocking this from getting in?

Tiggilyboo avatar May 14 '22 16:05 Tiggilyboo

The problem seems to have been me forgetting about it. Now I think this has to be adjusted to newer changes that happened in the meantime. I don't have time today but I can try doing that tomorrow.

clemensvonmolo avatar May 15 '22 09:05 clemensvonmolo

The problem seems to have been me forgetting about it. Now I think this has to be adjusted to newer changes that happened in the meantime. I don't have time today but I can try doing that tomorrow.

Friendly bump 🙏

devnoname120 avatar Jun 18 '22 19:06 devnoname120

@clemensvonmolo @devnoname120 Sorry for not providing any feedback about this PR for so long. Is there any reason for it to be still a draft?

JF002 avatar Jun 19 '22 19:06 JF002

I can set it to a normal PR for now, but Github says there will be conflicts and I can't do anything about that in the next three days while I'm on a class trip. It might also be a good idea to discuss the positioning of the text again. Anyway thanks for the positive feedback and patience everyone!

clemensvonmolo avatar Jun 19 '22 19:06 clemensvonmolo

Okay this should work now. I've also created InfiniTimeOrg/InfiniSim#46 to fix the build issue it is currently facing with this PR.

clemensvonmolo avatar Jul 28 '22 17:07 clemensvonmolo

Any plans to rebase/eventually merge this sometime? Seems it would be a nice improvement.

yusufmte avatar Jan 31 '23 21:01 yusufmte

This would go very well with #1697 if the grey notification box was made slightly smaller vertically to allow a small bottom bar for this and the notification icons.

LinuxinaBit avatar Apr 18 '23 21:04 LinuxinaBit

lv_obj_t* alert_age should be the last object to be created. Otherwise, objects such as alert_caller will be on top of it and cause the alert_age to be invisible in IncomingCall message.

This also needs a rebase.

Boteium avatar Jul 21 '23 14:07 Boteium