K-Phoen / backstage-plugin-announcements

Announcements plugin for Backstage
MIT License
52 stars 29 forks source link

feat: integrate with alert-api #173

Open pjungermann opened 1 year ago

pjungermann commented 1 year ago

Integrating the announcements with the alert-api by Backstage (core-plugin-api) would allow to display them at any view. This would not require a "home" page with a provided announcement widget to be used.

chipnesh commented 6 months ago

Agree. For now, in order to display it as shown in the documentation example, I need to place the NewAnnouncementBanner on every single page.

Alternatively, I can place it inside the Root component, but this will alter the page layout and cause it to appear above the header.

<AppRouter>
    <VisitListener/>
    <Root>
        <NewAnnouncementBanner category='public' max={3}/>
        {routes}
    </Root>
</AppRouter>