Stat Banner

No, if you add an entry to manual_value, it will just replace the looked up value with a static one. Maybe naming this field static_value would convey this better?

You can get the all-time count by adding the all-time period selector to the dropdown:

The image displays a Google Docs interface with a title "The source of the stat." The document contains a table with the following headers: Period, Title, and Topics. The table has two rows filled with data, and two blank rows at the bottom. The top row lists "count" as the title and "30 days" as the period, with a corresponding list of topics. The second row lists "last_day" as the title and "Users" as the period, with no corresponding list of topics. The document is partially obscured by a black and white overlay.  (Captioned by AI)

It’s just a simple change in the settings file of the component. I pushed a branch with this here: GitHub - nolosb/discourse-stat-banner at count. However, for a PR it would probably still need some logic to rename that variable on the dropdown?

1 Like