soscripted / sox

Stack Overflow Extras: a userscript for the Stack Exchange websites to add a bunch of optional toggle-able features
http://stackapps.com/q/6091/
MIT License
72 stars 15 forks source link

Inbox notification when downvoted question is edited #98

Closed fixer1234 closed 7 years ago

fixer1234 commented 8 years ago

Installed Version: 1.X.X | Environment: Chrome/Tampermonkey Note: Firefox not Chrome

I believe this is tied to the token issue (reported separately), but not 100% sure. If so, this is already known and, hopefully, would disappear when the token problem is solved.

Expected Behavior

How do you expect the feature to work? Feature button to select the option on the post, plus inbox notification when the downvoted question is edited.

Actual Behavior

How is the feature currently behaving?

Feature button: This was originally an eyeball icon and my recollection is that the icon was replaced by a text link as one of the actions under the question. That part worked in previous versions but is missing in v2.0.1 (perhaps now a function of the token?).

Notification: This part never worked for me. I think this is the feature that the token is required for and that piece never worked, so the notification didn't. The token is still not working (different issue already reported), so I assume that's what underlies the problem with this feature.

Error Logs

SOX errors are logged to the browser console, if possible, please post those here.

I'll collect these if needed, but my understanding is that the problem is known (token).

Steps to reproduce

What steps did you take to reproduce the issue?

Went to a question I had downvoted to test the feature, but was unable to test because of the missing button.

shu8 commented 8 years ago

That's been fixed in the latest version (I think it's P now). You can install it using any links I've ever given in these issues :) (I'm not on my computer atm so can't give you the link!)

On 5 Nov 2016 10:25 p.m., "fixer1234" notifications@github.com wrote:

@shu8 https://github.com/shu8 Very minor bug discovered with this feature. The new message box is open when opening the SU chat room selection page (http://chat.stackexchange.com/?tab=site&host=superuser.com). It covers parts of 4 chat rooms, so it has to be closed to use the page. So far, that's the only page I've seen the symptom on.

[image: su chatrooms] https://cloud.githubusercontent.com/assets/10065766/20033980/36ce77f4-a385-11e6-96f1-6e31746c2011.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/soscripted/sox/issues/98#issuecomment-258646492, or mute the thread https://github.com/notifications/unsubscribe-auth/AIcNjtJm8FRSKqOIvE5U9vmaCnPTw5iSks5q7QJugaJpZM4JjzDn .

shu8 commented 7 years ago

@fixer1234 I didn't think about the colour being a problem.. sorry! do you have any thoughts on what I could use instead of colour? because I realise that different people can't see different colours...

regarding the extra info, I'll add the:

in the next version, but I don't get what you mean about the indicator (your last bullet point)..?

The API doesn't return the edit comment AFAIK, so I don't think I'll be able to add that


I think adding separate notifications for each edit is going to get really complicated and would cause users who use the feature to just rely on the editor to decide whether they should go look at the post again or not. I think it's best to just have a notification if the post was edited at all, and if it is, then the user should go to the post and check it out.

I do kind of see your point in seeing the advantage of seeing all the different edits, but I think that would just get too complicated TBH.

Also, what do you think of changing the link of the notification to the revision page rather than the question page? that would make users more likely to see the difference...

shu8 commented 7 years ago

@fixer1234 I've added those into dev z :)

Can you see how it works for you? :)

fixer1234 commented 7 years ago

@shu8 I'll load dev z today and test. re: bullet points and questions --

fixer1234 commented 7 years ago

@shu8 Quick question. You mentioned that this version includes some form of Q vs A identifier in the message box. For all notifications, I'm seeing a cool icon, thread title, editor, edit date/time, and a delete button, but no obvious Q vs. A identifier. Am I missing something or is this a bug? example:

sox edited posts

I believe there were both question edits. Just got my first notification of an answer edit and it looks the same.

shu8 commented 7 years ago

@fixer1234 sorry, my bad - I forgot to actually add the q/a! fixed in dev ab

This has a 'enable debugging' toggle in the dialog that you need to ENABLE in order for any console logs to appear -- please do so if you post any bug reports! :)


I'll start adding your suggestions in starting from the next version :)

shu8 commented 7 years ago

@fixer1234 How's it looking now in dev ar? :)

I've...:


The problem with the edit comment thing is that the feature you're talking about which shows the edit comment as a tooltip only works on the current site because it manually scrapes the page for the edit comment.

Now, I could technically scrape for the edit comment in this feature as well, but, that would only work for edits on the current site (ie. if a question on SU was edited but I was on SO, then Javascript won't let me access another domain 😞) and it would be really inconsistent between sites then :/

fixer1234 commented 7 years ago

@shu8 Good stuff. I'll load it and check it out.

Interesting info on the edit comments. A few thoughts:

shu8 commented 7 years ago

@fixer1234 never mind, I think I've got a nice workaround... I'll update you after I've tried it :)

shu8 commented 7 years ago

@fixer1234 Turns out I was completely wrong! There is a revisions API method! 😮 I have no idea how I ever missed that!

But the good news is; I've added the revision comment to the notification now, from dev ax onwards! 😃

Just hover over the question title in the notification and the tooltip will be the revision comment :)

I'm going to close this issue now, because it's no longer broken, but feel free to comment back if anything's still missing! :)

fixer1234 commented 7 years ago

@shu8 Haven't done exhaustive testing yet, but this is shaping up to be a very complete and polished mini-app. Most of the features work great. A few minor glitches:

shu8 commented 7 years ago

@fixer1234 thanks! I'll look into the first 3 bullet points

fixer1234 commented 7 years ago

@shu8 Now using Dev J and running into some buggy behavior with a number of aspects of this feature.

First some misc. observations:

The rest of the input is a bit complex, with a lot of different behaviors, so I'll just relate the sequence of events:

There are so many different strange things on so many different pages, I'm not sure where to start in terms of capturing console output. I figured some of this would probably be diagnostic of some programming oversights or common denominators, which might narrow the focus.

Should we reopen this issue, or since they're new bugs related to different code, should they be a new issue?

fixer1234 commented 7 years ago

@shu8 I'll add to the saga:

Experiment 3:

Experiment 4 (message box content limitations):

shu8 commented 7 years ago

I just noticed something from one of your console dumps in another issue: the live feature doesn't work for meta posts right now. That might be the cause for some, but not all, of these issues?

fixer1234 commented 7 years ago

@shu8 That might also be a problem, but none of what I tested involved Meta posts.

fixer1234 commented 7 years ago

@shu8 I had to switch back to the 2.0.2 official version because of the FF hanging problem. It has this feature in the menu, but no Notify on edit buttons on the posts and no separate message box (well, actually, the main SU page has no extra message box, but the review queues page and the user profile page do have the extra message box, so figure that one out; all of the pages have been refreshed).

It's hard to reconstruct the history, but it seems like at some point, the basic functionality was working (maybe late November-early December?). Then there were a bunch of enhancements and basic changes and we ran into a new batch of problems. So it isn't clear whether for v2.0.2, you rolled things back to the basic functionality or just partially disabled the feature. Is your expectation that this feature should work in v2.0.2 (with no bells or whistles), or it's disabled and on hold for debugging?

shu8 commented 7 years ago

@fixer1234 I'm not sure to be honest 😕

I think it should have been working; I closed this 13 days ago and pushed to master 12 days ago... :/

Nevertheless, I'm working on your FF crash bug, your hint about it being to do with the comments seems right... working on it

shu8 commented 7 years ago

Replacing this feature with #215. Closing.