chore: migrate to new backend in local development

additionally allow defining custom sidebar item for dev app page.

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
This commit is contained in:
Heikki Hellgren
2024-03-01 10:27:11 +02:00
parent 794883b10d
commit 9a41a7bfa8
15 changed files with 212 additions and 347 deletions
+7 -2
View File
@@ -16,12 +16,17 @@
import React from 'react';
import { createDevApp } from '@backstage/dev-utils';
import { notificationsPlugin } from '../src/plugin';
import { NotificationsPage } from '../src/components/NotificationsPage';
import { NotificationsSidebarItem } from '../src';
import { rootRouteRef } from '../src/routes';
// TODO: How to sign in here as guest user?
createDevApp()
.registerPlugin(notificationsPlugin)
.addPage({
element: <div />,
title: 'Root Page',
element: <NotificationsPage />,
path: '/notifications',
sideBarItem: <NotificationsSidebarItem />,
routeRef: rootRouteRef,
})
.render();