Page MenuHomePhabricator

DefaultView: Decide and add codex icons for the different type selection options in the dropdown field
Closed, ResolvedPublic

Description

Description

The type selection dropdown gives the contributor the option of selecting:

  • Reference
  • Function call
  • Literal (and, in case the type is bound for this key, it will offer this particular type)
  • Argument reference (in case we are inside an implementation composition)

Currently the icons have been arbitrarily assigned, we need to decide what icons match and communicate best and, if they are not part of the codex icon package, add them.


Completion checklist

Event Timeline

here's an update on the icons for the type selection. in the early explorations we used the following icons, driving inspiration from what we currently have on beta.

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

after a first review with the design system team we run an evaluation in order to understand if anything already existing in the codex icon set could fulfill our needs.

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

we thought there was space to provide additional meaning and specificity to the type selector, so we started to explore a couple of options:

  • for literal, we played around the literal text metaphor, and typing/search/select experience
  • for function, we explored "well-know" symbols for function input/description
  • for reference, we started with the link metaphor, then we moved to a more literal reference metaphor, and then by driving inspiration from the transclusion concept from Ted Nelson/Xanadu project we tried a diamond-like shape
  • for arguments, we initially opted for a 1:1 code representation, and then we tried something more around the concept of (function) input/s

image.png (876×1 px, 88 KB)

after having presented these explorations during a design review, we landed on this 'final' selection:

  • literal emphasizes typing (searching, adding, ...) a value yourself
  • functions connect with formulas of spreadsheets which are less jargony than the other options
  • references capture the notion of object which seems good enough with the diamond
  • arguments illustrate the connection of information

image.png (908×1 px, 101 KB)

if we don't have strong concerns i would be happy to start the conversation with the codex team for adding those proposals to the codex icon set!

This is a great outcome, thank you! I really like them all, only the argument one will need a bit adjustment (the arrow makes me think of a reference, and given that the function already introduces the x for the argument I would half expect the x to be picked up again). But I don't want to bikeshed, just add my thoughts. I am happy to sign them off as they are!

Change 893467 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] Replace placeholder icons with final type selector codex icons

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

Change 893467 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Replace placeholder icons with final type selector codex icons

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