Feedback on the new page banner module

Thank you for adding the new page banner module!

We have several use cases for this module; however, we have concerns regarding user experience. When a Forge app has a page banner in its manifest, it’s rendered on all pages. This means that the iframe with the app code must be loaded first before the app can determine whether the banner should be displayed or not.

While the app code is loading, Confluence shows a large loading spinner. This can cause a significant layout shift, especially if more than one Forge app with a page banner is installed:

Display conditions could partially solve the issue. However, in our case, we need to implement our own business logic to determine whether the banner should be displayed or not.

Since page banners are not primary UI elements, I think that no loading spinner should be shown at all. This would mean that the banner would only affect the UI when content is actually being rendered.

Broadly the loading spinner for Forge apps is very poor UX.

Because they’re using AWS Lambda, every Forge invocation suffers from the cold start problem. So you could have an app that does nothing but return a static line of text and you’ll still see that 90s-era loading spinner for a few seconds.

Rendering needs an overhaul across the board.

Hey @klaussner!
Thanks for this feedback, my team will have a look into this now!
Vicky

Thank you, @VickyHu!

I found another example. Some tab bars in Confluence navigate to a different URL, causing the page banners to reload:

Page banner layout shift

Hey @klaussner!
We’ve released a fix for this issue and it’s currently rolling out.
Let me know if any other issues arise!

Thanks a lot, @VickyHu! It works much better now, but I’m afraid the issue is still not completely resolved. Even when an app doesn’t render anything in the page banner, Confluence briefly shows a large empty element. This causes flickering during page loads and navigation.

In this video, slowed down 10x to make the issue more visible, I’m clicking on links in our app. Shortly after navigating, the empty page banner pushes the entire app down by 150 pixels for a few milliseconds: https://youtu.be/UZN8t20BFo8

Hi @VickyHu, is a fix planned for this issue or is there a ticket I can follow? The shifting layout makes the page banner unusable for us at the moment.

@klaussner We are also looking to display the page banner based on our own business logic. Is this possible or can we only use display conditions for this at the moment?

Another lifecycle issue, kind of the opposite of the tab-navigation reload mentioned above: in one case the banner is not remounted when it should be.

We show a UI Kit page banner (confluence:pageBanner, render: native) and open or close it at runtime (view.open() / view.close()) depending on the page.

Steps:

  1. Open a space overview / space homepage (/wiki/spaces/KEY/overview?homepageId=…). Our banner mounts and opens.
  2. Navigate to any Forge app page in the same space (/wiki/spaces/KEY/apps/…).

Expected: the banner is remounted (or gets a new context), like when navigating from a regular page, so the app can decide to close it.

Actual: the existing banner instance stays mounted and visible on the app page. It isn’t remounted, and useProductContext() still returns the overview location. Calling view.getContext() again does return the new location, but nothing tells the extension that it changed.

Both screens report the same context (content.type: "space", same content.id), so we suspect the remount is keyed on the content, not on the location. Navigating from a regular page (content.type: "page") to the same app page does remount the banner as expected.

Is this intended? If so, is there an event or a recommended way for a page banner to find out about navigation, other than polling view.getContext()? For now we’ve stopped showing our banner on the space overview, which our customers will miss.