User talk:Jack who built the house/Convenient Discussions

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 10 days and sections whose most recent comment is older than 360 days.

Respect TP magic words

[edit]

At w:Talk:Yogurt/yogurtspellinghistory, despite the magic words present in the w:Template:archive template (__NOEDITSECTION__ __NONEWSECTIONLINK__ __ARCHIVEDTALK__), the reply links are still present Aaron Liu (talk) 00:06, 3 June 2023 (UTC)[reply]

@Jack who built the house, did we add support for these words? Iniquity (talk) 12:37, 1 August 2023 (UTC)[reply]
@Aaron Liu, @Iniquity: we support the class .mw-archivedtalk. The problem with the __ARCHIVEDTALK__ magic word, introduced in phab:T249293, is that is has no effect on the page; it only appears in the page properties that you can get with a request like
new mw.Api().get({
  formatversion: 2,
  action: 'query',
  prop: ['pageprops'],
  titles: 'Talk:Yogurt/yogurtspellinghistory',
}).then((r) => console.log(r.query.pages[0].pageprops))
To minimize load times, CD refrains from making any API requests while loading a page unless strictly necessary. So we can say that having reply links on pages where they shouldn't be is not a critical issue. Or we may try to find another solution, but I currently don't see one. Jack who built the house (talk) 09:54, 25 August 2023 (UTC)[reply]

Mobile view

[edit]

Hi @Jack who built the house, Is it possible to support mobile view in performance, if you do not have enough time to make it support mobile view, tell me which part is responsible for the view so that I can modify the performance.--Gerges (talk) 06:25, 27 August 2023 (UTC)[reply]

