mirror of
https://github.com/discourse/discourse.git
synced 2025-07-14 00:40:39 +08:00

This consolidates various empty states to use a single `EmptyState` component. I've also added a new state when there are no pending invites. I've moved the SVGs to stand-alone components in a `components/svg/` directory. I believe these need to be embedded (rather than separate `.svg` assets) because we're using color variables within. Most of the `EmptyState` component is optional so it should be flexible. An optional tip block is used for when we may need to utilize an action instead of a link (as invites do). The invite tip includes a prefix and suffix so translators can adjust as needed for their locale. The existing empty states should only change slightly... New  Unread  Chat channels  Plus the new invite state:  These simpler empty states are also using the component now, it will now be easy to enhance these with illustrations in the future as well.  