Description
TypeToString and ZObjectToString show nearly identical outputs: an object represented as a string with links to the relevant pages.
- ZObjectToString: used to represent parts of the main ZObject in the page, which was stored in a flat table, so worked with rowIds and zobject.js module getters.
- Used to represent function calls in the collapsed Function Call component
- Used to represent input and output types from the main ZObject in the About widget
- Go to https://www.wikifunctions.org/wiki/Z10000 and observe the input and output type links in the About widget
- TypeToString: was used on function types, and the input was the argument types stored in the library.js module (which was pure JSON form)
- Only used in the Function Explorer component
- See https://www.wikifunctions.org/w/index.php?title=Special:CreateObject&uselang=en&zid=Z14&Z14K1=Z10000 and scroll down to the Function Explorer widget
Currently, ZObjectToString receives as a property the whole Object to represent as a string, which means that this component could also be used instead of the TypeToString object in the FunctionExplorer widget.
NOTE: the only difference is that, according to the original Function Explorer designs, the links are black instead of blue.
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist
