Page MenuHomePhabricator

DefaultView: Create ZKey component
Open, Needs TriagePublic

Description

Description

A ZKey/Z3 component is generally used inside a ZType/Z4 as items of a Typed List under the key Z4K2.
However, a ZKey can perfectly appear independently to ZType (although never as root).

Desired behavior/Acceptance criteria

  • It shows minimum necessary information to identify the key of a given type: This is mostly useful when a contributor writes a code implementation for a given function and needs to access properties/keys of a given type.
    • Type of the key value
    • A human-readable label that identifies the key
    • The key ID (ZnKm) must be visible but not editable
  • It provides additional useful features for a user that's writing a function:
    • The key ID (ZnKm) can be copied to the clipboard when clicking on it
    • The UI should let the contributor know that it's been copied to the clickboard
  • Similarly to function call, the key in its collapsed mode can be simply view-mode, and allow editing only when expanding and falling back into ZObjectKeyValueSet

Devices and Design (URLs or screenshots)

https://www.figma.com/file/9pIq5BQjGx3rbMMS07Y2Kf/T333372-Key-component?type=design&node-id=173-13104&t=QpTRNXatZa32PEGY-0


Completion checklist

Details

Event Timeline

Change 904804 had a related patch set uploaded (by Jkieserman; author: Jkieserman):

[mediawiki/extensions/WikiLambda@master] new ZKey component for default view

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

Change 904804 abandoned by Jkieserman:

[mediawiki/extensions/WikiLambda@master] new ZKey component for default view

Reason:

pending new designs

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

gengh renamed this task from DefaultView: Create ZKey Component for the DefaultView to DefaultView: Create ZKey component.May 22 2023, 10:45 AM
gengh updated the task description. (Show Details)