Blame hig/ru/in-app-notifications.page

Packit 1470ea
Packit 1470ea
<page xmlns="http://projectmallard.org/1.0/" xmlns:uix="http://projectmallard.org/experimental/ui/" type="topic" id="in-app-notifications" xml:lang="ru">
Packit 1470ea
Packit 1470ea
  <info>
Packit 1470ea
    <link type="guide" xref="patterns#primary"/>
Packit 1470ea
    <desc>Application event notifications</desc>
Packit 1470ea
    <credit type="author">
Packit 1470ea
      <name>Алан Дэй (Allan Day)</name>
Packit 1470ea
      <email>aday@gnome.org</email>
Packit 1470ea
    </credit>
Packit 1470ea
    <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
Packit 1470ea
  </info>
Packit 1470ea
Packit 1470ea
<title>In-app notifications</title>
Packit 1470ea
Packit 1470ea
<media type="image" mime="image/svg" src="figures/patterns/in-app-notification.svg"/>
Packit 1470ea
Packit 1470ea

In-app notifications are information popups which can be displayed inside an application. They include a label which describes an event that has happened, and can also include a button that allows the user to respond. They are always transient and user dismissable.

Packit 1470ea
Packit 1470ea
<section id="when-to-use">
Packit 1470ea
<title>Когда использовать</title>
Packit 1470ea
Packit 1470ea

In-app notifications are appropriate when you want to inform the user about an event that is relevant to their ongoing use of an application. They are best used to provide immediate feedback. This contrasts with <link xref="notifications">standard notifications</link>, which provide system-wide alerts, and which persist after the notification has been initially displayed.

Packit 1470ea
Packit 1470ea

Allowing the user to undo a destructive action is an example of a good use of in-app notifications: the notification is not needed outside of the application window, and is immediately relevant. The button that allows the user to respond to the event, by pressing .

Packit 1470ea
Packit 1470ea

In-app notifications are not a good solution for communicating ongoing states. <link xref="info-bars">Info bars</link> offer one alternative you can consider.

Packit 1470ea
Packit 1470ea
</section>
Packit 1470ea
Packit 1470ea
<section id="guidelies">
Packit 1470ea
<title>Рекомендации</title>
Packit 1470ea
Packit 1470ea
<list>
Packit 1470ea
<item>

It isn't always necessary to include an action button in an in-app notification: only include one if it is directly related to the event and is generally useful.

</item>
Packit 1470ea
<item>

Don't distract with unnecessary in-app notifications, and be careful not to overuse them: they can be annoying if they pop up frequently.

</item>
Packit 1470ea
<item>

Only one in-app notification can be displayed at a time, and new instances should replace existing ones.

</item>
Packit 1470ea
</list>
Packit 1470ea
Packit 1470ea
</section>
Packit 1470ea
Packit 1470ea
</page>