iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://phabricator.wikimedia.org/p/Nux/
♟ Nux
Page MenuHomePhabricator

Nux (Maciej Jaros)
Volunteer dev

Projects

User does not belong to any projects.

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Saturday

  • Clear sailing ahead.

User Details

User Since
Oct 13 2014, 5:14 PM (528 w, 2 d)
Availability
Available
LDAP User
Unknown
MediaWiki User
Nux [ Global Accounts ]

Full stack developer and a tech lead in a daily job. I mainly deal with web stuff, and in wikimedia I mainly write gadgets (CSS/JS). UI/UX enthusiast.
On wikipedia since 2005.

Recent Activity

Today

Nux added a comment to T265981: Provide an API to hook into new reply editor.

Hi. Is there a sane way to wait for the initialization of ve.init.mw.targetFactory? I did do an insane ;) way of waiting for the object in intervals. It works, but would prefer to use something else.

Thu, Nov 28, 1:08 AM · Editing-team, Russian-Sites, DiscussionTools

Fri, Nov 22

Nux added a comment to T380190: Template used in information->description causes wrong image description to be returned from API.

Yeah, you would have to edit this: https://commons.wikimedia.org/wiki/Template:Monument_ocrotit_de_stat/layout

Fri, Nov 22, 1:35 AM · CommonsMetadata, Commons

Fri, Nov 15

Nux created T380049: Mobile viewport meta tag for vector2022.
Fri, Nov 15, 1:14 PM · Community-consensus-needed, Wikimedia-Site-requests

Mon, Nov 4

Nux added a comment to T368816: Implementing alert system to notify maintainers of downtime.

I've added "tool_type": "web app" to my toolinfo.json. That seems to have fixed toolhub too.

Mon, Nov 4, 9:08 PM · Tool-toolwatch

Sun, Nov 3

Nux added a comment to T368816: Implementing alert system to notify maintainers of downtime.

@Soylacarli, @Fnielsen, @Nux, thank you for highlighting the bugs and gaps in the tool! The issues have been identified, fixed, and deployed. Please let us know if the behavior has improved or if it continues to be the same moving forward.

Sun, Nov 3, 10:02 PM · Tool-toolwatch

Oct 7 2024

Nux added a comment to T368816: Implementing alert system to notify maintainers of downtime.

I wouldn't mind getting notifications, but keep in mind that this might also be a per-tool preference (not only per-dev).

Oct 7 2024, 9:25 PM · Tool-toolwatch

Oct 6 2024

Nux added a comment to T373979: Generic template added to description for WLM dominates description over language alternatives.

Problem was actually due to using the lang template, so I fixed that:
https://commons.wikimedia.org/w/index.php?title=Template:Zabytek_nieruchomy/layout&diff=next&oldid=933521494

Oct 6 2024, 8:14 PM · Local-Wiki-Template-And-Gadget-Issues, CommonsMetadata

Sep 22 2024

Nux updated the task description for T375344: CSS Box Sizing Module Level 4 in css sanitizer.
Sep 22 2024, 9:51 PM · Patch-For-Review, TemplateStyles, css-sanitizer
Nux added a comment to T374292: css sanitizer getSizingAdditions() use by multicol sanitizer allows invalid CSS.

OK, I searched on plwiki in our template using column layout -- also no usages of (min|max|fit) in width param.

Sep 22 2024, 6:16 PM · Patch-For-Review, css-sanitizer
Nux added a comment to T271958: Support "width: fit-content" in TemplateStyles/Sanitized CSS.

Tests seem to be passing. Please review. I have added the parent task: T375344. The task may not be formally correct, so if anyone could clean it up, that would be great :)

Sep 22 2024, 12:45 PM · Patch-For-Review, css-sanitizer, TemplateStyles
Nux added a comment to T375344: CSS Box Sizing Module Level 4 in css sanitizer.

Done in T271958 please review.

Sep 22 2024, 12:40 PM · Patch-For-Review, TemplateStyles, css-sanitizer
Nux created T375344: CSS Box Sizing Module Level 4 in css sanitizer.
Sep 22 2024, 12:39 PM · Patch-For-Review, TemplateStyles, css-sanitizer
Nux added a comment to T374292: css sanitizer getSizingAdditions() use by multicol sanitizer allows invalid CSS.

Removing this would be simple in code, only this (and one test):

		$props['column-width'] = new Alternative( array_merge(
			[ $matcherFactory->length(), $auto ],
			// Additional values from https://www.w3.org/TR/2019/WD-css-sizing-3-20190522/
			$this->getSizingAdditions( $matcherFactory )
		) );
Sep 22 2024, 10:37 AM · Patch-For-Review, css-sanitizer
Nux claimed T271958: Support "width: fit-content" in TemplateStyles/Sanitized CSS.