Hi. I haven't started with the mobile view so far because it's too fundamental a task to take on even for me. I don't even know where to start telling... And I was in the middle of a refactoring which would make the code architecture a bit easier to comprehend. Even though I strive to make my code maintainable and extendable by other people, I don't wanna disappoint you and give false hopes that this is feasible in reasonable time. Jack who built the house (talk) 11:29, 27 August 2023 (UTC)[reply]
Hi @Jack who built the house,
Is there anything new about making the tool support Mobile view.-- Gerges (talk) 16:24, 11 March 2024 (UTC)[reply]
Nothing new so far :( Jack who built the house (talk) 17:07, 11 March 2024 (UTC)[reply]
@JWBTH, What is the part of the code that prevents the tool from running on a mobile? -- Gerges (talk) 17:26, 11 March 2024 (UTC)[reply]
It's not that something is preventing the tool from running on mobile. You would need to write a large amount of code to provide support. Jack who built the house (talk) 17:35, 11 March 2024 (UTC)[reply]

Баг

[edit]

Приветствую. Баг, возможно, связан с включенным DT. [1] (при редактировании, что до, что после сохранения часть [[ut: отсуствует в окошке). Jaguar K (talk) 15:40, 27 November 2023 (UTC)[reply]

Сложно ловить такие случаи. Скрипт думает, что ссылка с ut: — часть вашей подписи (потому что является ссылкой на вашу страницу обсуждения и стоит недалеко от конца сообщения). Jack who built the house (talk) 22:46, 21 April 2024 (UTC)[reply]

Отключить DT

[edit]

Предложение отключить DT не учитывает статус "глобально отключен, локально включен" и потому в этом случае все ссылки в нем нерабочие. P.S. CD запускается по клику на function run() {importScript('MediaWiki:Gadget-convenientDiscussions.js')}, а не при загрузке страницы. Jaguar K (talk) 15:42, 27 November 2023 (UTC)[reply]

🤔 Jack who built the house (talk) 11:22, 10 February 2024 (UTC)[reply]

Hook for after replying

[edit]

After adding a comment/topic or just pressing the refresh button with CD, the script reloads the page, removing most text appearance changes. Is there some sort of hook I should use for scripts that run again after CD refreshes the page after adding a new comment/topic? Aaron Liu (talk) 20:44, 27 November 2023 (UTC)[reply]

mw.hook('wikipage.content') should work, see https://doc.wikimedia.org/mediawiki-core/master/js/Hooks.html#~event:'wikipage.content'. Jack who built the house (talk) 12:23, 15 April 2024 (UTC)[reply]
Would that also work on the initial page load? I suspect that it would run on the page before CD processes it, resulting in a broken CD. Aaron Liu (talk) 16:35, 15 April 2024 (UTC)[reply]
resulting in a broken CD
Hm. CD fires the convenientDiscussions.pageReady hook when the processing is done, see https://tools-static.wmflabs.org/convenient-discussions/docs/global.html#event:pageReady. Jack who built the house (talk) 17:22, 15 April 2024 (UTC)[reply]
Well, for me the timestamps disable on reload despite me hooking it. Aaron Liu (talk) 18:01, 15 April 2024 (UTC)[reply]
This is the issue with that script, it doesn't provide the ability to run twice. By the way, do you really need it? CD converts timestamps in different formats as well per preferences. Jack who built the house (talk) 18:28, 15 April 2024 (UTC)[reply]
I like having the actual date show if the time is far away enough.
Anyways, I'll try looking at the script. Thanks! Aaron Liu (talk) 19:06, 15 April 2024 (UTC)[reply]

Double signature when normal sig is 3 ~

[edit]

On my home wiki, my signature includes the time hard coded so that I sign with three tildes instead of 4 usually. The reply tool we have available as a gadget, when I include my 3 tilde signature in my comment, would not include its own comment. I see up above in the section on double signatures when templates supply the sig that you have some sort of check box for not supplying signatures, but is there a way to make that checked by default for everything? And I cant see it all when replying? Nableezy (talk) 00:28, 1 December 2023 (UTC)[reply]

pinging Jack who built the house Nableezy (talk) 00:49, 1 December 2023 (UTC)[reply]
Hi @Nableezy,
I wonder why you hard-code the time, if a standard 4~ signature provides it automatically. Michgrig (talk) 15:38, 2 December 2023 (UTC)[reply]
I have my signature in a box on en.wp, and just like the uniform look of having the time within that box as well. Nableezy (talk) 04:08, 3 December 2023 (UTC)[reply]

Keyboard shortcut/key for temporarily disabling bottom right overlay buttons

[edit]

There's currently a gesture to hold the four buttons to make them disappear. Could a hotkey also be added for them?
Also, could the quote feature use normal positional parameter stuff instead of the nagging |1=? 😅 Aaron Liu (talk) 00:33, 2 December 2023 (UTC)[reply]

Also, could the quote feature use normal positional parameter stuff instead of the nagging |1=? 😅
↑ This quote would have broken if I didn't use it 😅 Jack who built the house (talk) 22:42, 21 April 2024 (UTC)[reply]

Поиск диффа

[edit]

Не работает на [2], видимо, из-за 3 минут разницы. Jaguar K (talk) 21:35, 2 December 2023 (UTC)[reply]

Как вытащить запрос из архива

[edit]

@Jack who built the house and JWBTH: месяц назад я на ru:ВП:ЗКА подавал запрос, который сегодня ушёл в архив без итога. Возможно ли, так сказать, достать запрос из архива с помощью «Удобных обсуждений»? Guest Kashapov (talk) 06:08, 26 January 2024 (UTC)[reply]

@Guest Kashapov: Я реализовал эту функцию. Можете попробовать ей воспользоваться — выберите «Перенести» в меню заархивированной темы и перенесите, как обычно переносте темы. Jack who built the house (talk) 22:34, 21 April 2024 (UTC)[reply]

Опять съехала подсветка

[edit]

Привет! Когда-то уже был такой баг, но вроде бы его исправляли. Подсветка новых сообщений съезжает существенно ниже. См., например, https://imgur.com/7kgIlMT Michgrig (talk) 14:59, 21 March 2024 (UTC)[reply]

Кря? Michgrig (talk) 19:04, 14 April 2024 (UTC)[reply]
Кря, да, мы обсуждали в последний раз на User talk:Jack who built the house/Convenient Discussions/Archives/2023#Кривая подсветка новых сообщений. Пока не могу ничего сказать. Вроде как число жалоб уменьшилось с прошлого раза, то есть баг относительно редок. Jack who built the house (talk) 11:12, 15 April 2024 (UTC)[reply]

problem

[edit]

greetings We are using MediaWiki version 1.39, And recently in the changes you made there is code that is not compatible with this version of Media Wiki, I want to know if you can fix this problem. Thanks in advance. borrowed. שאול לרנר (talk) 11:00, 5 May 2024 (UTC)[reply]

More information: The issue is using mw.user.isNamed מיכי י-ם (talk) 11:03, 5 May 2024 (UTC)[reply]
Thanks for reporting, I should have known better before using mw.user.isNamed. I just fixed it; tell me if you still have any problems. By the way, who are "we" here? A non-WMF website? Jack who built the house (talk) 12:42, 5 May 2024 (UTC)[reply]
Back up and running. Thank you!
Directions to the site המכלול. מיכי י-ם (talk) 12:49, 5 May 2024 (UTC)[reply]
Thank you on behalf of all users of the website המכלולשאול לרנר (talk) 12:56, 5 May 2024 (UTC)[reply]
Another problem We don't have mw.util.clearSubtitle either.
Thanks in advance for the treatment! מיכי י-ם (talk) 09:01, 8 May 2024 (UTC)[reply]
Apologies for the harassment. We don't have globaluserinfo either. I allow myself to comment as we are using the long-term version of MediaWiki. Thanks again in advance מיכי י-ם (talk) 10:16, 8 May 2024 (UTC)[reply]
No apologies needed; you're doing my work for me, haha. Fixed these. Jack who built the house (talk) 11:26, 8 May 2024 (UTC)[reply]
Thank you for the reassuring response. The error still exists, the message is attached: Couldn't load the names of the muted users. TypeError: can't access property "globaluserinfo", e.query is undefined. מיכי י-ם (talk) 14:53, 8 May 2024 (UTC)[reply]
In addition, users report that the settings cannot be saved. Cause of error OO.ui.getTeleportTarget undefined. מיכי י-ם (talk) 14:55, 8 May 2024 (UTC)[reply]
I've improved compatibility with third-party wikis and older MediaWiki versions, fixing several other issues apart from the ones you mentioned. Please try now. Jack who built the house (talk) 21:03, 14 May 2024 (UTC)[reply]
Thank you! I didn't find any other issues (I don't use the script regularly). מיכי י-ם (talk) 09:28, 15 May 2024 (UTC)[reply]

Hebrew date

[edit]

We would appreciate it if you added support for signature recognition that includes only a Hebrew date. Thanks in advance! מיכי י-ם (talk) 10:29, 7 May 2024 (UTC)[reply]

That would be tricky. Jack who built the house (talk) 21:02, 14 May 2024 (UTC)[reply]

Use ellipsis when edit summary is too long

[edit]

Currently, CD only puts the comment contents into the edit summary if it can fit. Is it possible for it to replace the last characters with ... instead? Aaron Liu (talk) 01:23, 11 May 2024 (UTC)[reply]

The point of this feature is that if a comment is short (50 characters or less by default), the reader should be able to read it fully without opening the page. If it is longer, there is not much sense to show the first 50 characters of the comment – the reader would still have to open the page, and at the same time that text would create clutter for everyone else reading the edit history. Jack who built the house (talk) 01:59, 11 May 2024 (UTC)[reply]

Subscribing to Interest subscribes to Pakistan?

[edit]

I've been trying to involve myself more in enwiki's AfD. I'm not sure if this is a problem with Echo, but when I (un)subscribe to en:w:Wikipedia:WikiProject Deletion sorting/Internet#Internet, I also simultaneously (un)subscribe en:w:Wikipedia:WikiProject Deletion sorting/Pakistan#Pakistan. Any ideas? Aaron Liu (talk) 15:13, 13 May 2024 (UTC)[reply]

This is how the subscription API works. You subscribe to a topic by the author and date of the oldest comment in it. In this case it's Saqib and 15:01, 15 April 2024 (UTC), see en:Wikipedia:WikiProject Deletion sorting/Internet#c-Saqib-20240415150100-Malik_Siraj_Akbar. Jack who built the house (talk) 15:24, 13 May 2024 (UTC)[reply]

Doesn't outdent

[edit]

Despite my outdent level being set to 12, replying at w:User talk:Aaron Liu/sandbox did not cause outdents for me. Aaron Liu (talk) 16:39, 14 May 2024 (UTC)[reply]

Oh thank you, fixed. Jack who built the house (talk) 21:02, 14 May 2024 (UTC)[reply]

Removes section headers for some reason on Miraheze

[edit]

After following the prompt to disable (most) of discussion tools, CD removes section headers' contents on every Miraheze talk page such as [3] for some reason Aaron Liu (talk) 14:26, 16 May 2024 (UTC)[reply]

Gosh, not only I have to constantly readjust CD to ever coming layout changes in DiscussionTools; I also have to support all the previous versions of it at once 😂 Fixed. Jack who built the house (talk) 21:43, 20 May 2024 (UTC)[reply]
Thanks! Sorry lol Aaron Liu (talk) 22:01, 20 May 2024 (UTC)[reply]

Discussion regarding potential feature request

[edit]

I'm using CD often on the English Wikipedia, and have found excellent use of all the buttons that do code, bold, italics, etc...

Concerning the "Quote the Selected text" button, I find that I rarely use it and would benefit from this button being changed to using in-line quotation instead of quote block. Or would it be better to have two buttons, one for {{tqb}} and one for {{tq}}?

Looking forward to everyone's thoughts!

Cheers, Cocobb8 (talk) 13:39, 18 March 2024 (UTC)[reply]

Hi! I actually have thought myself that en:template:tq may be more reasonable than en:template:tqb, since
  • you usually don't need to ping the user;
  • long, multiline quotations (which look better in tqb) are rarely needed;
  • more often than not you quote a comment directly above you, and the timestamp isn't helpful as well.
On the other hand, if we suppress the linking of the username and also provide a link to the target comment (which I suggested, but nobody commented), tqb would make more sense. Jack who built the house (talk) 14:57, 18 March 2024 (UTC)[reply]
That's why having both might be better? Note that I've seen much use of {{tq}} being used to quote from policies and guidelines too. Cocobb8 (talk) 15:11, 18 March 2024 (UTC)[reply]
✓ Done. Currently reverted to the use of en:template:tq. The ability to use the block template is still there (and used automatically in one special case when replying to a comment that has outdented replies, hence can't be replied directly). We need to think whether we need to use it in other cases and how. Jack who built the house (talk) 22:32, 21 April 2024 (UTC)[reply]
I will update the logic to the following:
  1. The basic {{tq}} template is used when quoting the comment you reply to. No point to indicate the author/timestamp – it's already obvious.
  2. {{tqb}} is used with author, timestamp, and comment ID parameters when quoting any other comment by selecting its text and pressing a toolbar button or q. (This won't work when pasting – the comment form won't know the source of the quote. But when pasting, the paste isn't formatted as a quote anyway.)
Jack who built the house (talk) 18:30, 19 May 2024 (UTC)[reply]
Sounds great to me! Aaron Liu (talk) 22:02, 20 May 2024 (UTC)[reply]

Welcomes

[edit]

Hi. I started using CD on enwiki recently, and it seems broken on user talk pages with welcome templates. Other messages seem fine though. Could you look into this issue, thanks. '''[[User:CanonNi]]''' (talkcontribs) 01:06, 13 June 2024 (UTC)[reply]

Thanks, fixed.
By the way, you can quickly upload screenshots with CD by pasting or dragging the screenshot into the comment input or clicking the image tool and then "Upload". CD will automatically fill the image information for you. Jack who built the house (talk) 10:42, 13 June 2024 (UTC)[reply]

My signature at enwiki breaks

[edit]

Hi JWBTH! Thanks for making this great script.
My signature at enwiki, which is Zanahary, breaks, leaving a hanging ꧁ at the end of my comment as displayed with Convenient DIscussions. You can see an example here en:User_talk:Zanahary#A_beer_for_you!. Zanahary (talk) 03:54, 19 June 2024 (UTC)[reply]

Hi, detecting parts of signature is not an easy task. You can easily confuse a decoration element like ꧁ with an emoji which should not be removed. But I think I can get this case covered by checking if such an element is separated by a space or not. I've updated the script – ꧁ is no longer hanging. Jack who built the house (talk) 11:10, 19 June 2024 (UTC)[reply]
Thanks Jack! The signature is still breaking for me—do I need to reinstall the script? Zanahary (talk) 19:11, 19 June 2024 (UTC)[reply]
Oops, sorry – the release wasn't successful. Now everything should work. Jack who built the house (talk) 20:14, 19 June 2024 (UTC)[reply]
Awesome, thank you so much! You're a 🌠! Zanahary (talk) 20:28, 19 June 2024 (UTC)[reply]