There is some room for improvement of Smokey's chat messages. For instance, the quite valuable MetaSmoke link is sometimes dropped because of the length of the message. To make optimal use of the 'real estate', we should consider that the messages are seen both in general chatrooms by users who have hardly heard of SmokeDetector, and by hardcore spam fighters in Charcoal HQ.
Some discussion about this can be found here.
IIRC, feedback via chat depends on correctly parsing the report message, so one can't just change the message format without changing that logic too. Also, I've seen some chat messages in the test part of the repository, which also need to be adjusted.
Here is a list of possible improvements. Some of them should be 'permanent' changes, others should only be changed if there's not enough space.
graphicdesign.stackexchange.com, can be shortened to graphicdesign.SE if necessary.Any thoughts?
Agree to all suggestions
Mostly agree. Autoflagging is truly async, so including info in the initial report is not possible without significant changes somewhere. Probably a userscript job. As for the rest, they're all worth considering, though we should start with whatever saves us the most space and loses us the least information.
I'm not sure abbreviating reasons is the way to go. As the set of reasons is growing, we could expect to end up with dozens of reasons with fairly similar names, and keeping the full name is then less redundant and more informative. In that scenario, even aggressively abbreviated reason names might not fit within the message limit, anyhow. How about just breaking up the notification into multiple separate chat messages (only when necessary!) instead?
Is there any reason we couldn't just start truncating the reason list to the first few, or at least when necessary to save space? If a post is caught by a gazillion reasons, no one really cares exactly which ones. If they do, we have metasmoke.
I'm opposed to removing or modifying the tagline, especially in CHQ only. It's (1) good to have some consistency, and (2) good to have a link. I'd be in favor of changing the link, if we can get it suitably shortened.
@Undo1 - https://goo.gl/6ylPSc
How about adding a [ deleted ] to the end of the message if the post is deleted in <2 minutes?
@j-f1 See this conversation: https://github.com/Charcoal-SE/SmokeDetector/issues/486
+1 for Undo's suggestion to simply abridge the full list of reasons if it's long. My earlier comment was about shortening the individual reason strings until they can all be squeezed in, which won't necessarily scale, and impedes legibility. A nice detail would be to keep the most exotic ones, and then just defer to the full Metasmoke report. "Kangaroos, black magic in title + 23 more".
Another option would be to call the metasmoke API to get the report ID, to avoid having the long link twice in the message.
metasmoke reports are async; the record doesn't even exist when the chat message is sent. On platforms like Thomas' Aurora, it'd probably be fine to wait for the round trip, but on my Pi you're looking at +/- a second or two.
Given how (relatively) slow SE chat is already, I wonder if two seconds really makes a difference.
Yeah, it'd probably be doable. Just needs to be tolerant of the times metasmoke drops a post due to UTF stuff; threads have been the cheap way to isolate us from that.
If that happens, metasmoke should just return a 500 - no difference in response time, just code, which we can then ignore (or alert about).
See 3242881
Sitenames are shortened, the reason list is limited to 5 items, and the Smokey link at the beginning points to a better place. I'm going to say this is completed enough to be satisfactory.
I think I had to revert one of the changes a while ago (hence I reopened), but it has been re-implemented again, so I'm going to close this.
Most helpful comment
Is there any reason we couldn't just start truncating the reason list to the first few, or at least when necessary to save space? If a post is caught by a gazillion reasons, no one really cares exactly which ones. If they do, we have metasmoke.