DEV: Trigger an app event when a card is shown (PR #14399)

This replaces the unused lastEvent field with an app event trigger.

GitHub