I'll try to work on Box sizing level 4 (replacing cssSizing3).

Sep 22 2024, 10:25 AM · Patch-For-Review, css-sanitizer, TemplateStyles
Nux added a comment to T374292: css sanitizer getSizingAdditions() use by multicol sanitizer allows invalid CSS.

Initial draft said this should be fine:
https://drafts.csswg.org/css-sizing/#column-sizing

Sep 22 2024, 10:23 AM · Patch-For-Review, css-sanitizer

Sep 16 2024

Nux added a comment to T373979: Generic template added to description for WLM dominates description over language alternatives.

Assuming you want a short description without links, I think it would be best to use structural descriptions. Take a structural description in the user/content language, with a fallback to English. Otherwise, you could try building a summary from templates like 'de', 'pl', 'en', etc.

Sep 16 2024, 10:10 PM · Local-Wiki-Template-And-Gadget-Issues, CommonsMetadata

Sep 12 2024

Nux created T374663: Hide indirect transclusions on special WhatLinksHere.
Sep 12 2024, 9:37 PM · MediaWiki-Special-pages, MediaWiki-Page-derived-data

Sep 4 2024

Nux created T373979: Generic template added to description for WLM dominates description over language alternatives.
Sep 4 2024, 8:50 AM · Local-Wiki-Template-And-Gadget-Issues, CommonsMetadata

Sep 2 2024

Nux created T373822: Wikibase entityid in URL of a campaign (UploadWizard).
Sep 2 2024, 6:30 PM · UploadWizard
Nux added a comment to T367821: Discovery: Deprecation of TLS 1.2.

I think you might need to check your stats based on UserAgent (if that is possible). You might need to check with tool and bot authors which might be using outdated software. This is important because a single connection once a day by some tool might be used by thousands of users.

Sep 2 2024, 12:17 PM · User-notice, Browser-Support-Apple-Safari, Browser-Support-Google-Chrome, Browser-Support-Firefox, Traffic

Aug 31 2024

Nux awarded T174145: Our standard highlight icon (used to enable/disable CodeMirror) cdxIconHighlight looks too much like our standard edit icon, cdxIconEdit a Like token.
Aug 31 2024, 12:06 PM · MW-1.43-notes (1.43.0-wmf.21; 2024-09-03), UI-Standardization, Design, MediaWiki-extensions-CodeMirror

Aug 28 2024

Nux closed T373559: Wikibase entity usage toggle indicator is broken as Resolved.

Seems like a duplicate: T373315

Aug 28 2024, 8:15 PM
Nux created T373559: Wikibase entity usage toggle indicator is broken.
Aug 28 2024, 8:08 PM

Aug 19 2024

Nux updated the task description for T372785: Duplicate refs and subrefs with the VisualEditor.
Aug 19 2024, 7:54 PM · Cite, WMDE-References-FocusArea, VisualEditor-MediaWiki-References, VisualEditor-CopyPaste
Nux created T372785: Duplicate refs and subrefs with the VisualEditor.
Aug 19 2024, 3:05 PM · Cite, WMDE-References-FocusArea, VisualEditor-MediaWiki-References, VisualEditor-CopyPaste

Aug 9 2024

Nux added a comment to T369874: [Spike 1day] Many template styles are following outdated instructions that we gave them and need fixing.

