[go: up one dir, main page]

Page MenuHomePhabricator

MediaWiki-extensions-GadgetsComponent
ActivePublic

Details

Description

PHP extension to allow users to enable JS-based, user-provided gadgets from their preferences page (Homepage). This is not meant for reporting bugs or problems with local gadgets themselves.

Recent Activity

Sun, Nov 17

SD0001 closed T356509: Images/videos of gadgets should be shown next to gadgets in the Gadgets section of your preferences as Invalid.

Already supported.

Sun, Nov 17, 7:26 PM · MediaWiki-extensions-Gadgets

Sat, Nov 16

SD0001 moved T367980: Expose gadgets metadata to lua from Backlog to External on the Scribunto board.
Sat, Nov 16, 8:31 PM · Scribunto, User-notice, Patch-For-Review, MediaWiki-extensions-Gadgets
SD0001 added a project to T367980: Expose gadgets metadata to lua: Scribunto.
Sat, Nov 16, 8:31 PM · Scribunto, User-notice, Patch-For-Review, MediaWiki-extensions-Gadgets

Wed, Nov 13

Pppery closed T379101: Special:Gadgets should report that gadgets are hidden as Resolved.
Wed, Nov 13, 5:40 PM · MW-1.44-notes (1.44.0-wmf.4; 2024-11-19), MediaWiki-extensions-Gadgets
Maintenance_bot removed a project from T379101: Special:Gadgets should report that gadgets are hidden: Patch-For-Review.
Wed, Nov 13, 9:32 AM · MW-1.44-notes (1.44.0-wmf.4; 2024-11-19), MediaWiki-extensions-Gadgets
ReleaseTaggerBot added a project to T379101: Special:Gadgets should report that gadgets are hidden: MW-1.44-notes (1.44.0-wmf.4; 2024-11-19).
Wed, Nov 13, 9:00 AM · MW-1.44-notes (1.44.0-wmf.4; 2024-11-19), MediaWiki-extensions-Gadgets
gerritbot added a comment to T379101: Special:Gadgets should report that gadgets are hidden.

Change #1088874 merged by jenkins-bot:

[mediawiki/extensions/Gadgets@master] Show if gadget is hidden

https://gerrit.wikimedia.org/r/1088874

Wed, Nov 13, 8:44 AM · MW-1.44-notes (1.44.0-wmf.4; 2024-11-19), MediaWiki-extensions-Gadgets

Sun, Nov 10

Pppery claimed T379101: Special:Gadgets should report that gadgets are hidden.
Sun, Nov 10, 3:32 AM · MW-1.44-notes (1.44.0-wmf.4; 2024-11-19), MediaWiki-extensions-Gadgets
gerritbot added a project to T379101: Special:Gadgets should report that gadgets are hidden: Patch-For-Review.
Sun, Nov 10, 3:32 AM · MW-1.44-notes (1.44.0-wmf.4; 2024-11-19), MediaWiki-extensions-Gadgets
gerritbot added a comment to T379101: Special:Gadgets should report that gadgets are hidden.

Change #1088874 had a related patch set uploaded (by Pppery; author: Pppery):

[mediawiki/extensions/Gadgets@master] Show if gadget is hidden

https://gerrit.wikimedia.org/r/1088874

Sun, Nov 10, 3:32 AM · MW-1.44-notes (1.44.0-wmf.4; 2024-11-19), MediaWiki-extensions-Gadgets

Tue, Nov 5

Pppery created T379101: Special:Gadgets should report that gadgets are hidden.
Tue, Nov 5, 5:30 PM · MW-1.44-notes (1.44.0-wmf.4; 2024-11-19), MediaWiki-extensions-Gadgets

Fri, Nov 1

Ammarpad closed T372127: set supportsUrlLoad to always be true, then remove it as a gadget parameter as Declined.

This issue has been already discussed thorougly in the task linked by Bugreporter.

