Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[suggestion] Minor Alerts & Messages Suggestion #4950

Closed
SychO9 opened this issue Aug 20, 2018 · 11 comments · Fixed by #5566
Closed

[suggestion] Minor Alerts & Messages Suggestion #4950

SychO9 opened this issue Aug 20, 2018 · 11 comments · Fixed by #5566
Labels
Milestone

Comments

@SychO9
Copy link
Contributor

SychO9 commented Aug 20, 2018

While browsing I noticed that when I receive a notification, I find myself clicking on the member's link instead of the reply to the topic/post itself (or other kinds on alerts such as reports)

I'm thinking either having the first link be the important one, or have the entire box of each item take to the subject notified about, I do believe small details like this matter and make a difference.

@Gwenwyfar
Copy link
Contributor

Gwenwyfar commented Aug 20, 2018

Making the whole area take to the subject sounds good. I also noticed some kinds of notifications don't have any link other than a profile link.

Do you want to do it?

@SychO9
Copy link
Contributor Author

SychO9 commented Aug 20, 2018

Sure, I'll do so & post an PR as soon as my current PR is closed (whether it be merged or not)
cause I didn't branch (stupid I know, was my first time, I know my way around now, literally took a git course)

@Gwenwyfar
Copy link
Contributor

Alright :)

hehe, beginner's mistake, I did the same. You get used to it xD

@SychO9
Copy link
Contributor Author

SychO9 commented Aug 21, 2018

I'm unable to produce a calendar event alert, can anyone check if they can ?

@MissAllSunday
Copy link
Contributor

I would be against this change since on my mods I add more stuff in the notification than a simple link, if the whole area gets converted to a link, mods won't be able to emit this kind of more robust notifications.

@Gwenwyfar
Copy link
Contributor

Gwenwyfar commented Aug 21, 2018

I'm sorry but I think good default behavior is more important than how it will affect mods. As it stands you need to manually find links to many notifications and that's far from ideal. You can always just change your mod to work with this (and if possible this can be made in a way easy to change).

Or maybe another way this could be done is change the avatar to a user link, and make a good portion of the main message link to the subject (the first phrase on most of them), removing user links there.

@SychO9
Copy link
Contributor Author

SychO9 commented Aug 21, 2018

making this does require a lot of additional code in the fetch_alerts() function and Alerts language file since that's where most of the links which have to be removed for this are, but I don't think It's a problem for mods,
Why trying to do this I had to add a condition to either use a global link or not, because the alerts list in the profile section needs those links contrary to the dynamic alert box,
So the way I see it, mod creators can add a bool variable to the "extra" array, say globalLink for example, and tests are made to determine if that one alert will use a global link or not

Otherwise I suppose @Gwenwyfar last suggestion is better than nothing.

@MissAllSunday
Copy link
Contributor

Yeah... the point is, notifications aren't limited to a single action, just because SMF doesn't do this by default (It should BTW) doesn't mean the notification feature needs to be limited.

A lot of effort has been put to make the notification system as extensible and customizable as possible, limiting the actual notification to a single link kinda defeats this purpose.

@SychO9
Copy link
Contributor Author

SychO9 commented Aug 21, 2018

if the main purpose is to have many links, then I guess it is what it is,
I only tried to look at this from a simple user's perspective, cause I personally find it inconvenient this way, but I guess it's just a matter of getting used to it.

@Gwenwyfar
Copy link
Contributor

The main purpose of a notification shouldn't be about multiple links, but the main subject (to know about it, use it, go to it). Anything else is an extra. While the extras is nice to have, the main function should work well.

So making a more usable link for it is the minimum we should do (and add one where there isn't any at all).

@MissAllSunday what do you think about the idea of being able to just change the format easily (with a bool or otherwise)?

@MissAllSunday
Copy link
Contributor

Sure, a way to specify what kind of notification you want to show would be great.

@Sesquipedalian Sesquipedalian added this to the RC2 milestone Oct 10, 2018
@Sesquipedalian Sesquipedalian modified the milestones: RC2, RC3 Feb 13, 2019
@SychO9 SychO9 mentioned this issue Apr 1, 2019
@live627 live627 added the Has fix label Apr 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants