A 'peek' already provides a preview of an item -- it just isn't used for action buttons. 'Peeking' into the name and description of an icon would be a fairly straightforward extension of the idea.
It just... isn't used that way.
Well, anything that isn't a text/content editor (or a file system manager, which I had forgotten to mention), so basically the vast majority of computer usage. Settings in applications, navigation state of applications, state of the OS/window manager itself (I'm not aware of a desktop environment where moving or closing a window or application supports an undo feature), etc. Web browsers and most file managers do support back and forward navigation, if you want to count that as "undo."
The comment I was initially replying to talked about being afraid to press buttons in modern UIs because of the lack of undo. My claim is that, except for buttons that change formatting in text/content editors or buttons that make changes in some file system managers, undo functionality has really never existed to my knowledge.
Not in practice, as this feature is universally broken by modern web developers, making it totally unreliable.
You have a good point about undo - it was universally a feature for reverting operations on edited data, not on application state itself. But then again, it was compensated by buttons having reliable tooltips, and most options available in textual menus.
Firefox's tab history seems quite deep, I can CTRL-SHIFT-T many times.
iPhone implemented shake to undo back with iPhone 3.0
https://en.wikipedia.org/wiki/Undo
http://osxdaily.com/2009/08/21/undo-button-iphone-shaking-mo...
Of course you can Undo something like Archiving a message. That's the Mac way, since 1984.
But after a decade of using gmail, it's not even something I would think to do.
What I am less confident of is what happens when that notification goes away.
In the real world we shakes things to mix them up, not to revert to a previous state i.e. shaking increases entropy.
I wonder who at Apple decided otherwise and why. Perhaps someone with a doctorate in cosmology who is fighting against heat-death.
If I'm lucky, there will be a limited-time Undo button after doing the action (GMail has this on some actions but not others!), but if I hesitate too long or accidentally click on anything but it, it goes away permanently. I'm sure I've lost some important email to the depth of time because of a few fatfinger mistaps.