A typo here if you are not done yet:

    text = text.replace(/(@media +)\(( *prefers-color-scheme)/g, '@media screen and ( $2')
// should be
    text = text.replace(/(@media +)\(( *prefers-color-scheme)/g, '@media screen and ($2')
// or to be less confusing ;)
    text = text.replace(/(@media +)(\( *prefers-color-scheme)/g, '@media screen and $2')
Aug 9 2024, 8:18 AM · Web Team Essential Work 2024, Web-Team-Backlog (FY2024-25 Q1 Sprint 3)

Aug 6 2024

Nux created T371943: Flow talks doesn't work with dark mode.
Aug 6 2024, 11:49 PM · dark-mode, Growth-Team, StructuredDiscussions

Jul 27 2024

Nux created T371181: Codex version of flagged revs show a placeholder on empty pages.
Jul 27 2024, 2:35 PM · MW-1.43-notes (1.43.0-wmf.16; 2024-07-30), FlaggedRevs

Jul 8 2024

Quiddity awarded T367645: The background of some SVG maps is not rendered a Love token.
Jul 8 2024, 6:18 PM · Wikimedia-SVG-rendering

Jul 6 2024

Nux closed T367645: The background of some SVG maps is not rendered as Resolved.

This is all done now for US and with proper map-colors :)

image.png (574×933 px, 115 KB)

Jul 6 2024, 12:16 PM · Wikimedia-SVG-rendering

Jul 1 2024

Nux added a comment to T368712: Change sysop_plwiki logo and favicon.

Sorry, this should be better:

<?php
Jul 1 2024, 9:41 PM · Patch-For-Review, Wikimedia-Site-requests
Nux added a comment to T368712: Change sysop_plwiki logo and favicon.

I think it would be best if you could deploy these configuration changes for us:

$url_LogoSvg = "https://upload.wikimedia.org/wikipedia/commons/d/d1/Wikipedia_Administrator.svg";
$url_LogoPng = "https://upload.wikimedia.org/wikipedia/commons/thumb/d/d1/Wikipedia_Administrator.svg/114px-Wikipedia_Administrator.svg.png";
$wgLogos = array(
	'icon' => $url_LogoPng,		// path to icon, the primary logo for Vector
	'1x' => $url_LogoPng,		// path to 1x version
	'2x' => $url_LogoPng,		// path to 2x version
	'svg' => $url_LogoSvg,		// path to svg version
);
$wgAppleTouchIcon = $url_LogoPng;
Jul 1 2024, 6:46 PM · Patch-For-Review, Wikimedia-Site-requests

Jun 25 2024

Nux added a comment to T367645: The background of some SVG maps is not rendered.

I've done yellow tiles in a new batch and it looks much better and uniform to other maps, so... I might re-do previously done states.

Jun 25 2024, 9:49 AM · Wikimedia-SVG-rendering

Jun 23 2024

Nux claimed T367645: The background of some SVG maps is not rendered.

I see no interest so I'll go ahead with my changes in other states.

Jun 23 2024, 6:12 PM · Wikimedia-SVG-rendering

Jun 21 2024

Nux added a comment to T367645: The background of some SVG maps is not rendered.

P.S. If you intend to use my code for uploading files, please send me a quick message on Commons. This will help us coordinate better and speed up our collective efforts for the greater good 😉. Thanks! 😊

Jun 21 2024, 12:50 AM · Wikimedia-SVG-rendering
Nux added a comment to T367645: The background of some SVG maps is not rendered.

Also, is there any documentation (or discussion) onwiki about the specific kinds of syntax errors that are most commonly involved, so that editors could perhaps have tips in mind for what to look for? Or any kind of similar helpful tips.

Jun 21 2024, 12:43 AM · Wikimedia-SVG-rendering
Nux added a comment to T367645: The background of some SVG maps is not rendered.

I already have a bot here: https://github.com/Eccenux/mass-map-USA-county

Jun 21 2024, 12:24 AM · Wikimedia-SVG-rendering

Jun 20 2024

Nux closed T345478: Alpha Wikipedia installation for developers and testers as Invalid.

I no longer think this is a good idea. Patchdemo is probably enough :)

Jun 20 2024, 8:32 PM · WMF-General-or-Unknown, Developer Productivity

Jun 18 2024

Nux updated the task description for T367689: Bug in autoload generator.
Jun 18 2024, 5:01 PM · MediaWiki-Maintenance-system
Nux added a comment to T367689: Bug in autoload generator.

@Aklapper yes, MediaWiki core maintenance script.

Jun 18 2024, 4:50 PM · MediaWiki-Maintenance-system
Nux added a comment to T367645: The background of some SVG maps is not rendered.

Yeah this is probably true for all those county maps of USA. Seems like a one person did an initial version of them. All with similar clip path. So far I've done NY and Alabama. Alaska was a bit more tricky (not really counties, different names)... I guess I might start with the easy ones so that I get more done sooner.

Jun 18 2024, 12:16 AM · Wikimedia-SVG-rendering

Jun 17 2024

Nux added a comment to T337286: Gadget API for adding buttons to section titles.

@Skalman Seems like what you need is an ability to pass a matcher function.

var h2 = mw.util.querySection( (s)=>s.level == 2 && s.heading.textContent.startsWith("Svenska") ); // first match wins (as with querySelector)
var h3s = mw.util.querySectionAll( (h)=>s.level == 3 && s.parent.heading == h2 ); // all matches

Result could be an array for easier manipulation with .map() and .filter(). Don't think this API should be using jQuery as a resulting array.

Jun 17 2024, 8:59 AM · Content-Transform-Team, MediaWiki-Core-Skin-Architecture
Nux created T367689: Bug in autoload generator.
Jun 17 2024, 7:56 AM · MediaWiki-Maintenance-system

Jun 15 2024

Nux added a comment to T334372: Add support for inline SVG.

This is the last demo with SVG enabled by default:
https://patchdemo.wmflabs.org/wikis/604876b5e5/wiki/Main_Page

Jun 15 2024, 3:53 PM · Patch-For-Review, Wikimedia-Hackathon-2024, MediaWiki-Parser

Jun 14 2024

Nux added a comment to T334372: Add support for inline SVG.

I think the PoC is cleaned up and ready to go.
https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1043323

Jun 14 2024, 11:25 PM · Patch-For-Review, Wikimedia-Hackathon-2024, MediaWiki-Parser

Jun 13 2024

Nux added a comment to T334372: Add support for inline SVG.

There is one weird issue: the SVG disappears when not modified (you edit with VE; modify 1 of 2 SVG; check diff). So I guess some change in the VE configuration or something extra might be needed.
Embedded SVG editing in VisualEditor bug?

Jun 13 2024, 10:25 PM · Patch-For-Review, Wikimedia-Hackathon-2024, MediaWiki-Parser
Nux added a comment to T334372: Add support for inline SVG.

Sorry about the noise... 🙈 Finally got this right though. BTW. @SD0001 I think you have a typo in your rendering of attributes ;)