Fri, Nov 1, 7:13 PM · MediaWiki-extensions-Gadgets
Ammarpad closed T376850: "Always enable safe mode" gives very narrow message box in preferences as Resolved.
Fri, Nov 1, 6:37 PM · MW-1.44-notes (1.44.0-wmf.2; 2024-11-05), MediaWiki-extensions-Gadgets, MediaWiki-Core-Preferences
ReleaseTaggerBot added a project to T376850: "Always enable safe mode" gives very narrow message box in preferences: MW-1.44-notes (1.44.0-wmf.2; 2024-11-05).
Fri, Nov 1, 5:00 PM · MW-1.44-notes (1.44.0-wmf.2; 2024-11-05), MediaWiki-extensions-Gadgets, MediaWiki-Core-Preferences
Maintenance_bot removed a project from T376850: "Always enable safe mode" gives very narrow message box in preferences: Patch-For-Review.
Fri, Nov 1, 4:31 PM · MW-1.44-notes (1.44.0-wmf.2; 2024-11-05), MediaWiki-extensions-Gadgets, MediaWiki-Core-Preferences
gerritbot added a comment to T376850: "Always enable safe mode" gives very narrow message box in preferences.

Change #1085310 merged by jenkins-bot:

[mediawiki/extensions/Gadgets@master] Fix safe mode warning message

https://gerrit.wikimedia.org/r/1085310

Fri, Nov 1, 4:15 PM · MW-1.44-notes (1.44.0-wmf.2; 2024-11-05), MediaWiki-extensions-Gadgets, MediaWiki-Core-Preferences
gerritbot added a comment to T376850: "Always enable safe mode" gives very narrow message box in preferences.

Change #1085311 merged by jenkins-bot:

[mediawiki/core@master] preferences: Fix safe mode warning message

https://gerrit.wikimedia.org/r/1085311

Fri, Nov 1, 4:15 PM · MW-1.44-notes (1.44.0-wmf.2; 2024-11-05), MediaWiki-extensions-Gadgets, MediaWiki-Core-Preferences

Thu, Oct 31

gerritbot added a comment to T376850: "Always enable safe mode" gives very narrow message box in preferences.

Change #1085311 had a related patch set uploaded (by Ammarpad; author: Ammarpad):

[mediawiki/core@master] preferences: Fix safe mode warning message

https://gerrit.wikimedia.org/r/1085311

Thu, Oct 31, 7:53 AM · MW-1.44-notes (1.44.0-wmf.2; 2024-11-05), MediaWiki-extensions-Gadgets, MediaWiki-Core-Preferences
gerritbot added a project to T376850: "Always enable safe mode" gives very narrow message box in preferences: Patch-For-Review.
Thu, Oct 31, 7:53 AM · MW-1.44-notes (1.44.0-wmf.2; 2024-11-05), MediaWiki-extensions-Gadgets, MediaWiki-Core-Preferences
gerritbot added a comment to T376850: "Always enable safe mode" gives very narrow message box in preferences.

Change #1085310 had a related patch set uploaded (by Ammarpad; author: Ammarpad):

[mediawiki/extensions/Gadgets@master] Fix safe mode warning message

https://gerrit.wikimedia.org/r/1085310

Thu, Oct 31, 7:53 AM · MW-1.44-notes (1.44.0-wmf.2; 2024-11-05), MediaWiki-extensions-Gadgets, MediaWiki-Core-Preferences
Ammarpad added a project to T376850: "Always enable safe mode" gives very narrow message box in preferences: MediaWiki-extensions-Gadgets.

Gadgets also shows similar message under Gadgets preference tab and it has the same problem

Thu, Oct 31, 7:43 AM · MW-1.44-notes (1.44.0-wmf.2; 2024-11-05), MediaWiki-extensions-Gadgets, MediaWiki-Core-Preferences

Sat, Oct 26

RheingoldRiver added a comment to T31272: Implement Gadgets 2.0.

Hi, my suggestion for naming conventions is:

Sat, Oct 26, 9:45 AM · MW-1.43-notes (1.43.0-wmf.4; 2024-05-07), User-notice, Gadgets-2.0, MediaWiki-extensions-Gadgets

Oct 10 2024

Nardog added a comment to T376875: Parse API does not return category-triggered gadgets.

the category existence check has already happened on the first server loading of the edit page which is the only load for live preview

Oct 10 2024, 10:35 PM · Realtime Preview, MediaWiki-Page-editing, MediaWiki-extensions-Gadgets
Ammarpad removed projects from T376875: Parse API does not return category-triggered gadgets: MediaWiki-Parser, MediaWiki-Action-API.

The parse API should return ext.gadget.Calculator as one of the modules.

