MetaCell / MetaCell/PsyNeuLinkViewSource

UI for Compositions Sidebar

Offen
#45 1 Kommentar 0 Reaktionen 2 zugewiesene Personen Auf GitHub ansehen

@emekauja arbeitet bereits daran.

Seit 07.10.2022.

Vorherrschende Sprache
JavaScript
Sterne
1
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Current implementation

![scrnli_07_10_2022_12-12-59.png](https://images.zenhubusercontent.com/5b0293e84b5806bc2bd3f170/53582a6f-f92b-4570-b207-127dbe539f9e)

New mockups

![scrnli_07_10_2022_12-09-56.png](https://images.zenhubusercontent.com/5b0293e84b5806bc2bd3f170/2b4585f6-4963-455d-b366-e7771bf46ccd)

Actions required:

- re-style the sidebar as per latest mockups attached.
- rename 'layers' to 'Model Hierarchy'.
- the component below 'Model Hierarchy' is a tree, so we need to be able to expand and compress tree's leaf that have children.
- on left click the item should be selected.
- on right click it should open the floating panel as per screenshot attached.
- the component needs a call back onSelect so that when a node of the tree is selected that id is returned to the callback linked.
- the component needs a call back setSelected that accept a string, if string match the id of one of the tree nodes then that node should be selected.

feel free to generate some mock data respecting this specification

{
id: string - unique key for the element
label: string - it's what displayed in the tree
tooltip: string - if given, then on hover we should display this label.
type: enum - it can be "MECHANISM / PROJECTION / COMPOSITION
}

The type enum can be linked to the icon if you would prefer that, please in case define that in the constant.js file in the root of the project.

Note that the floating panel should be available only for COMPOSITION type nodes.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.