Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fallback component #1

Open
4 tasks
Syndesi opened this issue Sep 10, 2023 · 0 comments
Open
4 tasks

Add fallback component #1

Syndesi opened this issue Sep 10, 2023 · 0 comments
Milestone

Comments

@Syndesi
Copy link
Member

Syndesi commented Sep 10, 2023

Internal properties

  • Name: The name of the element. Uses the first available property from the following list:
    • data.name
    • data.title
    • id (UUID)
  • Type: The type of the element. It might be translated in the future. If the element is a relation, then the displayed type consists of the start node type, the relations type, the end node type, and the direction of the relation.
  • Color: The optional color of the element, uses the first available property from the following list:
    • data.color
    • (element)-[:HAS_TAG]->(tag:Tag) WHERE tag.color <> null RETURN tag.color LIMIT 1
      • Should multiple tags be considered? What should be the priority?
    • null
  • Icon: Optional SVG icon, returned from the Ember Nexus Web SDK. Uses a fallback icon ({}) if no specific type icon is available.
  • Description: The description of the element. Uses the first available property from the following list:
    • data.description
    • null

The lists and priority of the lists' elements will likely be user-editable.

Component details

Icon

Displays the first letter of the name.

Inline Text

Displays the whole name. If a color is available, it uses this to underline the name.

  • Check that the underline works with linebreaks.

Inline Pill

Displays the whole name and, optionally, the color.

Thumbnail

Displays just the type icon and, optionally, the color.

Card

Description is optional. The name and type might be clipped off. Name and type can display a tooltip with the full content.

  • Should there be an icon displayed, if the element has a binary file attached?

Frameless

Description is optional. Name and type might be clipped off. Name and type can display a tooltip with the full content.

  • Should there be an icon displayed, if the element has a binary file attached?

Sketch

Image

Icon

https://pictogrammers.com/library/mdi/icon/code-braces/

fallback_icon

@Syndesi Syndesi converted this from a draft issue Sep 10, 2023
@Syndesi Syndesi added this to the 0.1.0 milestone Sep 10, 2023
@Syndesi Syndesi moved this to In Progress in Frontend Feature Progress Sep 10, 2023
@Syndesi Syndesi changed the title Add generic element viewer Add generic component Sep 10, 2023
@Syndesi Syndesi changed the title Add generic component Add fallback component Sep 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

1 participant