From 7cd15e7c90141a7990e8f0bd5f354d2a7d80be80 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Tue, 17 Mar 2026 10:32:27 +0100 Subject: [PATCH] create-app: fix next-app template formatting Align the next-app template output with the scaffolded app Prettier config so the default app E2E checks pass. Signed-off-by: Patrik Oldsberg Made-with: Cursor --- .../create-app/templates/next-app/app-config.yaml.hbs | 1 - .../next-app/examples/template/template.yaml | 2 +- .../next-app/packages/app/src/modules/nav/Sidebar.tsx | 11 +++++------ 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/packages/create-app/templates/next-app/app-config.yaml.hbs b/packages/create-app/templates/next-app/app-config.yaml.hbs index 67917fd193..c8814a9e96 100644 --- a/packages/create-app/templates/next-app/app-config.yaml.hbs +++ b/packages/create-app/templates/next-app/app-config.yaml.hbs @@ -17,7 +17,6 @@ app: config: path: / - organization: name: My Company diff --git a/packages/create-app/templates/next-app/examples/template/template.yaml b/packages/create-app/templates/next-app/examples/template/template.yaml index 2a20bd45ed..efb33be866 100644 --- a/packages/create-app/templates/next-app/examples/template/template.yaml +++ b/packages/create-app/templates/next-app/examples/template/template.yaml @@ -65,7 +65,7 @@ spec: input: repoContentsUrl: ${{ steps['publish'].output.repoContentsUrl }} catalogInfoPath: '/catalog-info.yaml' - + # Let's notify the user that the template has completed using the Notification action - id: notify name: Notify diff --git a/packages/create-app/templates/next-app/packages/app/src/modules/nav/Sidebar.tsx b/packages/create-app/templates/next-app/packages/app/src/modules/nav/Sidebar.tsx index d436252edf..8614f6fa0c 100644 --- a/packages/create-app/templates/next-app/packages/app/src/modules/nav/Sidebar.tsx +++ b/packages/create-app/templates/next-app/packages/app/src/modules/nav/Sidebar.tsx @@ -12,18 +12,17 @@ import { SidebarLogo } from './SidebarLogo'; import MenuIcon from '@material-ui/icons/Menu'; import SearchIcon from '@material-ui/icons/Search'; import { SidebarSearchModal } from '@backstage/plugin-search'; -import { UserSettingsSignInAvatar, Settings as SidebarSettings } from '@backstage/plugin-user-settings'; +import { + UserSettingsSignInAvatar, + Settings as SidebarSettings, +} from '@backstage/plugin-user-settings'; import { NotificationsSidebarItem } from '@backstage/plugin-notifications'; export const SidebarContent = NavContentBlueprint.make({ params: { component: ({ navItems }) => { const nav = navItems.withComponent(item => ( - item.icon} - to={item.href} - text={item.title} - /> + item.icon} to={item.href} text={item.title} /> )); return compatWrapper(