I believe the problem is the module presence (to be eligible for return) is dependent on category existence, but the category existence check has already happened on the first server loading of the edit page which is the only load for live preview. You can request the parsing API to return the categories of the page blindly, but then you really have to parse that info (maybe in MediaWiki-extensions-Gadgets) and dynamically load the module if it qualifies.

Oct 10 2024, 8:46 PM · Realtime Preview, MediaWiki-Page-editing, MediaWiki-extensions-Gadgets
SD0001 added a comment to T63007: Allow specifying when a gadget should load (action, namespace, content model).

The only benefit with supporting templates is that using them in interface messages won't weirdly cause a category to show up at the bottom in unexpected contexts like special pages. It also doesn't need a row in categorylinks, sure, but I suspect communities would toss in a category anyway for tracking.

Oct 10 2024, 9:06 AM · User-notice-archive, MW-1.42-notes (1.42.0-wmf.25; 2024-04-02), Patch-For-Review, MW-1.41-notes (1.41.0-wmf.28; 2023-09-26), Wikimedia-Performance-recommendation, Wikimedia-Israel-Hackers, MediaWiki-extensions-Gadgets
Nardog added a subtask for T63007: Allow specifying when a gadget should load (action, namespace, content model): T376875: Parse API does not return category-triggered gadgets.
Oct 10 2024, 8:23 AM · User-notice-archive, MW-1.42-notes (1.42.0-wmf.25; 2024-04-02), Patch-For-Review, MW-1.41-notes (1.41.0-wmf.28; 2023-09-26), Wikimedia-Performance-recommendation, Wikimedia-Israel-Hackers, MediaWiki-extensions-Gadgets
Nardog added a parent task for T376875: Parse API does not return category-triggered gadgets: T63007: Allow specifying when a gadget should load (action, namespace, content model).
Oct 10 2024, 8:23 AM · Realtime Preview, MediaWiki-Page-editing, MediaWiki-extensions-Gadgets
Nardog created T376875: Parse API does not return category-triggered gadgets.
Oct 10 2024, 8:22 AM · Realtime Preview, MediaWiki-Page-editing, MediaWiki-extensions-Gadgets

Oct 4 2024

Izno added a comment to T63007: Allow specifying when a gadget should load (action, namespace, content model).

I still think T241524: Parser function for loading gadgets is the way to go, not this. If a template with a template gadget has a sandbox, there are two options:

  • The sandbox is also added to |templates=. This is impossible if you’re not an interface admin.
  • Instead of the main template, a subtemplate has been added to |templates=, which does nothing except for triggering the gadget load (so that the same version can be safely used in the live template and the sandbox). This is no better than those useless categories, except that it appears two lines higher up at the bottom of the edit window than a hidden category.
Oct 4 2024, 6:45 PM · User-notice-archive, MW-1.42-notes (1.42.0-wmf.25; 2024-04-02), Patch-For-Review, MW-1.41-notes (1.41.0-wmf.28; 2023-09-26), Wikimedia-Performance-recommendation, Wikimedia-Israel-Hackers, MediaWiki-extensions-Gadgets
Sophivorus added a comment to T63007: Allow specifying when a gadget should load (action, namespace, content model).

@Tacsipacsi Regarding the sandboxes of templates with template gadgets, when I work in such sandboxes, I generally don't want to load the same gadget as the main template, but a modified version of the gadget, which I usually store in a subpage of my userpage and load from my common.js

Oct 4 2024, 5:40 PM · User-notice-archive, MW-1.42-notes (1.42.0-wmf.25; 2024-04-02), Patch-For-Review, MW-1.41-notes (1.41.0-wmf.28; 2023-09-26), Wikimedia-Performance-recommendation, Wikimedia-Israel-Hackers, MediaWiki-extensions-Gadgets
Sophivorus added a comment to T63007: Allow specifying when a gadget should load (action, namespace, content model).

Sure, other approaches may be (marginally) better, but realistically speaking, will take years to happen. This approach can be implemented now and wouldn't block or hinder the development of better alternatives. If anything, it would give it some extra push by helping the development of actual tools to be loaded by said alternatives.

Oct 4 2024, 5:27 PM · User-notice-archive, MW-1.42-notes (1.42.0-wmf.25; 2024-04-02), Patch-For-Review, MW-1.41-notes (1.41.0-wmf.28; 2023-09-26), Wikimedia-Performance-recommendation, Wikimedia-Israel-Hackers, MediaWiki-extensions-Gadgets
Xaosflux added a comment to T63007: Allow specifying when a gadget should load (action, namespace, content model).

