Page MenuHomePhabricator

Create a design for having short descriptions on function pages
Closed, ResolvedPublic

Description

After the rollout of the about widget (also known as label box) every Wikifunctions object can feature an object description. This is the case for all objects (types, implementations, testers, …) except functions.

The following proposal suggest a solution for providing and displaying the object descriptions on functions pages too.

On create, and or edit mode we will add a new “Short descriptions” input filed right below the “Name” field. If possible we can reuse the component that we currently use on the about widget, since it comes with a character counter. The input label for the time being is the same as the one being used in the about widget.

image.png (1×2 px, 199 KB)

In view (or read) mode we can display the description in the same location as the the existing placeholder text that is available in the about tab (“ This is where the summary of the function's description will go…”).

image.png (1×2 px, 403 KB)

Every now and then we’ve been talking about possible solution to merge the “About” and “Details” tab on the function view page. While working on this task, we noticed that we have an opportunity to do just that while also reusing existing components such the the about widget, the function explorer widget, and the upcoming function evaluator widget.

If possible, we would suggest to opt for the following approach while addressing this task. We can display the existing information:

  • function name, description, aliases (in multiple languages) via the about widget
  • function input type and label, and output type via the function explorer widget
  • function evaluatore via the upcoming function evaluator widget
  • create function implementation/tester links available via a dedicated button right above the respective tables

image.png (1×1 px, 222 KB)

Link to Figma file https://www.figma.com/file/adHQ474vMQmfTm7KaO6v4w/T303229-Function-description?type=design&node-id=0%3A1&t=hkiPiyUMyXdX31tu-1

Related Objects

StatusSubtypeAssignedTask
ResolvedNone
OpenBUG REPORTNone
OpenNone
ResolvedBTullis
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
Resolvedcmassaro
Resolvedcmassaro
ResolvedJdforrester-WMF
Resolvedcmassaro
Resolvedcmassaro
ResolvedDVrandecic
Resolvedgengh
ResolvedDVrandecic
ResolvedDVrandecic
Resolvedgengh
ResolvedJdforrester-WMF
Resolvedgengh
Resolvedgengh
Resolvedgengh
Resolvedgengh
Resolvedgengh
Resolvedgengh
Resolvedgengh
Resolvedgengh
Resolvedgengh
Resolvedgengh
Resolvedgengh
ResolvedDVrandecic
Resolvedmaryyang
Resolvedcmassaro
Resolvedori
Resolvedcmassaro
Resolvedcmassaro
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
Resolvedori
ResolvedNone
Resolvedcmassaro
Resolvedcmassaro
Resolvedcmassaro
Resolvedcmassaro
ResolvedDMartin-WMF
ResolvedDMartin-WMF
DuplicateNone
ResolvedDMartin-WMF
Resolvedcmassaro
Resolvedcmassaro
ResolvedBUG REPORT AdesojiThisDot
ResolvedJdforrester-WMF
ResolvedAAlhazwani-WMF
ResolvedDMartin-WMF
ResolvedDMartin-WMF
ResolvedDMartin-WMF
ResolvedDMartin-WMF
Resolvedaishwaryavardhana
ResolvedDMartin-WMF
ResolvedDMartin-WMF
ResolvedDMartin-WMF
ResolvedJdforrester-WMF
ResolvedDMartin-WMF
DeclinedDVrandecic
ResolvedJdforrester-WMF
ResolvedDMartin-WMF
ResolvedDMartin-WMF
ResolvedDMartin-WMF
ResolvedDMartin-WMF
ResolvedDMartin-WMF
ResolvedDMartin-WMF
ResolvedDVrandecic
ResolvedBUG REPORTTeleosteen
ResolvedBUG REPORT AdesojiThisDot
Resolved JKieserman
Resolved SWoodruff-WMF
Resolved JKieserman
Resolved JKieserman
Resolved JKieserman
InvalidNone
ResolvedDdwaal
ResolvedDdwaal
ResolvedDdwaal
ResolvedDdwaal
InvalidDdwaal
ResolvedDdwaal
InvalidDdwaal
Resolvedgengh
Resolvedallanjeremy.thisdot
Resolvedgengh
ResolvedBUG REPORTgengh
ResolvedDVrandecic
ResolvedJdforrester-WMF
ResolvedJdforrester-WMF
ResolvedSDunlap
ResolvedTeleosteen
ResolvedTeleosteen
ResolvedDVrandecic
ResolvedDVrandecic
ResolvedDdwaal
ResolvedDdwaal
ResolvedNik.xyz.in
ResolvedDVrandecic
ResolvedDVrandecic
Resolved AdesojiThisDot
ResolvedDdwaal
ResolvedAAlhazwani-WMF
ResolvedNone
Resolvedaishwaryavardhana
Resolvedaishwaryavardhana
Invalidaishwaryavardhana
Declined SWoodruff-WMF
Declined SWoodruff-WMF
Resolvedaishwaryavardhana
Resolved AdesojiThisDot
Declined AdesojiThisDot
ResolvedSimoneThisDot
Resolved JKieserman
Resolved AdesojiThisDot
ResolvedSimoneThisDot
Resolved AdesojiThisDot
Resolved JKieserman
Resolved JKieserman
Resolved AdesojiThisDot
Resolvedgengh
ResolvedSimoneThisDot
Resolvedaishwaryavardhana
ResolvedSimoneThisDot
Resolvedaishwaryavardhana
Resolvedaishwaryavardhana
Resolvedaishwaryavardhana
Resolvedaishwaryavardhana
Resolvedaishwaryavardhana
ResolvedNone
Resolvedaishwaryavardhana
Resolvedaishwaryavardhana
Resolvedaishwaryavardhana
Resolvedaishwaryavardhana
Resolved SWoodruff-WMF
ResolvedAAlhazwani-WMF
ResolvedAAlhazwani-WMF
ResolvedSimoneThisDot
DuplicateNone
ResolvedDVrandecic
ResolvedDVrandecic
ResolvedDVrandecic
Resolvedgengh
ResolvedNik.xyz.in
ResolvedDVrandecic
InvalidNone
ResolvedNik.xyz.in
ResolvedNik.xyz.in
ResolvedDVrandecic
ResolvedDVrandecic
ResolvedDdwaal
ResolvedDdwaal
ResolvedSDunlap
ResolvedNik.xyz.in
ResolvedNik.xyz.in
InvalidNone
Resolved CCoxwell-WMF
Resolved CCoxwell-WMF
ResolvedAAlhazwani-WMF

Event Timeline

Jdforrester-WMF renamed this task from Documentation on function page to Create a design for having documentation on function pages.Mar 8 2022, 7:55 PM
Jdforrester-WMF subscribed.

This is a make-a-design task not an implement-a-design task.

AAlhazwani-WMF removed aishwaryavardhana as the assignee of this task.
Jdforrester-WMF renamed this task from Create a design for having documentation on function pages to Create a design for having short descriptions on function pages.Jun 5 2023, 8:06 PM
Jdforrester-WMF reopened this task as Open.
Jdforrester-WMF updated the task description. (Show Details)

Re-purposing.

Just one question: the function evaluation widget is in a very non-prominent spot in the last design. Can we increase its prominence? Either by putting it at the top or having it in the right-hand column (if function definitions have a right hand column).

Everything else: approved

Change 934378 had a related patch set uploaded (by Ccoxwell; author: Ccoxwell):

[mediawiki/extensions/WikiLambda@master] [WIP] Function View Description

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