Wikipedia talk:Ultraviolet/2022/April

Status on Ultraviolet

Hello! I was checking the status on Ultraviolet, but it seems as though nothing has been going on lately. Am I missing out on something, have you abandoned Ultraviolet, or is activity low? Thanks. — 3PPYB6TALKCONTRIBS — 14:25, 29 March 2022 (UTC)

@3PPYB6: I'm currently on a break from working on Ultraviolet (due to the immense crunch from pre-graduation activities) , so I've tasked Remagoxer with the final bits of code required (mostly code to remove the use of "RedWarn" in production). We're waiting for them to finish up on that before making it available for everyone. Chlod (RW • say hi!) 20:06, 29 March 2022 (UTC)
@Chlod—With this diff here, Ultraviolet has been unlocked for beta testing. You may wish to update the installation page… — 3PPYB6TALKCONTRIBS — 17:03, 8 April 2022 (UTC)
I have updated the page. Ultraviolet 0.1.0 is now available for testing - more info and a more official announcement will likely be posted soon. Remagoxer (talk) 17:39, 8 April 2022 (UTC)

Ultraviolet beta and Redwarn together?

Do I need to uninstall/comment out Redwarn or does it work alongside? Paper9oll (🔔📝) 07:35, 11 April 2022 (UTC)

@Paper9oll You should probably comment out RedWarn while you're using Ultraviolet, since it duplicates many of the functions existing in RedWarn. While you could run them both at once, I wouldn't recommend it due to possible conflicts. Additionally, having two of most RedWarn elements would make a lot of clutter :) As always, if you do find any bugs while using the beta, please let us know. Thanks! ―sportzpikachu my talkcontribs 07:37, 11 April 2022 (UTC)
@Sportzpikachu and Chlod: How exactly do I comment out Redwarn? ― Blaze WolfTalkBlaze Wolf#6545 13:10, 11 April 2022 (UTC)
@Blaze Wolf Go to your common.js (accessible via Preferences > Appearances > Shared CSS/JavaScript for all skins > Custom Javascript) and look for this line mw.loader.load('/w/index.php?title=User:RedWarn/.js&action=raw&ctype=text/javascript'); and add // before it, after which just publish it. But do note that, all of your RedWarn saved preferences will be overwritten by Ultraviolet should you wish to move back to RedWarn or hop between both. Paper9oll (🔔📝) 13:42, 11 April 2022 (UTC)
(Or importScript('User:RedWarn/.js') ). ― Qwerfjkltalk 09:14, 12 April 2022 (UTC)
@Paper9oll: The two can theoretically work together, but it won't be pretty. Namely, you'll have two sets of page icons. If you're alright with this, however, then you can run both anyway. Chlod (say hi!) 07:38, 11 April 2022 (UTC)
@Sportzpikachu @Chlod Ah I see, thanks you for the clarification. Paper9oll (🔔📝) 09:49, 11 April 2022 (UTC)

Teyora - Development first look!

 

