What's New
After an update, the conversation opener shows a short box: what changed
since this user last looked. A few one-sentence highlights, how many entries
were added, improved and fixed, and a link to the full release notes.
It is a builtin, not a config-listed plugin. It is registered in every
edition. Do not add it toplugins:; configure it with a top-level
whats_new:section.
What a user sees
- Title — the newest release the box covers (
What's new in 0.6.2). When it covers more than one release, a subtitle says how many and since which version, and every line carries its version. - Highlights — up to
max_highlightslines. Across several releases they are taken in turns, each release's most important first, so the newest release cannot crowd out the others. - Counts — entries under Added, Improved and Fixed in every release covered, shown as “N new features, M bugfixes, O other improvements”.
- Release notes → — opens the notes at the newest version's heading.
On screens up to 600px wide only the first two highlights show and the
subtitle is hidden. The box has extra space above it to separate it from the
opener's introductory text. Entries marked Community or Enterprise are
shown only in that edition, for both highlights and counts; unmarked entries
are shared.
The box is not shown in the configuration assistant, like the other opener
widgets.
When it goes away
Each user's state is kept on the server, in their plugin settings, so every
device agrees:
- Dismissed (×) or Release notes opened — the version is recorded as seen. The next box covers only releases newer than it.
- Shown on
impressionsopeners (3 by default) — it retires by itself for that version. A new conversation is a new opener; a locale change is not.
A user with no record
Every user, the day this plugin first runs, and every new user since. They
are compared against the newest X.Y.0 release older than the running one:
| Running | Compared against | Shows |
|---|---|---|
| 0.6.2 | 0.6.0 | 0.6.1, 0.6.2 — the patch line so far |
| 0.7.0 | 0.6.0 | 0.6.x patches and 0.7.0 — the cycle that just closed |
| 1.0.0 | the last minor before it | that minor's patches and 1.0.0 |
It is taken from the published notes rather than computed, so a skipped minor
or a major bump needs no special case.
Where the content comes from
The release-note fragments in doc/release-notes/<locale>/, shipped inside
every build. A fragment's ### Highlights (### Kiemelések in Hungarian)
group is what the box shows; the release check requires one. A fragment
without it — notes older than this plugin — contributes the bold lead-ins of
its first three Added entries instead. See doc/release-notes/README.md.
A development build counts as the version it was built from
(0.6.2-dev+3.gabc → 0.6.2).
Configuration
whats_new:
enabled: true # false: no box, no routes
max_highlights: 5 # lines in the box, 1–20
impressions: 3 # openers before it retires; 0 = until dismissed
Routes
Authenticated, under /ui/plugins/whats_new/:
| Route | |
|---|---|
GET summary?locale=en | {"show": false}, or the box's content for the caller |
POST shown {"version"} | count one opener for that version |
POST seen {"version"} | record the version as seen; never moves backwards |
A reported version must be a real version no newer than the running build.