Page MenuHomePhabricator

Don't show / disable the "show more languages" / "Show name in other languages" buttons when there aren't any to show
Closed, ResolvedPublic

Description

On the function viewer page, we give users the option of:

  1. "Show name in other languages/hide list" on the function about page (referring to the name of the function)
  2. "Show more languages/hide list" on the function details page (referring to the names of inputs)

These buttons are visible/clickable regardless of is there is anything more to show. We should consider disabling them or just hiding them if clicking them will not change the UI.

Event Timeline

@AAlhazwani-WMF What do you think? It seems a nice low hanging fruit, and maybe an appropriate good first task for volunteers.

In "About" page:

Screenshot from 2022-10-24 20-58-21.png (328×405 px, 16 KB)

Screenshot from 2022-10-24 20-59-53.png (300×357 px, 13 KB)

In "Details" page:

Screenshot from 2022-10-24 20-58-28.png (336×328 px, 20 KB)

Screenshot from 2022-10-24 20-58-35.png (338×337 px, 17 KB)

Jdforrester-WMF renamed this task from The "show more languages" / "Show name in other languages" buttons when useless to Don't show / disable the "show more languages" / "Show name in other languages" buttons when there aren't any to show.Nov 7 2022, 8:00 PM

Change 857050 had a related patch set uploaded (by Dani DW; author: Dani DW):

[mediawiki/extensions/WikiLambda@master] Ensure there is not an error in the FunctionViewerSidebar if a type was not set for an argument.

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

Change 857051 had a related patch set uploaded (by Dani DW; author: Dani DW):

[mediawiki/extensions/WikiLambda@master] Hide the "show more languages" button on the Function Viewer Details tab if there is only one language.

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

Change 857050 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Ensure there is not an error in the FunctionViewerSidebar if a type was not set for an argument.

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

Change 857051 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Hide the "show more languages" button on the Function Viewer Details tab if there is only one language.

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