Jun 13 2024, 9:50 PM · Patch-For-Review, Wikimedia-Hackathon-2024, MediaWiki-Parser
Nux updated the task description for T367453: Autocomplete highlighting for search is inconsistent between Vector 2022 and Minerva.
Jun 13 2024, 5:54 PM · Design-System-Team, Codex
Nux created T367453: Autocomplete highlighting for search is inconsistent between Vector 2022 and Minerva.
Jun 13 2024, 5:48 PM · Design-System-Team, Codex

Jun 4 2024

Nux added a comment to T366517: Newly added default gadget not loaded for anon users for days while migrating away from Common.css and Mobile.css.

Gadgets depend on user preferences (even if a module is default, you can still disable it). So either you have a URL which is the same for everyone but the CSS/JS it returns depends on user preferences (meaning it cannot be cached), or you have a URL which changes when the CSS/JS changes, but then that URL has to come from somehwere, so you need to put it in the HTML in form, and then it's the HTML you cannot cache (or need to invalidate all the time). Either of those would be significantly bigger problems than having to be careful when deploying new default gadgets.

Jun 4 2024, 10:00 PM · MediaWiki-Parser, Traffic
Nux added a comment to T366517: Newly added default gadget not loaded for anon users for days while migrating away from Common.css and Mobile.css.

So the issue is that you have newly added the "infobox" gadget (in the sense of making it default) and edited Mobile.css (etc), and changing the list of RL modules to be loaded for a page and changing the contents of an RL module are different actions with different caching behavior (since the module list needs to be included in the page HTML while the contents of a module doesn't)? I doubt much can, or should, be done about that. Invalidating caches is expensive; you can't invalidate every page when you make a CSS/JS change, and you don't want to delay all CSS/JS changes until the cache expires.

Given that duplicate CSS rules are mostly harmless, I think the solution here is just to restore the old CSS rules temporarily.

Jun 4 2024, 9:42 AM · MediaWiki-Parser, Traffic

Jun 3 2024

Nux added a comment to T366517: Newly added default gadget not loaded for anon users for days while migrating away from Common.css and Mobile.css.

Thanks Func. Yes, I removed infobox styles both from mobile CSS (Mobile.css) and desktop CSS (Common.css). The problem was last reported 4 days after adding the default gadget when the styles were removed from Mobile.css and Common.css.

Jun 3 2024, 11:53 PM · MediaWiki-Parser, Traffic
Nux added a comment to T362747: [regression] Minerva: Cached HTML are not getting the responsive infobox styles.

for templates used even in 30% of page views, it's better to keep them as template styles instead

Jun 3 2024, 9:54 PM · Regression, Web-Team-Backlog (FY2023-24 Q4 Sprint 1), FY2023-24-WE 2.1 Typography and palette customizations, MinervaNeue
Nux added a comment to T366517: Newly added default gadget not loaded for anon users for days while migrating away from Common.css and Mobile.css.

Yeah, I already heard in T362747 that it's probably 7 days, but might be up to 14 days (maybe).

Jun 3 2024, 7:39 PM · MediaWiki-Parser, Traffic
Nux added a comment to T362747: [regression] Minerva: Cached HTML are not getting the responsive infobox styles.

@Nux was what deployed ? What gadget? Specifics would be helpful here :-)

Jun 3 2024, 6:53 PM · Regression, Web-Team-Backlog (FY2023-24 Q4 Sprint 1), FY2023-24-WE 2.1 Typography and palette customizations, MinervaNeue
Nux created T366517: Newly added default gadget not loaded for anon users for days while migrating away from Common.css and Mobile.css.
Jun 3 2024, 6:11 PM · MediaWiki-Parser, Traffic
Nux added a comment to T362747: [regression] Minerva: Cached HTML are not getting the responsive infobox styles.

