# Add Loading State Notification and Inline Notifications

**URL:** https://discuss.tryton.org/t/add-loading-state-notification-and-inline-notifications/3232
**Category:** Developer
**Created:** [September 18, 2020, 12:51am UTC](https://discuss.tryton.org/t/add-loading-state-notification-and-inline-notifications/3232 "2020-09-18T00:51:49Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![iehoshia](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/iehoshia/32/243_2.png) [@iehoshia](https://discuss.tryton.org/u/iehoshia)
#### Post date: [September 18, 2020, 12:51am UTC](https://discuss.tryton.org/t/add-loading-state-notification-and-inline-notifications/3232/1 "2020-09-18T00:51:50Z")

</div>

Hi,

I would like to know if tryton can have custom (or native) loading notifications and toast notifications similar to these, any plans to integrate it? There will be usefull when tryton client is idle or busy.

[https://www.patternfly.org/v3/pattern-library/communication/toast-notifications/](https://www.patternfly.org/v3/pattern-library/communication/toast-notifications/)

[https://www.patternfly.org/v3/pattern-library/communication/inline-notifications/](https://www.patternfly.org/v3/pattern-library/communication/inline-notifications/)

[https://www.patternfly.org/v3/pattern-library/communication/loading-state/](https://www.patternfly.org/v3/pattern-library/communication/loading-state/)

Any suggest will be welcome,

Josias.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [September 18, 2020, 7:15am UTC](https://discuss.tryton.org/t/add-loading-state-notification-and-inline-notifications/3232/2 "2020-09-18T07:15:02Z")

</div>

Toast notifications are [Sending notifications — Tryton server](https://docs.tryton.org/projects/server/en/latest/topics/bus.html)  
Inline notifications are raising `UserError`  
Loading state is displayed by the clients: “Processing” label on sao and the watch cursor on tryton.

---

<div class="post-metadata">

### Author: ![iehoshia](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/iehoshia/32/243_2.png) [@iehoshia](https://discuss.tryton.org/u/iehoshia)
#### Post date: [September 20, 2020, 1:51am UTC](https://discuss.tryton.org/t/add-loading-state-notification-and-inline-notifications/3232/3 "2020-09-20T01:51:47Z")

</div>

Thanks for the info,

I need to see carefully to see the Loading notification. IMHO the notification need to be more visible to the user; generally the loading notification is in the center of the screen and a little more bigger, animated is better too.

 ![image](https://discuss-cdn.tryton.org/uploads/default/original/2X/b/b404a224d99c2f753a6c377775759ecba9ef9a37.png)

With notification in client side, if a record saved the notification is showed until I close it.  
I don’t know if is possible to add a timeout to close it automaticly. Automatic close is usefull if have more than 3 open tabs, and need to change but don’t want to close it manually.

 ![image](https://discuss-cdn.tryton.org/uploads/default/original/2X/e/e7893db943c58fe286253d6cd1fd52c3092a6b7c.png)

---

<div class="post-metadata">

### Author: ![Alnus](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/alnus/32/1009_2.png) [@Alnus](https://discuss.tryton.org/u/Alnus)
#### Post date: [September 20, 2020, 2:17am UTC](https://discuss.tryton.org/t/add-loading-state-notification-and-inline-notifications/3232/4 "2020-09-20T02:17:25Z")

</div>

This would help a lot in the experience of the user, i share is proposal @iehoshia 👍

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [September 20, 2020, 8:05am UTC](https://discuss.tryton.org/t/add-loading-state-notification-and-inline-notifications/3232/5 "2020-09-20T08:05:46Z")

</div>

> [@iehoshia](#):
>
> generally the loading notification is in the center of the screen and a little more bigger

I do not agree. Most of similar notification are very small (sometimes it is only an icon).

> [@iehoshia](#):
>
> animated is better too

Indeed even if it is not a real indication of working: [Animate "Processing..." (#9619) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue9619)

> [@iehoshia](#):
>
> if a record saved the notification is showed until I close it.

No until there is a change.

> [@iehoshia](#):
>
> if have more than 3 open tabs

Indeed it will be better if it did not prevent tab navigation: [Avoid infobar to navigate (#9620) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue9620)

---

<div class="post-metadata">

### Author: ![dave](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/d/ee7513/32.png) [@dave](https://discuss.tryton.org/u/dave)
#### Post date: [September 20, 2020, 9:40am UTC](https://discuss.tryton.org/t/add-loading-state-notification-and-inline-notifications/3232/6 "2020-09-20T09:40:24Z")

</div>

> [@iehoshia](#):
>
> IMHO the notification need to be more visible to the user; generally the loading notification is in the center of the screen and a little more bigger,

Something to bear in mind is that even when the `Processing...` notification is visible I don’t think it stops you from interacting with other parts of the client. If it is too big, or invasive then it may cover things that you want to see, or use.

> [@iehoshia](#):
>
> With notification in client side, if a record saved the notification is showed until I close it. I don’t know if is possible to add a timeout to close it automaticly.

I do like the idea of it closing automatically after a timeout, another improvement might be to allow it to be closed by clicking anywhere on it, instead of having to specifically click on the cross.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [September 20, 2020, 12:03pm UTC](https://discuss.tryton.org/t/add-loading-state-notification-and-inline-notifications/3232/7 "2020-09-20T12:03:33Z")

</div>

> [@dave](#):
>
> I do like the idea of it closing automatically after a timeout

I do not like this because:

- timeout always requires configuration because we can not assume the time needed by the user
- the info bar could be display when the user is not in front of the application. So we can not assume he sees it when it will automatically closed.

> [@dave](#):
>
> another improvement might be to allow it to be closed by clicking anywhere on it, instead of having to specifically click on the cross.

Good idea: [Close info bar when clicking anywhere on it (#9621) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue9621)

---

<div class="post-metadata">

### Author: ![iehoshia](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/iehoshia/32/243_2.png) [@iehoshia](https://discuss.tryton.org/u/iehoshia)
#### Post date: [September 20, 2020, 1:29pm UTC](https://discuss.tryton.org/t/add-loading-state-notification-and-inline-notifications/3232/8 "2020-09-20T13:29:21Z")

</div>

> [@ced](#):
>
> I do not agree. Most of similar notification are very small (sometimes it is only an icon).

In these case may can do another way, like AWS do. When an action is called a notification is displayed. If a new action is called , a new notification is added. It can be closed automaticly when the process is finished.

 ![image](https://discuss-cdn.tryton.org/uploads/default/original/2X/2/2dffe00d03f789ecb36f8f05c51c714f1694d17d.png)

> [@dave](#):
>
> Something to bear in mind is that even when the `Processing...` notification is visible I don’t think it stops you from interacting with other parts of the client. If it is too big, or invasive then it may cover things that you want to see, or use.

I see your point, so, may can be do like describe above.

> [@ced](#):
>
> Good idea: [Issue 9621: Close info bar when clicking anywhere on it - Tryton issue tracker](https://bugs.tryton.org/issue9621)

I agree, is a good idea too.