Hi! I'm Ed6767, the original creator of RedWarn, now one of the most popular tools on the English Wikipedia that's been used by over 1,000 Wikimedians to make over 300,000 edits since mid-2020 that's been praised for its user friendliness and ease of use, but criticised for its limited functionality. I'm leaving this message as I think it may be of interest here - I left the RedWarn project in November to develop Teyora, my successor to RedWarn (alongside Chlod's UltraViolet). It's a new in development web app that uses some of the latest web technologies to create a highly extendable all in one editing tool with a focus on administration, counter vandalism and general patrolling - not to mention, it'll work on every Wikimedia project without any prior configuration and can be used by any user with at least auto-confirmed rights*. Now, I'm ready to give the Wikimedia community a first look at what I've been doing over the past six months and what to expect going forward.

You can check out the 20 minute first look at the in development version on YouTube here: https://www.youtube.com/watch?v=nzlpnzXdLP4.

There's lots more to expect too! Why not read the full details page at meta:Teyora and leave any feedback, comments or wishes at meta:Talk:Teyora (please leave any correspondence there to keep discussion centralised). If you're interested, you can leave your signature

*with basic features, advanced features require configuration. To prevent abuse, auto-confirmed users will be in a restricted mode until approved by an admin or via rollback rights.

All the best, ✨ Ed talk! ✨ 22:56, 15 April 2022 (UTC)

Bug on the main page (RedWarn, possibly Ultraviolet has the same issue)

Hello. Since Izno changed the main page reflecting consensus here that there should not be any portal links, RedWarn's page protection icons, alert on change icons, and et cetera causes text wrapping issues which causes Wikipedia's greeting to look awkward. I should point out that only my test account has Ultraviolet and my main account currently is sticking to RedWarn. Is there a way to fix this? Thanks.

 
Courtesy visual depiction

Also, @Izno—courtesy ping if you have ideas. — 3PPYB6TALKCONTRIBS — 15:14, 15 April 2022 (UTC)

@3PPYB6: I've also had the same problem with UV, where the greeting text gets off centered. If I use it not logged in or without the script then it will be centered perfectly. User3749 (talk) 16:13, 15 April 2022 (UTC)
I don't really see why these are active on the main page at all, so I'd just advise adding a blanket "don't run here". Izno (talk) 17:47, 15 April 2022 (UTC)
@3PPYB6, @User3749: The issue has been   fixed. On RedWarn, page icons will refuse to show on the Main Page. On Ultraviolet, the positioning has been fixed so that they won't interfere with the main page content. As for removing them entirely, the purposes of the icons aren't just to do page actions but also to access parts of RW/UV, including preferences and other menus, so it wouldn't be wise to have them completely removed. Chlod (say hi!) 23:43, 15 April 2022 (UTC)

Ultraviolet preferences.css

Ultraviolet's preferences.css causing the section's headers to be squeezed together because the below code is set the margin-top to 0px. Is there a reason to set top margin for section's header which is h2 to 0px?

.vector-body h2 {
    margin-top: 0;
}

Paper9oll (🔔📝) 13:26, 16 April 2022 (UTC)

Odd how that's not scoped. I'll have a patch for it in a sec. Chlod (say hi!) 13:29, 16 April 2022 (UTC)
  Fixed Chlod (say hi!) 13:38, 16 April 2022 (UTC)

Overlapping icons

On pages like Special:Edit/User talk:117.213.137.185, the icons overlap the title (at least for me). A more minor issue is the hover text: as I'm on mobile, I obviously can't hover a cursor over the icons, so instead I click (tap) and hold them down. However, when I do this to multiple icons, the text doesn't hide, but overlaps. ― Qwerfjkltalk 14:02, 16 April 2022 (UTC)

Yup same on desktop, when visiting article that are protected for example iPhone, UV icons will overlap the protection icon rendering it clickable as the More options button is rendered directly above the protection icon. The same issue also occurred on any article's revision history, user's contributions page, page curation page, pending changes page, watchlist, and recent changes page, where the Help link will be overlapped by UV icons. On user's talkpage, UV icons will also rendered directly above the topicons. Paper9oll (🔔📝) 16:05, 16 April 2022 (UTC)
@Qwerfjkl, @Paper9oll: should be   fixed. Chlod (say hi!) 21:44, 16 April 2022 (UTC)

Ultraviolet bugs

So I have encountered quite a couple of bugs when testing out the beta version. These are following that I've encountered so far:

  1. Restoring doesn't work at all, no matter how many times I refresh and retry, always stuck at "Restoring revision".
  2. Rollback (I'm using the Rollback rights) successfully performed but got this notification "Sorry, there was an error performing a rollback." popup at the bottom for 95% of the rollbacks I performed using UV and also the purple loading bar will be stuck at "Preparing". Having the notification popup also prevent UV from auto-reloading the page to show the latest diff after it has performed the rollback.
  3. Post-rollback actions button doesn't display when using Rollback rights, not affected when using pseudo-rollback.
  4. No notification popup at the bottom after issuing user with warnings through the post-rollback actions button, when on the diff page of the article. The notification's popup to inform us that the task has been performed successfully do appeared if warnings are issued directly on the user's talkpage.
  5. Preferences doesn't display notification to inform user when Save button is clicked, not sure if this is beta-related work in progress.

Paper9oll (🔔📝) 13:39, 11 April 2022 (UTC)

I would like to note that I encounter a similar issue with #2 when I use the Wikilove extension where it says that "An error occurred" and then successfully adds the Wikilove. Not entirely related to UV but I'm mentioning this since it might be related. ― Blaze WolfTalkBlaze Wolf#6545 13:48, 11 April 2022 (UTC)
Another bug, if you already have RW installed, then on the easy install page for UV, there are 2 install buttons. ― Blaze WolfTalkBlaze Wolf#6545 14:47, 11 April 2022 (UTC)
@Paper9oll: Thanks, taking a look at these in a bit. Will note for @Blaze Wolf: The WikiLove thing is probably not related to us, since we don't have any interaction with WikiLove nor does WikiLove interact with any part of UV. As for the install page issue: we'll think about making a fix for that since you're not supposed to run both at the same time anyway. Chlod (say hi!) 23:38, 11 April 2022 (UTC)
Mk. I wondered if it might be related to some backend kind of thing since there might be some, very small and almost completely unrelated, thing between the 2. I didn't know RW was actually causing the 2nd install button to appear. Hopefully these bugs get fixed soon. ― Blaze WolfTalkBlaze Wolf#6545 13:12, 12 April 2022 (UTC)
@Paper9oll: I was able to fix all of these except #2 (and #3), which I failed to reproduce. If this happens to you again, please open the "More Options" dialog and select "Copy Ultraviolet log", and send that to us in any way you wish (through this talk page, email, etc.). I'll be deploying the fixes in a bit. Chlod (say hi!) 10:09, 16 April 2022 (UTC)
@Chlod No problem, will send your the log when I encountered it again. Paper9oll (🔔📝) 10:36, 16 April 2022 (UTC)
@Chlod Uploaded to repo issue tracker. Paper9oll (🔔📝) 12:34, 16 April 2022 (UTC)
  Fixed. Chlod (UV • say hi!) 22:02, 16 April 2022 (UTC)

Noticed a couple of issues with Ultraviolet

Hello. Today when I tried out Ultraviolet, I found some issues with the tools when testing it.

First couple of issues are already stated above in the previous section. Second issue is that when I tried to click the warning button on myself, with RW I would get a message "you cannot warn yourself", but when I tried that with UV, nothing happened at all. Third issue is that when I use the warn user again, and I do not add any comments at the end, the implementation of this ( such as {{Uw-vandalism1|Test|}} will cause the "Thank you" part at the end to be omitted, which can be WP:BITEY to new users. This issue was also present with RW but was eventually fixed. For some reason it is happening again on UV. Fourth issue is after I revert a edit, the post revert options will show over Twinkle buttons. In RW the options will show below the buttons. Although this is not really a issue (since these will not work because the revert has already been done), I feel this is significant since this issue since I have never encountered such a issue with other user scripts before and it does not happen with RW, so please have this issue along with the issues I mentioned above looked at. Thanks. User3749 (talk) 11:48, 14 April 2022 (UTC)

Update, another issue I found is when I tried UV for the first time in a "real world" situation. I used the rollback like mode because of the issue mentioned above with the rollback mode. The revert worked, but the post revert options does not work. I tried to click the "warn" option but it did nothing. I had to manually click on the user's talk page and then click warn, but that went well. Again please have a look at this issue. Thanks User3749 (talk) 12:02, 14 April 2022 (UTC)
@User3749: Regarding the "you cannot warn yourself", this appears as a warning at the bottom of the warning dialog. As to why we don't prevent the dialog from opening, the targeted user can be edited by clicking the username (hence, you no longer need to reopen the dialog on the correct user talk page). Chlod (say hi!) 07:04, 16 April 2022 (UTC)
  Fixed all except the "cannot warn yourself", which wasn't a problem in the first place. To be deployed soon. Chlod (say hi!) 10:15, 16 April 2022 (UTC)
Thank you, but I did not notice the "you cannot warn yourself" dialog when I first posted this, probably due to the last issue. User3749 (talk) 07:15, 17 April 2022 (UTC)

Is this a issue or is it just intentional?

Hello, I've noticed another unusual thing with UV. The oversight and T&S report buttons appear even if it is not a diff/user, and it even appears on articles. Is it a issue or is it intentional (since if a page is a death threat, for example, but it would make more sense to report the user who made the threat)? This does not happen with RW, so I want this to be explained. Thanks. User3749 (talk) 10:49, 19 April 2022 (UTC)

@User3749: Yes, that is intentional. The idea was to allow diffs, page histories, user pages, etc. to be reported to Oversight or WMF T&S, providing a link to the exact diff/page that was affected. Now that you mention it, this is also supposed to include the revision ID (if this were a diff), so that's a bug to be fixed. The eventual goal is to allow any suppressible data (be it a log entry, revision, page, etc.) be reportable as well. In addition, we have no idea when reportable incidences can happen, and it's best to keep the option open to users in case that they find reportable content on a page that would otherwise not have the OS or T&S buttons (like RedWarn does now). Chlod (UV • say hi!) 10:55, 19 April 2022 (UTC)
@Chlod: Thank you for the explanation, and I think this is a improvement. User3749 (talk) 10:57, 19 April 2022 (UTC)

Preferences toggle not correctly visible

The preferences under "accessibility", and the bottom preference under "revert", don't change when clicked - they appear as rectangles with rounded corners (all the time). Qwerfjkltalk 10:56, 18 April 2022 (UTC)

We've been trying to look for a solution to this since before 0.1.1. I've only recently had a breakthrough with this, and I'll report back if I can get the switches working again. Chlod (UV • say hi!) 12:04, 18 April 2022 (UTC)
Looks like it was an upstream issue all along. Will bump to the next version of Material Components in the next update. Chlod (UV • say hi!) 15:56, 19 April 2022 (UTC)
@Qwerfjkl:   Fixed! Chlod (UV • say hi!) 16:57, 19 April 2022 (UTC)

Regarding the warn module… (Ultraviolet)

Hello. I tested Ultraviolet's "warn" module on my test account, and I have two things to say.

1) I noticed that the summaries do not include the warning level. For example, if I warned someone about vandalism, it would straight up say "Vandalism (UV 0.1.0)". This should be fixed to something like "Note: (reason for warning) (UV (a.b.c))".

2) When warning users who have made vandalism in Level 1/2 warnings, would it be possible to change "vandalism" to "unconstructive editing" like Twinkle does it? Saying a blatant "vandalism" in the edit summary might be interpreted as being a bit WP:BITEy to some new users.

Thanks. — 3PPYB6TALKCONTRIBS — 14:45, 17 April 2022 (UTC)

@3PPYB6: #1 was a bug, and it's been fixed now. #2 has been added with code changes and Special:Diff/1083589287. Chlod (UV • say hi!) 16:57, 19 April 2022 (UTC)
@Chlod: I haven't tried Ultraviolet yet so apologies in advance if this doesn't affect it. In RedWarn the edit summaries for the two edit warring templates are "Edit warring softer wording for newcomers" and "Edit warring stronger wording". If it is similar in Ultraviolet, is it possible to change these both to simply "Edit warring" or similar? FozzieHey (talk) 22:55, 20 April 2022 (UTC)
@FozzieHey: Good suggestion! I've made the edit here. The summaries for both warnings should now be in sync with each other. Chlod (UV • say hi!) 23:07, 20 April 2022 (UTC)
@Chlod: Thanks! I'm not entirely sure what Twinkle uses for those but it seems a lot better to have the same edit summary for both templates in my opinion. FozzieHey (talk) 23:21, 20 April 2022 (UTC)

Ultraviolet action buttons overlapping 2017 wikitext editor toolbar

When using Ultraviolet with 2017 wikitext editor enabled, the action buttons will overlap with the toolbar's dropdown menu as the Help menu, the Edit notice menu, the Page options (hamburger) menu, and the Switch editor menu. Paper9oll (🔔📝) 13:19, 21 April 2022 (UTC)

This will require a bunch of testing, since it has to do with the current z-index of the page icons. But I (or maybe someone else in the team) will check on this. Chlod (UV • say hi!) 00:07, 22 April 2022 (UTC)

Some more problems

  1. The link to "Ultraviolet's talk page" links to WP:UV, not WT:Ultraviolet.
  2. I don't think the link to copy Ultraviolet's log works (my browser doesn't give clipboard write permissions). If so, the fix (see User:Qwerfjkl/scripts/copy.js) is to add a <textarea>...</textarea>, fill it with the text, select the text, and copy the text, then remove the <textarea>...</textarea>.

Thanks for your work on this! ― Qwerfjkltalk 11:55, 16 April 2022 (UTC)

Struck again by the browser compatibility gods! I'll put a polyfill for that in a bit. Thanks for the reports! Chlod (say hi!) 11:56, 16 April 2022 (UTC)
@Qwerfjkl:   Fixed! Chlod (test alt) (owner talk) 13:03, 16 April 2022 (UTC)
  Self-trout for replying and pinging with my testing alt. Chlod (UV • say hi!) 00:09, 22 April 2022 (UTC)

Bug Report button on talkpage

The bug report button above is currently kind of broken, because clicking on it and after filling in the details, it will instead post the discussion onto Wikipedia talk:RedWarn which is a redirect which I unknowingly did with this revision lol. Paper9oll (🔔📝) 13:24, 21 April 2022 (UTC)

@Paper9oll: Taking a look at the raw wikitext, it looks like what's causing it to do that is this portion of Wikitext: {{fullurl:Wikipedia talk:RedWarn|action=edit&section=new&preload=Wikipedia:RedWarn/Talk/preload-bug}} which appears to still be taking it from WT:RW. Looks like an easy fix, just changing all instances of RW in the Wikitext to UV, but I don't know if the components have been moved over to the ultraviolet talk page yet. ― Blaze WolfTalkBlaze Wolf#6545 13:32, 21 April 2022 (UTC)
@Blaze Wolf Yeah you're right, I was also thinking of changing it myself but I'm not sure if I will break something. Paper9oll (🔔📝) 13:44, 21 April 2022 (UTC)
@Paper9oll: I took a look and really the only thing that needs to be fixed is the preload. It just needs to be moved to the Ultraviolet namespace (And also modified slightly). But I'm not going to do that since 1. I don't make or maintain Ultraviolet and 2. there might be a bit more that needs to be done. ― Blaze WolfTalkBlaze Wolf#6545 13:51, 21 April 2022 (UTC)
I've gone ahead and moved them, and updated the buttons. Qwerfjkltalk 14:13, 21 April 2022 (UTC)
Sounds good. I've marked this issue as done since I don't think there's anything else to be done since the issue was fixed. I've changed all instances of "RedWarn" in the preloads to "Ultraviolet". ― Blaze WolfTalkBlaze Wolf#6545 14:18, 21 April 2022 (UTC)
Thank you both for the changes. Will note, @Blaze Wolf: it's alright with us if you perform on-wiki maintenance of pages related to Ultraviolet, and the same goes for any other editor who isn't part of the team. We don't have ownership over the pages, and you're free to do whatever you think would be helpful.   Chlod (UV • say hi!) 00:23, 22 April 2022 (UTC)
@Chlod: Ah alright. Sounds good. ― Blaze WolfTalkBlaze Wolf#6545 12:49, 22 April 2022 (UTC)

Restore this version

I'm using RedWarn. Recently, when I've used the "Restore this version" button, no popup is generated asking for a reason, it just redirects me to a diff of this revision compared to the current revision and doesn't actually restore anything. FozzieHey (talk) 16:20, 24 April 2022 (UTC)

Hi, @FozzieHey! Which page are you having this issue on and how frequent do you get it? Chlod (UV • say hi!) 00:31, 25 April 2022 (UTC)
@Chlod: I think I see the reason now. So if I'm browsing a specific revision and click "Restore this version", it opens a diff with it compared to the current version and then I have to click "Restore this version" on the previous side to restore it. Was it always like this and I'm just going crazy? FozzieHey (talk) 08:51, 25 April 2022 (UTC)
@FozzieHey: Huh, it doesn't seem like there's anything in the code that would have that happen, so that's definitely unexpected behavior. But since you are still able to restore versions (albeit with the extra step of viewing the diff first), I wouldn't call this a mission-critical bug that needs immediate fixing, so I'll set this as a won't-fix for now. If enough people clamor about it, however, we'll consider fixing it immediately. Chlod (UV • say hi!) 15:19, 25 April 2022 (UTC)
@Chlod: Just looking at it now, if I click the button in the revision view, it redirects me. However, if I click on any of the buttons in the diff view it opens the restore dialog. Does this happen for you? Obviously don't worry about tracking it down if it doesn't, it's not a breaking issue as you say, just thought I'd provide some more info I've found. FozzieHey (talk) 21:08, 29 April 2022 (UTC)
Hi @FozzieHey, @Closingbracket added this behaviour. It's done in rw.info.loadRevisionPermalinkPage and this is the intended behaviour, although it wouldn't take long to make the button work without redirecting but I feel like the pro of the current functionality is that you can actually see the changes you'll be making ✨ Ed talk! ✨ 22:07, 29 April 2022 (UTC)
@Ed6767: Thanks for the explanation. I think this should also be implemented in the diff view if you're viewing an older revision then? I do think it is useful in certain circumstances but if I'm launching a specific revision from Huggle for example then I generally just want a quick way to restore as I've already looked at the newer diffs. Maybe two buttons would be useful? one for a "quick" restore and another for this comparison behaviour. I realise RedWarn is kind of out of development now but it would be useful if this feature is in Ultraviolet. Obviously not super urgent though. FozzieHey (talk) 22:30, 29 April 2022 (UTC)
There is a "show preview" button available when viewing the latest diff, but I haven't made this appear on old diffs yet for Ultraviolet. Will add this to the list of things to do. Chlod (UV • say hi!) 01:39, 30 April 2022 (UTC)