Was this deployed? After 4 days of moving desktop and mobile CSS to a default gadget we still get reports that some pages don't get CSS from the new gadget.
https://pl.m.wikipedia.org/wiki/Wikipedia:Kawiarenka/Kwestie_techniczne?markasread=28372271&markasreadwiki=plwiki

Jun 3 2024, 9:54 AM · Regression, Web-Team-Backlog (FY2023-24 Q4 Sprint 1), FY2023-24-WE 2.1 Typography and palette customizations, MinervaNeue

May 31 2024

Nux closed T366345: Disable MW responsive infobox styles on pl.wikipedia as Resolved.

Thanks! And thanks for the warning too :-)

May 31 2024, 11:19 AM · Local-Wiki-Template-And-Gadget-Issues
Nux added a comment to T366345: Disable MW responsive infobox styles on pl.wikipedia.

An example article (notice how borders are not collapsing)

May 31 2024, 10:01 AM · Local-Wiki-Template-And-Gadget-Issues
Nux created T366345: Disable MW responsive infobox styles on pl.wikipedia.
May 31 2024, 9:48 AM · Local-Wiki-Template-And-Gadget-Issues

May 28 2024

Nux created T366053: Option to block using vendor css prefixes in user signatures.
May 28 2024, 10:45 AM · MediaWiki-Parser
Nux created T366049: Option to block adding too long user signatures.
May 28 2024, 10:35 AM · MediaWiki-Parser

May 23 2024

Nux added a comment to T365670: Render small templates in previews.

User reporting this as a bug:
https://pl.wikipedia.org/w/index.php?title=Wikipedia:Kawiarenka/Kwestie_techniczne&oldid=73830997#Nieprawid%C5%82owe_wy%C5%9Bwietlanie_symboli_IPA_w_pop-upie_nawigacyjnym

May 23 2024, 8:20 AM · Page Content Service
Nux updated the task description for T365670: Render small templates in previews.
May 23 2024, 8:04 AM · Page Content Service
Nux created T365670: Render small templates in previews.
May 23 2024, 8:03 AM · Page Content Service

Apr 21 2024

Nux added a comment to T334372: Add support for inline SVG.

I don’t imagine these advanced things being used much. While the third option would be by far the most powerful, I don’t it would be by far the most useful.

Apr 21 2024, 5:57 PM · Patch-For-Review, Wikimedia-Hackathon-2024, MediaWiki-Parser

Apr 18 2024

Nux added a comment to T362855: remove requiresES6 from most code.

Now that 1) ES6 is the Grade A JavaScript requirement for MediaWiki and 2) the validator now supports ES6 (T75714), this means we no longer need the "requiresES6" flag for the gadgets extension, correct?

Apr 18 2024, 3:06 PM · MediaWiki-extensions-Gadgets

Apr 8 2024

Nux added a comment to T358743: Mobile rejections (wpReject) doesn't work.

Confirmed to work on patchdemo :-)
https://patchdemo.wmflabs.org/wikis/745f82bb2b/w/index.php?title=1886_in_Chile&oldid=154&diff=cur

Apr 8 2024, 10:59 PM · MW-1.42-notes (1.42.0-wmf.26; 2024-04-09), Patch-For-Review, FlaggedRevs, MediaWiki-Page-diffs, MobileFrontend

Apr 6 2024

Nux added a comment to T361930: Support splitting gadget definitions over multiple lines.

Not ideal but there is a gadget that at least adds whitespace:

// [[MediaWiki:Gadgets-definition]] formatter (links and stuff)
if (mw.config.get("wgCanonicalNamespace") == "MediaWiki"
	&& mw.config.get("wgTitle") === "Gadgets-definition"
	&& document.querySelector(".mw-parser-output")
)
{
	mw.loader.load("https://meta.wikimedia.org/w/index.php?title=User:Nux/gadgets-definition-ux.js&action=raw&ctype=text/javascript");
}

You can add this in:
https://meta.wikimedia.org/wiki/Special:MyPage/global.js
and it will fix scrolling on:
https://commons.wikimedia.org/wiki/MediaWiki:Gadgets-definition

Apr 6 2024, 1:16 AM · MediaWiki-extensions-Gadgets

Apr 1 2024

Nux added a comment to T360683: How should Template:Color work in night mode?.

I'm with Izno on that (especially with point 1). That particular template feels like even/odd modules in npm [:

Apr 1 2024, 6:14 PM · Wikimedia-Hackathon-2024, Web-Team-Backlog (Needs Prioritization (Tech)), Local-Wiki-Template-And-Gadget-Issues, FY2023-24-WE 2.1 Typography and palette customizations

Mar 20 2024

