SMF icon indicating copy to clipboard operation
SMF copied to clipboard

Cap Number of Alert Notifications

Open mcblaber opened this issue 12 years ago • 47 comments

Currently if you have a large number of notifications, SMF will attempt to display all of them if you click the alert dropdown. There should be a limit on the number of notifications that's displayed and a link on the bottom that says "Show More" for usability purposes. (a la facebook) Not to mention the current approach can break layouts.

screen shot 2014-06-29 at 11 45 22 am

mcblaber avatar Jun 29 '14 15:06 mcblaber

We already have an "all alerts" link, so I'd be fine with showing something like only the last 10 and letting them go to their profile to see the rest.

Oldiesmann avatar Jun 29 '14 17:06 Oldiesmann

That would be fine. :+1: Although I'm tempted to say the "All Alerts" or "View All Alerts" should be moved to below the 10th alert. Just seems more logical.

mcblaber avatar Jul 01 '14 03:07 mcblaber

oh i missed this @mcblaber we eliminated some text because of translated versions can be bit more larger, and this leads the dislocations of text and for mobile view.

XinYenFon avatar Jul 09 '14 23:07 XinYenFon

Does this needs an admin/user setting or is it something we can hardcode at 10 ?

MissAllSunday avatar Jul 11 '14 14:07 MissAllSunday

just hard code it, then no one can complain that things get screwy if they increase the number too high.

illori avatar Jul 11 '14 14:07 illori

Ok, made the change, however, this could lead to some confusion since the total amount of unread alerts is still added to the alerts button.

For example, I have 17 unread alerts but the code is only showing 10. I would be better if there is some kind of text showing something like

"Showing latest 10" and a more promient "show all alerts link", the current one is somehow small and gets missed pretty easily when the list is showing.

MissAllSunday avatar Jul 11 '14 18:07 MissAllSunday

Why not just use a scrollable div?

On Fri, Jul 11, 2014 at 11:03 AM, Jessica González <[email protected]

wrote:

Ok, made the change, however, this could lead to some confusion since the total amount of unread alerts is still added to the alerts button.

For example, I have 17 unread alerts but the code is only showing 10. I would be better if there is some kind of text showing something like

"Showing latest 10" and a more promient "show all alerts link", the current one is somehow small and gets missed pretty easily when the list is showing.

— Reply to this email directly or view it on GitHub https://github.com/SimpleMachines/SMF2.1/issues/1990#issuecomment-48763022 .

live627 avatar Jul 12 '14 00:07 live627

Not really a fan of adding a scroll in the middle of a page.

MissAllSunday avatar Jul 12 '14 15:07 MissAllSunday

w/e

On Sat, Jul 12, 2014 at 8:06 AM, Jessica González [email protected] wrote:

Not really a fan of adding a scroll in the middle of a page.

— Reply to this email directly or view it on GitHub https://github.com/SimpleMachines/SMF2.1/issues/1990#issuecomment-48814637 .

live627 avatar Jul 12 '14 23:07 live627

A scroll bar would fix

this could lead to some confusion since the total amount of unread alerts is still added to the alerts button.

live627 avatar Jul 13 '14 01:07 live627

And it will create more issues:

  • Most Android devices cannot scroll the content at all.
  • On mobile devices there is no scroll indicator which will create an even bigger confusion.
  • Scrollable divs are a pain to maintain crossbrowser wise.
  • You're leaving themers with no other options.

Those are the reasons I'm not really a fan of adding a scroll overthere.

MissAllSunday avatar Jul 13 '14 14:07 MissAllSunday

That cap should be 5 not 10.

XinYenFon avatar Jul 13 '14 14:07 XinYenFon

I think limiting it to 10 with no additional explanation will be fine. That's how IPB does it (one of the forums I frequent is IPB powered) - shows 10 notifications with "show all notifications" and "options" links at the top.

Oldiesmann avatar Jul 13 '14 16:07 Oldiesmann

I suggested 5 because of small screen mobile phones.

XinYenFon avatar Jul 13 '14 17:07 XinYenFon

Does IPB shows the total amount of unread alerts? thats the main issue, we are showing that number and it can be confusing to users to see a number and then only see a different amount of alerts been displayed.

My proposal change is quite simple, show a "showing latest 10" where the "All alerts" link currently is and move the "All alerts" link to the button of the displayed alerts.

As for 5 vs 10, we can check the browser and display 5 if its a mobile device or something.

MissAllSunday avatar Jul 13 '14 17:07 MissAllSunday

Yes, IPB does display the total number of unread alerts. One time recently I had 14 of them and it only showed the 10 most recent. I had to click on "View All Notifications" to see the other four.

Oldiesmann avatar Jul 15 '14 15:07 Oldiesmann

Limit it to 10 with an additional notice at the bottom to saying "Show rest of the unread alerts"

Dragooon avatar Jul 17 '14 14:07 Dragooon

sounds good to me.

illori avatar Jul 17 '14 15:07 illori

Why do we need a "show the rest of the unread alerts" notice? We've already got a link you can click to view all alerts.

Oldiesmann avatar Jul 17 '14 17:07 Oldiesmann

Because otherwise it's not instantly obvious that there are more unread notifications

On Thu, Jul 17, 2014 at 10:31 PM, Michael Eshom [email protected] wrote:

Why do we need a "show the rest of the unread alerts" notice? We've already got a link you can click to view all alerts.

— Reply to this email directly or view it on GitHub https://github.com/SimpleMachines/SMF2.1/issues/1990#issuecomment-49334555 .

Dragooon avatar Jul 17 '14 17:07 Dragooon