Discussion: dish characteristics with image

What needs to be remodeled?

Make characteristics a separate type.

export interface SCDishWithoutReferences ...

  /**
   * Characteristics of the dish
   */
  characteristics?: string[];

How is the current model not sufficient?

We (HS-Fulda, JLU Gießen and THM) are currently in development of the dishes-connector (planning phase). Currently our dishes provider provides icons/images additionally to the string description of the characteristics.

Bildschirmfoto_vom_2019-01-21_16-04-43

(or live . Go to the next day or week, if you are visiting the website past 1400.)

It would be nice to provide this feature in the app as well. Since icons are easy to understand, less bulky then text and mostly understandable without any translation. (Obviously the chef-head-symbol doesn't mean that the chef is inside the dish, but the symbols for other main ingredients are clear without any text description.)

Which changes are necessary?

Set SCThing as reference, since it provides all necessary properties (name,image), but this will probably be a problem for IO. It just makes no sense to create a new class for something this specific like SCCharacterictic, maybe something like SCImage would be more appropriate and reusable, but every thing IS technically an image as well, so I don't have a clear suggestion for how to implement this feature with the current possibilities of the model. (It would be easier with something like the Entity-Component-Issue #22 (moved)).

Do the proposed changes impact current use cases?

Not as far as I know.