hypar-io / Elements

The smallest useful BIM.
https://www.hypar.io
MIT License
354 stars 74 forks source link

Add short-hand methods for Info, Warning, and Error #984

Closed ikeough closed 1 year ago

ikeough commented 1 year ago

BACKGROUND: In a conversation about how to show messages in Hypar, we decided to create a ShortMessage property on Message to allow developers to represent an error with a short message, even a single character like an emoji.

DESCRIPTION: This PR adds a ShortMessage property to Message, and adds three static constructors to Message which set the short message for various message types to emojis representing information, warning, and error.

REQUIRED:


This change is Reviewable