Add a dismissible release banner to your site
Show your newest changelog entry on every page and handle the case where nothing is published.
Free for one project and 100 votes. Paid plans start with a 14 day trial, no card.
What it shows
The banner holds a New chip, the release name, the first 120 characters of its notes as plain text and the publish date, then a Read more link.
The newest published release, in one row.
A draft never appears, because only published releases count.
Publish a release in the changelog and the banner shows it the next time a page loads. Nothing needs editing on your site. Formatting in the notes is stripped, and a longer note is cut at a word near the 120 character mark and ends with three dots. So the row stays on one line on a wide screen and wraps on a narrow one.
The Read more link opens that release on your public changelog, in the whole browser window and not inside the frame. It carries the release name in its address, so renaming a release changes where the link points.
The frame
The banner is a page of its own, so it goes into a page as an iframe. Start the frame at no height and let the banner tell the page how tall it needs to be.
Add an iframe that starts at zero height.
Any site may frame it, so no allowlist stands in the way.
The page posts a message named votefirst-release-banner-height to its parent when it loads and whenever the row changes size, for instance when a narrow screen makes the summary wrap. The message carries the height and the width in pixels. A listener on your page sets the frame's height from it.
Starting at zero is the safe choice for another reason. If the board has no published release, the page has no banner to measure, and the message says the height is zero, so the frame takes no room at all.
<iframe id="vf-banner" title="Latest release"
src="https://app.votefirst.app/en/public/release_banner/your-board"
style="display:block;width:100%;height:0;border:0"></iframe>
<script>
var frame = document.getElementById('vf-banner');
window.addEventListener('message', function (event) {
var data = event.data || {};
if (event.source === frame.contentWindow && data.type === 'votefirst-release-banner-height') {
frame.style.height = data.height + 'px';
}
});
</script>A dismiss button
The banner has no close button, so the button lives in your own page and hides the frame.
Close it on your side and remember the choice.
Store the choice for a week and the banner returns when it has something to say.
A button that sits over the right edge of the frame is enough. Clicking it hides the frame and writes a time in the browser's local storage. On later visits, the page checks that time before it shows the frame.
The banner has no way to tell your page which release it is showing, so a time based memory suits it better than a per release one. A week is long enough that a visitor does not meet the same banner on every page, and short enough that the next release is seen.
function dismissBanner() {
frame.style.display = 'none';
try {
localStorage.setItem('vf-banner-until', String(Date.now() + 7 * 864e5));
} catch (e) {}
}
try {
if (Date.now() < Number(localStorage.getItem('vf-banner-until') || 0)) {
frame.style.display = 'none';
}
} catch (e) {}Matching your site
The banner draws itself with your board's colors, font and corner radius. Add theme=light or theme=dark to the address to match a page.
Match one page without touching the board.
Leave the parameter out and the board's default mode is used.
A site with a dark footer may want a dark banner above a light page. Two frames with different values do that, and a site that follows a visitor's system setting can switch the address on load.
Colors and type can be set for a single frame as well. The address accepts bg, text-color, text-secondary, accent-color, card-bg, border-color, font-family and border-radius, so one page can wear a different accent from the board. Encode a hash sign as %23 in a color. Set the board's own look in the dashboard first, and reach for the parameters only where one page needs to differ.
In an app
An app that shows web content can load the banner page in a small web view at the top of a screen and listen for the same message.
A web view takes the same address.
For native screens, in app messages are the better fit.
The message goes to the page that holds the frame, so a web view needs a bridge from JavaScript to the app for the height. A frame inside a web page is simpler, and a native app is better served by the messages feature, which draws in native views.
If you add a sandbox attribute to the frame, include allow-scripts so the page can send its size, and allow-top-navigation-by-user-activation so the Read more link can open the full page.
When it is quiet
No published release means no banner. A board that is offline serves no banner either, and that happens when a trial ends and no plan is chosen.
Know the cases where nothing shows.
The frame stays at zero height unless a banner reports a size.
That is why the zero start matters. A frame whose page fails to load never sends a size, so it stays hidden and your page carries no empty box. The banner is available on every plan, Free included, so only an offline board takes it away.
It shows one release, the latest, and cannot show an older one. For the history, link to your public changelog from the footer.
What a release banner gives a site
An announcement with no edit
Publish in the changelog and the site updates itself.
A frame that fits
The size message keeps the row exactly as tall as it needs.
A close button your visitors expect
Your own button hides it and remembers for a week.
Add the banner in four steps
Most sites finish in one sitting.
Publish a release
A draft does not show, so publish the one you want to announce.
Add the frame
Paste the iframe with a height of zero and your board's address.
Add the listener
Set the frame's height from the size message.
Add the button
Hide the frame and store the time in local storage.
Choosing where the banner sits
Put the banner above the header on pages people reach from search, and leave it off checkout and sign in pages, where every extra row costs attention.
Start the frame at zero height so the page does not jump, then size it when the frame sends its message.
Remembering a closed banner
Since the frame has no close button, your page owns that part. Store the entry's id when someone closes the banner, and show it again only when a newer release carries a different id.
What to know before you add it
- It shows one release, the newest, and has no close button.
- The summary is plain text cut at 120 characters.
- It is a frame and not a script tag, so size it from the message.
- A board that is offline serves no banner.
Release banner questions
Which release does the banner show?
The most recently published one. It cannot show an older release.
Does it show a draft?
No. Only published releases count.
Can visitors close the banner?
Not from the banner itself. It has no close button, so a button on your own page hides the frame.
How long is the summary?
Up to 120 characters of the notes as plain text, cut near a word and ended with three dots.
Where does the Read more link go?
To that release on your public changelog, opened in the whole browser window.
What if no release is published?
The page sends a height of zero and the frame stays closed.
Can the banner match dark mode?
Yes. Add theme=dark or theme=light to the address, or leave it out for the board's default.
Does it need a paid plan?
No. The banner is on every plan, Free included, as long as the board is online.
What does a paid plan cost?
Paid plans start at $9/mo for Lite, and both Lite and Pro open with a 14 day trial that takes no card.
More ways to add a board
More on announcing what you ship.
The release banner
What the banner shows and how it is styled.
Announce a new feature
Tell the people who asked for it.
How to write a changelog
Notes that a banner can summarize.
App Store release notes
What to write in What's New.
Show your changelog on your own website
Draw your releases on your own page with one call.
Announce your newest release
The banner is on every plan, Free included, and a paid trial of 14 days needs no card. Publish a release and see it appear.