Nux added a comment to T337286: Gadget API for adding buttons to section titles.

I should mention that what I would actually love to have is <section> or any kind of parent/wrapper of the elements in the section. That would make many such things as nominations easier (del requests, good article, dyk article etc).

Mar 20 2024, 5:52 PM · Content-Transform-Team, MediaWiki-Core-Skin-Architecture
Nux added a comment to T337286: Gadget API for adding buttons to section titles.

Hi. I specifically moved buttons away from section headers recently and into a template we can control locally (on wiki). This has drawbacks -- I needed to add section names to the template... but also again something we can control locally, not something that might change with a skin or MW update.

Mar 20 2024, 5:49 PM · Content-Transform-Team, MediaWiki-Core-Skin-Architecture

Mar 14 2024

Nux updated the task description for T360085: OOUI confirm dialog doesn't work with a ProcessDialog.
Mar 14 2024, 1:24 AM · OOUI
Nux created T360085: OOUI confirm dialog doesn't work with a ProcessDialog.
Mar 14 2024, 1:19 AM · OOUI

Mar 9 2024

Nux added a comment to T334940: All Graphs broken on Wikimedia wikis (due to security issue T336556).

it has become clear that there isn’t a safe shortcut here and that the path forward will require a substantial investment – one that we have not yet started given the other priorities we’ve been working on.

Am I reading this right? A year after a major feature was broken they haven’t even started working on it?

Mar 9 2024, 12:19 PM · User-zeljkofilipin, Regression, User-notice, Tech Ambassadors & Translators, MediaWiki-extensions-Graph

Mar 1 2024

Nux created T358839: logo is covered by search bar on mobile .
Mar 1 2024, 8:46 AM · Wikimedia-Portals, Regression, Web-Team-Backlog

Feb 29 2024

Nux added a comment to T357197: Allow ES8 (ES2017) code in gadgets.

It's not that simple I'm afraid. To diverge browser support in Gadgets from the rest of MediaWiki in this way you'd need customisation for mw.loader, for startup.js,

No customisation is required when gadgets are in a separate group. If any of them contain an ES8 feature which is not supported in the browser, the bundle doesn't work – which at the maximum can only cause other gadgets to not load, which seems like a reasonable tradeoff considering that no one so far has brought up a single example of a Grade A browser that doesn't support ES8. Even if one exists, gadgets are optional enhancements without which the site still works. Quoting from the frontend best practises: "Embrace that every page starts with basic HTML and CSS, and that JavaScript adds optional layers that may or may not arrive. Its eventual arrival depends on numerous factors, and may vary over time even for the same person"

Feb 29 2024, 10:15 AM · MediaWiki-Platform-Team (Radar), MediaWiki-extensions-Gadgets
Nux updated the task description for T358743: Mobile rejections (wpReject) doesn't work.
Feb 29 2024, 8:59 AM · MW-1.42-notes (1.42.0-wmf.26; 2024-04-09), Patch-For-Review, FlaggedRevs, MediaWiki-Page-diffs, MobileFrontend
Nux created T358743: Mobile rejections (wpReject) doesn't work.
Feb 29 2024, 8:58 AM · MW-1.42-notes (1.42.0-wmf.26; 2024-04-09), Patch-For-Review, FlaggedRevs, MediaWiki-Page-diffs, MobileFrontend

Feb 25 2024

Nux awarded T354023: Remove Gadget namespace (at least from search) a Party Time token.
Feb 25 2024, 10:47 PM · MediaWiki-extensions-Gadgets
Nux added a comment to T358438: Commons SVG renders misplaced text.

Fixed by moving style out of text element, so there seem to be some problem with the render possibly related to style cascade.

Feb 25 2024, 5:13 PM · Wikimedia-SVG-rendering

Feb 13 2024

Nux added a comment to T357197: Allow ES8 (ES2017) code in gadgets.

As someone who spent years maintaining user scripts and gadget on en.wp and providing support for users on WP:VP/T..... There is some truth to that, but I'd argue that a significant amount of the userscripts and gadgets are continuously broken. They cause issues for people where their javascript sometimes doesn't load. They cause errors to show up in the WMF logging.

Feb 13 2024, 1:00 AM · MediaWiki-Platform-Team (Radar), MediaWiki-extensions-Gadgets

Feb 10 2024

Nux added a comment to T357197: Allow ES8 (ES2017) code in gadgets.

[…] I've tested building my DYK tool with Babel. The build is significantly slower. […]

This is an excellent argument against such build step! We generally don't use one for MediaWiki. Do you still need it? For many devs, they mainly did this in ~2013 as a way to get "Package files" and ES6 syntax. These are supported natively now. Build tools now mostly a left-over trend from the 2010s era of frontend development, involving needless complexity for largely unproven and misunderstood benefits.

