IceCubesApp icon indicating copy to clipboard operation
IceCubesApp copied to clipboard

Feature request: compact/consolidated view in notifications

Open Bexxia opened this issue 3 years ago • 3 comments

In testing out a few Mastodon apps, I particularly love the way one presents notifications into groups - it makes it much quicker to see what kind of actions have been taken and looks aesthetically very pleasing. Tapping a group then expands the detail. I was wondering if there could be an option for something similar?

I’ve attached a screenshot for reference.

IMG_3020

Bexxia avatar Jan 21 '23 14:01 Bexxia

I wonder how accurate it is? My accounts can get more than 500 notifications per hour, for doing something like that, and accurate, it mean I would have to fetch hundreds of pages of notifications to get it working.

In theory I would looooove to do it, in practice it'll probably be not accurate :/

Dimillian avatar Jan 21 '23 15:01 Dimillian

I wonder how accurate it is? My accounts can get more than 500 notifications per hour, for doing something like that, and accurate, it mean I would have to fetch hundreds of pages of notifications to get it working.

In theory I would looooove to do it, in practice it'll probably be not accurate :/

Ah, I’ve no idea about the technical limitations, just thought it looked good and it works well with my (small) account. Would be great if you could implement something similar, but appreciate your concerns on how accurate it would actually be.

Bexxia avatar Jan 21 '23 17:01 Bexxia

For many things it gives you the number in the json, which is how I did it on mine.

ie: for Favourites, you can check the notification.type (Favourite), then grab notification.status.favourites_count, presenting favourites_count - 1. Then check the notification.status.id, and any more favourite notifications for that status id you ignore.

I'm glad Mona is doing it. I thought I was going to be the only one. :D

antijingoist avatar Jan 22 '23 21:01 antijingoist

To add one more data point, the Wooly App seems to do the same: https://mastodon.social/@charliemchapman/109757465278236970

merlinscholz avatar Jan 27 '23 01:01 merlinscholz

As long as we are adding datapoints:

Tusker also does grouping (in a different implementation tho):

https://social.shadowfacts.net/objects/4828f1d0-5d41-432b-b6a9-7b84a1032d0e

antijingoist avatar Jan 27 '23 01:01 antijingoist

Here's a working prototype with consolidated notification (only working for favorited or boosted posts for now), but it only groups notification from the loaded page(s). Would it be a first nice step?

Simulator Screen Shot - iPhone 14 Pro - 2023-01-27 at 09 53 05

jdanthinne avatar Jan 27 '23 08:01 jdanthinne

That's how i did it at first. It's a great first step. :) (I'm not sure the idea of grouping works very well outside of boosts and favourites. I'm only grouping on boosts and favourites :D) Since notifications includes total reblogs, favourites and replies on each notification, I also include that and just ignore all additional favs or reblogs for that post. I don't have profile pics yet. :D

antijingoist avatar Jan 27 '23 12:01 antijingoist

That looks gorgeous! As @antijingoist already mentioned, you wouldn’t necessarily have to search multiple pages for notifications that can be grouped, in my opinion it would be more than enough to group consecutive favorites/boosts, should be easier to implement too

merlinscholz avatar Jan 27 '23 12:01 merlinscholz

Currently I'm not at all searching multiple pages. At first I was grouping everything, all loaded pages together, but I changed that to only group per page. It seems to work fine.

jdanthinne avatar Jan 27 '23 13:01 jdanthinne

This is amazing! But I think yes to be a bit better, you can load at least a few pages, for my account for example, it'll not be nearly accurate enough wit this one page. But wow! Feel greats to see it in the app!

Dimillian avatar Jan 27 '23 13:01 Dimillian

Yes, maybe juste consecutive is enough, and much simpler, and then you don't need to fetch as much pages.

Dimillian avatar Jan 27 '23 13:01 Dimillian