Yup, <templatescripts> (akin to <templatestyles>) seems much cleaner.

Oct 4 2024, 5:09 PM · User-notice-archive, MW-1.42-notes (1.42.0-wmf.25; 2024-04-02), Patch-For-Review, MW-1.41-notes (1.41.0-wmf.28; 2023-09-26), Wikimedia-Performance-recommendation, Wikimedia-Israel-Hackers, MediaWiki-extensions-Gadgets
Tacsipacsi added a comment to T63007: Allow specifying when a gadget should load (action, namespace, content model).

I still think T241524: Parser function for loading gadgets is the way to go, not this. If a template with a template gadget has a sandbox, there are two options:

Oct 4 2024, 5:03 PM · User-notice-archive, MW-1.42-notes (1.42.0-wmf.25; 2024-04-02), Patch-For-Review, MW-1.41-notes (1.41.0-wmf.28; 2023-09-26), Wikimedia-Performance-recommendation, Wikimedia-Israel-Hackers, MediaWiki-extensions-Gadgets
Sophivorus added a comment to T63007: Allow specifying when a gadget should load (action, namespace, content model).

Hi! I just submitted 1077955 to add support for templates in the gadget definitions. After the merge of 1005092, me and a few others developed several JavaScript-enhanced templates (see template gadgets and global gadgets). However, although loading gadgets via categories is technically enough, it leads to the creation of many obscure and otherwise useless categories (see every subcategory here and here). This is unnecessary and cumbersome, it would be better if we could load gadgets based on the presence of specific templates, which is generally the intended functionality anyway.

Oct 4 2024, 1:56 PM · User-notice-archive, MW-1.42-notes (1.42.0-wmf.25; 2024-04-02), Patch-For-Review, MW-1.41-notes (1.41.0-wmf.28; 2023-09-26), Wikimedia-Performance-recommendation, Wikimedia-Israel-Hackers, MediaWiki-extensions-Gadgets
gerritbot added a comment to T63007: Allow specifying when a gadget should load (action, namespace, content model).

Change #1077955 had a related patch set uploaded (by Sophivorus; author: Sophivorus):

[mediawiki/extensions/Gadgets@master] Add support for templates in definitions

https://gerrit.wikimedia.org/r/1077955

Oct 4 2024, 1:45 PM · User-notice-archive, MW-1.42-notes (1.42.0-wmf.25; 2024-04-02), Patch-For-Review, MW-1.41-notes (1.41.0-wmf.28; 2023-09-26), Wikimedia-Performance-recommendation, Wikimedia-Israel-Hackers, MediaWiki-extensions-Gadgets
gerritbot added a project to T204201: Extend MediaWiki:Gadgets-definition capabilities: Patch-For-Review.
Oct 4 2024, 1:45 PM · Patch-For-Review, MediaWiki-extensions-Gadgets
gerritbot added a comment to T204201: Extend MediaWiki:Gadgets-definition capabilities.

Change #1077955 had a related patch set uploaded (by Sophivorus; author: Sophivorus):

[mediawiki/extensions/Gadgets@master] Add support for templates in definitions

https://gerrit.wikimedia.org/r/1077955

Oct 4 2024, 1:44 PM · Patch-For-Review, MediaWiki-extensions-Gadgets

Oct 2 2024

Gustmd7410 added a comment to T299365: Specifying submit action won't actually load gadgets on action=submit.
Oct 2 2024, 11:33 AM · MediaWiki-extensions-Gadgets

Sep 21 2024

Pppery moved T367980: Expose gadgets metadata to lua from To Triage to Not ready to announce on the User-notice board.
Sep 21 2024, 7:00 PM · Scribunto, User-notice, Patch-For-Review, MediaWiki-extensions-Gadgets
Pppery added a project to T367980: Expose gadgets metadata to lua: User-notice.
Sep 21 2024, 7:00 PM · Scribunto, User-notice, Patch-For-Review, MediaWiki-extensions-Gadgets

Sep 12 2024

