# Earned_Popup

Most awards happen on the server (a post is saved, a reaction is added) so the browser never hears about them. This class loads a small script that asks `GET clanbite-points/v1/recent-awards` for the member's newest ledger rows and shows each as one of Clanbite's shared popups (`clanbite.toasts`, so position and length are the site-wide setting). The wording comes from the message registry (Settings → Points → Messages).

Everything is filterable: see `clanbite_points_earned_popup_enabled`, `clanbite_points_recent_awards_window`,
`clanbite_points_recent_awards_limit`, `clanbite_points_award_message_vars` and `clanbite_points_recent_awards`, and the
browser filters `clanbite.points.shouldShowEarnedToast` and `clanbite.points.earnedToastPayload`.

## Changelog

| Version | Description |
| --- | --- |
| 1.3.1 | Updated |
| 1.3.0 | Introduced |