Feb 10 2024, 11:45 PM · MediaWiki-Platform-Team (Radar), MediaWiki-extensions-Gadgets
Nux added a comment to T357197: Allow ES8 (ES2017) code in gadgets.

I just want to add a few things to those already quoted by @SD0001 (thanks).

Feb 10 2024, 1:40 PM · MediaWiki-Platform-Team (Radar), MediaWiki-extensions-Gadgets

Feb 9 2024

Nux added a comment to T277675: Add native support for ES2016-ES2020 or higher versions.

@Nux Standardisation is not in question. Unlike new Web APIs (such as fetch), which can be polyfilled, or used via a conditional "if" statement, new syntax, if allowed even once, immediately breaks all code in many browsers that we still support. You can complain to upstream TC39 for having introducing features in ES2017 in a way that is backwards-incompatible. When MediaWiki raises its minimum requirement to ES8/ES2017, we will on the same day, raise the ESLint and site script validator to also allow this syntax.

Feb 9 2024, 8:31 PM · MediaWiki-Platform-Team, Wikimedia-Minify, JavaScript, MediaWiki-ResourceLoader
Nux added a comment to T350181: Enable desktop diff page on mobile site.

Diff colors: see T90948: Identify the best diff style (mobile or desktop) and use it on both mobile and desktop, which has related links and rationale for why blue and yellow exist. The short answer is red-green color blindness, especially in the context of inline diffs. That task has already been linked here and is the correct place to discuss further if at all.

Feb 9 2024, 12:16 PM · Wikimedia-Site-requests, Web-Team-Backlog (Needs Prioritization (Tech)), User-Jdlrobson, MobileFrontend (MobileFrontend Special Pages), Technical-Debt (RW-Tech-Debt)
Nux added a comment to T90948: Identify the best diff style (mobile or desktop) and use it on both mobile and desktop.

Hi. I was forwarded here from another task :). I did a colour change for myself as I had problems remembering on mobile which colour is which. Changing to red-green helped with that.

Feb 9 2024, 12:31 AM · MediaWiki-Page-diffs, MobileFrontend (MobileFrontend Special Pages), Moderator-Tools-Team, Editing-team, Design, Accessibility

Feb 8 2024

Nux added a comment to T350181: Enable desktop diff page on mobile site.

Sorry, I forgot I have a much smaller request. Could you flip the legend in HTML? I think "removed" belongs on the left side, and this is where inline diff puts "removed".

Feb 8 2024, 8:29 PM · Wikimedia-Site-requests, Web-Team-Backlog (Needs Prioritization (Tech)), User-Jdlrobson, MobileFrontend (MobileFrontend Special Pages), Technical-Debt (RW-Tech-Debt)
Nux added a comment to T350181: Enable desktop diff page on mobile site.

I was hoping I wasn't too late to make all of them red-green (so changing mobile/wikitext, not VE)... I think I agree with Sam here:

Feb 8 2024, 8:21 PM · Wikimedia-Site-requests, Web-Team-Backlog (Needs Prioritization (Tech)), User-Jdlrobson, MobileFrontend (MobileFrontend Special Pages), Technical-Debt (RW-Tech-Debt)
Nux added a comment to T277675: Add native support for ES2016-ES2020 or higher versions.

There are no plans currently to raise browser requirements to ES8/ES2017 or ES2020 etc. Not likely until browser engines, browser vendors/apps, audience usage thereof catch up.

Feb 8 2024, 7:00 PM · MediaWiki-Platform-Team, Wikimedia-Minify, JavaScript, MediaWiki-ResourceLoader

Feb 2 2024

Nux added a comment to T334940: All Graphs broken on Wikimedia wikis (due to security issue T336556).

@Nux, just to say, there is ongoing work in T222807.

Somehow they managed to implement the sandbox even without a separate domain. Although, if I understand correctly, this allows to make /api.php calls (non-authenticated, ofc).
...

Feb 2 2024, 10:58 PM · User-zeljkofilipin, Regression, User-notice, Tech Ambassadors & Translators, MediaWiki-extensions-Graph

Jan 30 2024

Nux added a comment to T350181: Enable desktop diff page on mobile site.

Just BTW, but it is weird that visual is red-green and wikitext (inline) diff is yellow-blue. Shouldn't they both be red-green?

Jan 30 2024, 10:39 PM · Wikimedia-Site-requests, Web-Team-Backlog (Needs Prioritization (Tech)), User-Jdlrobson, MobileFrontend (MobileFrontend Special Pages), Technical-Debt (RW-Tech-Debt)

Jan 29 2024

Nux added a comment to T334940: All Graphs broken on Wikimedia wikis (due to security issue T336556).