Jdlrobson removed a project from T360234: GadgetUsage should guide interface admins better in how they can contribute to better site performance: Web-Team-Backlog (Needs Prioritization (Tech)).
Sep 12 2024, 10:30 PM · MediaWiki-extensions-Gadgets

Sep 10 2024

Pppery added a project to T53651: Auto-generated gadget code documentation: MediaWiki-extensions-Gadgets.
Sep 10 2024, 2:46 AM · MediaWiki-extensions-Gadgets, Documentation, JavaScript, WMF-General-or-Unknown

Sep 9 2024

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

Just mentioning that soon TLSv1.2 will be phased out and given https://caniuse.com/?search=tls%201.3 vs https://caniuse.com/?search=await users who can't use async/await won't be able to connect at all so the whole discussion here about compatibility and impact is moot.

Sep 9 2024, 9:43 AM · MediaWiki-Platform-Team (Radar), MediaWiki-extensions-Gadgets

Sep 7 2024

Iniquity added a comment to T31398: Implement Gadget Manager.

For those interested in implementing this, there is code for a Gadget Manager implementation already, and can be found in the RL2 branch of the mediawiki/extensions/Gadgets repo. This is from the 2011 prototype that @Catrope and myself worked on at the time.

It is however based on the deprecated jQuery UI. I suggest migrating it to HTMLForm instead.

Comments

  • ...
  • Gadgetmanager wise, I don't see many problems.
    • It's all jQuery UI, which we are trying to get rid off.. but it is fairly self contained, so I think that's ok for now, but is there a ticket for that ?
Sep 7 2024, 11:28 AM · Patch-Needs-Improvement, Community-Tech (2015-2017), Gadgets-2.0, MediaWiki-extensions-Gadgets

Sep 6 2024

Jdforrester-WMF updated the task description for T31272: Implement Gadgets 2.0.
Sep 6 2024, 7:21 PM · MW-1.43-notes (1.43.0-wmf.4; 2024-05-07), User-notice, Gadgets-2.0, MediaWiki-extensions-Gadgets

Sep 2 2024

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

Just mentioning that soon TLSv1.2 will be phased out and given https://caniuse.com/?search=tls%201.3 vs https://caniuse.com/?search=await users who can't use async/await won't be able to connect at all so the whole discussion here about compatibility and impact is moot.

Sep 2 2024, 11:57 AM · MediaWiki-Platform-Team (Radar), MediaWiki-extensions-Gadgets
Ladsgroup added a comment to T357197: Allow ES8 (ES2017) code in gadgets.

Just mentioning that soon TLSv1.2 will be phased out and given https://caniuse.com/?search=tls%201.3 vs https://caniuse.com/?search=await users who can't use async/await won't be able to connect at all so the whole discussion here about compatibility and impact is moot.

Sep 2 2024, 11:57 AM · MediaWiki-Platform-Team (Radar), MediaWiki-extensions-Gadgets

Aug 30 2024

MusikAnimal added a comment to T340460: Allow .vue files to be used in Gadgets.

I wanted to note T373711: Add support for Scribunto, JavaScript, CSS, JSON and Vue to CodeMirror 6 which I hope to have tackled by MW 1.44, if not sooner. This is not a proposal to replace CodeEditor/Ace (yet), but CodeMirror does already has support for Vue. So I guess keep that in mind in your decision making.

Aug 30 2024, 7:22 PM · Patch-Needs-Improvement, MediaWiki-Platform-Team (Radar), MediaWiki-ResourceLoader, MediaWiki-extensions-Gadgets, Design-System-Team, Front-end Modernization

Aug 16 2024

Jdlrobson added a subtask for T340705: [performance budgeting] Improve JS payload for projects with gadgets that lead to a 30%+ increase after gzip: T71550: Move code in enwiki MediaWiki:Common.js and Gadgets to MediaWiki software.
Aug 16 2024, 4:11 PM · MediaWiki-Platform-Team (Radar), MediaWiki-ResourceLoader, MediaWiki-extensions-Gadgets, Bengali-Sites, Local-Wiki-Template-And-Gadget-Issues

Aug 9 2024

Bugreporter added a comment to T372127: set supportsUrlLoad to always be true, then remove it as a gadget parameter.

See rEGAD5d3a547c8bd63a6b77f9705c096ebfd11d1fdb75 and T29766#7611796

Aug 9 2024, 8:59 AM · MediaWiki-extensions-Gadgets