Page MenuHomePhabricator

DefaultView Widgets: Create a Function Explorer widget for the implementation page
Closed, ResolvedPublic

Description

Description

Function Explorer is a component that provides additional information about a selected function to help the contributor through the experience of creating or editing a function implementation (code or composition)

Desired behavior/Acceptance criteria

  • The function explorer can take an input Function ZID
    • The function zid should be checked for validity (does it exist? is it a function?) as it can be set from the url parameters (E.g. "Special:CreateZObject&zid=Z14&Z14K1=Z99999"
    • If the provided function zid is not found or not a function, initialize the widget empty
  • The function explorer should also have an empty state (no selected function)
  • The function explorer has a static mode (only info) and a searchable mode
  • Function explorer static mode:
    • shown on implementation view page ?? (need @AAlhazwani-WMF input)
    • the function shown is the zid on Z14K1 (Implementation function id)
  • Function searchable mode:
    • shown on implementation edit page ?? (need @AAlhazwani-WMF input)
    • initialized with the function zid on Z14K1 (Implementation function id)
    • lookup field can search and select other functions to aid during implementation creation/edit

Devices and Design (URLs or screenshots)

https://www.figma.com/file/q9ZFXjK0PXqLhLXVaqXuT7/T-Function-explorer?node-id=0%3A1&t=ePR8NpIJnNuhJ9hz-1


Completion checklist

Event Timeline

hello hello! i updated the figma file attached in the task description in order to take into account the following suggestions:

  • function explorer static mode. when viewing an implementation in "read" mode we don't display the function being implemented as a function selector.

CleanShot 2023-04-11 at 19.11.12@2x.png (1×2 px, 148 KB)

  • function explorer searchable mode. when viewing an implementation in "edit source" mode we display the function being implemented as a function selector.

CleanShot 2023-04-11 at 19.13.37@2x.png (1×2 px, 229 KB)

  • function explorer reset button. when editors select a different function from the one being implemented, we enable them to switch back to the original function via a reset button.

CleanShot 2023-04-11 at 19.15.45@2x.png (1×1 px, 152 KB)

Change 909721 had a related patch set uploaded (by AllanJeremy (ThisDot); author: AllanJeremy (ThisDot)):

[mediawiki/extensions/WikiLambda@master] Feat: DefaultView Widgets: Create a Function Explorer widget for the implementation page

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

Change 909721 abandoned by Jforrester:

[mediawiki/extensions/WikiLambda@master] ]Feat: DefaultView Widgets: Create a Function Explorer widget for the implementation page

Reason:

Development has moved to I80e4cc20784595d3207c4fd450246d5a130070ed.

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

Change 913958 had a related patch set uploaded (by Jforrester; author: AllanJeremy (ThisDot)):

[mediawiki/extensions/WikiLambda@master] DefaultView Widgets: Create a Function Explorer widget for the implementation page

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

Change 917348 had a related patch set uploaded (by Jforrester; author: AllanJeremy (ThisDot)):

[mediawiki/extensions/WikiLambda@master] DefaultView Widgets: Create a Function Explorer widget for the implementation page

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

Change 913958 had a related patch set uploaded (by Jforrester; author: AllanJeremy (ThisDot)):

[mediawiki/extensions/WikiLambda@master] DefaultView Widgets: Create a Function Explorer widget for the implementation page

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

Change 917348 abandoned by Jforrester:

[mediawiki/extensions/WikiLambda@master] DefaultView Widgets: Create a Function Explorer widget for the implementation page

Reason:

Folded back into I80e4cc20784595d3207c4fd450246d5a130070ed.

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

Change 913958 had a related patch set uploaded (by Jforrester; author: AllanJeremy (ThisDot)):

[mediawiki/extensions/WikiLambda@master] DefaultView Widgets: Create a Function explorer widget for the implementation page

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

Change 913958 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] DefaultView Widgets: Create a Function explorer widget for the implementation page

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