In T334940#9480339, @TheDJ wrote:
Separate domain to serve iframes from, so that we can have interactive and cacheable content (pretty complex)

Jan 29 2024, 3:20 AM · User-zeljkofilipin, Regression, User-notice, Tech Ambassadors & Translators, MediaWiki-extensions-Graph

Jan 20 2024

Nux created T355478: The pattern is not working for mass delete (Nuke).
Jan 20 2024, 4:49 PM · Moderator-Tools-Team, MW-1.42-notes (1.42.0-wmf.14; 2024-01-16), Patch-For-Review, Regression, MediaWiki-extensions-Nuke

Jan 14 2024

Nux added a comment to T178356: Raise Grade A JavaScript requirement from ES5 (2009) to ES6 (2015).

(ES2018) for await - Firefox 58+, Safari 11.1+, Chrome 63+, Opera 50+, Edge 18+

For the record: This is incorrect. Both async and await comes with ES2017/ES8. See e.g.: https://flaviocopes.com/es2017/#async-functions and also https://262.ecma-international.org/8.0/

It's not incorrect. for await is for asynchronous iteration which appeared only in ES2018. https://caniuse.com/?search=for%20await

Jan 14 2024, 2:03 PM · MediaWiki-Platform-Team, User-notice-archive, MW-1.41-notes (1.41.0-wmf.10; 2023-05-23), Front-end Modernization, MW-1.38-notes (1.38.0-wmf.2; 2021-09-28), Browser-Support-Internet-Explorer, Performance-Team, JavaScript, MediaWiki-ResourceLoader
Restricted Application added a project to T178356: Raise Grade A JavaScript requirement from ES5 (2009) to ES6 (2015): MediaWiki-Platform-Team.

(ES2018) for await - Firefox 58+, Safari 11.1+, Chrome 63+, Opera 50+, Edge 18+

Jan 14 2024, 12:48 PM · MediaWiki-Platform-Team, User-notice-archive, MW-1.41-notes (1.41.0-wmf.10; 2023-05-23), Front-end Modernization, MW-1.38-notes (1.38.0-wmf.2; 2021-09-28), Browser-Support-Internet-Explorer, Performance-Team, JavaScript, MediaWiki-ResourceLoader
Nux added a comment to T75714: Update JavaScript syntax checker for gadgets and user-scripts for ES6 and later.

Note that async allows you to do much, much more readable code. E.g. by using await in HTML dialogs:
https://github.com/Eccenux/wiki-DYKCzyWiesz/blob/59d3b9ed4d93b6c42a59a9e7ce85b327d4bd9d64/src/DoneHandling.js#L80

Jan 14 2024, 2:55 AM · User-notice-archive, MW-1.42-notes (1.42.0-wmf.13; 2024-01-09 ), Patch-For-Review, MediaWiki-Platform-Team, Design-System-Team, MediaWiki-ResourceLoader
Nux added a comment to T75714: Update JavaScript syntax checker for gadgets and user-scripts for ES6 and later.

I did not mean to argue that using requiresES6 for ES8+ should be supported, only that if that parameter is dropped or people are directed to remove it, Tech News should make it clear that that isn't a no-op change. I don't think it's that unlikely that someone did use for ES8+ code, either because they did not realize the code is ES8+, or because they didn't know requiresES6 means "ES6 and ES7 but not ES8". If a gadget breaking is the gadget developer's fault, it is still helpful to point them to the cause of the breakage.

Jan 14 2024, 2:47 AM · User-notice-archive, MW-1.42-notes (1.42.0-wmf.13; 2024-01-09 ), Patch-For-Review, MediaWiki-Platform-Team, Design-System-Team, MediaWiki-ResourceLoader

Jan 8 2024

Nux awarded T75714: Update JavaScript syntax checker for gadgets and user-scripts for ES6 and later a Party Time token.
Jan 8 2024, 7:58 PM · User-notice-archive, MW-1.42-notes (1.42.0-wmf.13; 2024-01-09 ), Patch-For-Review, MediaWiki-Platform-Team, Design-System-Team, MediaWiki-ResourceLoader

Jan 4 2024

Nux added a comment to T354385: Some Gadgets are broken after 1.42.0-wmf.12 update with incorrect error message.

You need to change comments moving them out of list items. https://ar.wikipedia.org/w/index.php?title=%D9%85%D9%8A%D8%AF%D9%8A%D8%A7%D9%88%D9%8A%D9%83%D9%8A:Gadgets-definition&action=edit

Jan 4 2024, 10:19 PM · MediaWiki-Platform-Team, MW-1.42-notes (1.42.0-wmf.12; 2024-01-02), Wikimedia-production-error, MediaWiki-extensions-Gadgets