Open onierstrasz opened 3 years ago
Hi,
Any advance on this issue?
We have been working with GT as a "glueware" between the file system and TiddlyWiki (TW), taking meta data from a sets of files and creating correspondent cards (tiddlers) in TiddlyWiki. It has been part of introductory educative experience to moldable tools (TW and GT) for non-programmers, starting from practical problems. It has been a pretty enjoyable on, but having to clear manually 250 notifications creates pretty visible friction (and doesn't help for those of us with tendinitis tendencies/episodes).
Thanks for the reminder. I'll have a look at this again in January when I have some free time.
This script does it programmatically. May be a better way but works for now:
| badges |
badges := GtWorld allInstances collect: [ :w |
w root
allChildrenBreadthFirstDetect: [ :e | e class = BrTabGroup ]
ifFound: [ :tabGroup |
tabGroup
allChildrenBreadthFirstDetect: [ :e | e class = GtNotificationsBadgeElement ]
ifFound: [ :bdg | bdg ] ] ].
badges do: [ :badge | badge notifications asArray do: #requestRemoval ]
As notification accumulate in Gt windows, the only way to clear them is to remove them one by one. We need an additional button to remove them all.
NB: Alex Bergel is also working on this.
We looked at
GtNotificationsListElement
and related classes, but did not yet figure out how to add a button to clear the notifications.Notes
Error signal
.Alt+Shift+click
(Can inspect the notification element)requestRemoval
Adding this to
GtNotificationsListElement>>#initialize
sort of works, but needs better layout:Alternatively we can send
dismiss
to theGtNotificationDebugSessionElement
, but this might not work for all kinds of notifications.