Skip to content

Commit 641f289

Browse files
authored
Merge pull request #7 from ServerlessOpsIO/update/1.43.1
Update/1.43.1
2 parents 8c25c21 + a2a149f commit 641f289

49 files changed

Lines changed: 9497 additions & 11045 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Featiure Branch
1+
name: Branch
22

33
on:
44
workflow_dispatch:
55
push:
6-
branches:
7-
- feature/*
6+
branches-ignore:
7+
- main
88

99
jobs:
1010
build_infra:

src/.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ logs
77
npm-debug.log*
88
yarn-debug.log*
99
yarn-error.log*
10-
lerna-debug.log*
1110

1211
# Coverage directory generated when running tests with coverage
1312
coverage
@@ -52,3 +51,6 @@ site
5251

5352
# E2E test reports
5453
e2e-test-report/
54+
55+
# Cache
56+
.cache/

src/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ To start the app, run:
66

77
```sh
88
yarn install
9-
yarn dev
9+
yarn start
1010
```

src/backstage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "1.31.1"
2+
"version": "1.43.1"
33
}

src/examples/template/template.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,15 @@ spec:
4848
name: ${{ parameters.name }}
4949

5050
# This step publishes the contents of the working directory to GitHub.
51+
# If you or your organization prefer another default branch name over 'main'
52+
# you can change that here.
5153
- id: publish
5254
name: Publish
5355
action: publish:github
5456
input:
55-
allowedHosts: ['github.com']
5657
description: This is ${{ parameters.name }}
5758
repoUrl: ${{ parameters.repoUrl }}
59+
defaultBranch: 'main'
5860

5961
# The final step is to register our new component in the catalog.
6062
- id: register
@@ -64,6 +66,18 @@ spec:
6466
repoContentsUrl: ${{ steps['publish'].output.repoContentsUrl }}
6567
catalogInfoPath: '/catalog-info.yaml'
6668

69+
# Let's notify the user that the template has completed using the Notification action
70+
- id: notify
71+
name: Notify
72+
action: notification:send
73+
input:
74+
recipients: entity
75+
entityRefs:
76+
- user:default/guest
77+
title: 'Template executed'
78+
info: 'Your template has been executed'
79+
severity: 'normal'
80+
6781
# Outputs are displayed to the user after a successful execution of the template.
6882
output:
6983
links:

src/package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@
33
"version": "1.0.0",
44
"private": true,
55
"engines": {
6-
"node": "lts/iron"
6+
"node": "lts/jod"
77
},
88
"scripts": {
9-
"dev": "NODE_OPTIONS=--no-node-snapshot yarn workspaces foreach -A --include backend --include app --parallel -v -i run start",
10-
"start": "yarn workspace app start",
11-
"start-backend": "yarn workspace backend start",
9+
"start": "backstage-cli repo start",
1210
"build:backend": "yarn workspace backend build",
1311
"build:all": "backstage-cli repo build --all",
1412
"build-image": "yarn workspace backend build-image",
@@ -22,7 +20,7 @@
2220
"lint": "backstage-cli repo lint --since origin/main",
2321
"lint:all": "backstage-cli repo lint",
2422
"prettier:check": "prettier --check .",
25-
"new": "backstage-cli new --scope internal"
23+
"new": "backstage-cli new"
2624
},
2725
"workspaces": {
2826
"packages": [
@@ -31,19 +29,19 @@
3129
]
3230
},
3331
"devDependencies": {
34-
"@backstage/cli": "^0.27.1",
32+
"@backstage/cli": "^0.34.3",
3533
"@backstage/e2e-test-utils": "^0.1.1",
3634
"@playwright/test": "^1.32.3",
3735
"@spotify/prettier-config": "^12.0.0",
3836
"node-gyp": "^10.0.0",
3937
"prettier": "^2.3.2",
40-
"typescript": "~5.4.0"
38+
"typescript": "~5.8.0"
4139
},
4240
"resolutions": {
4341
"@types/react": "^18",
4442
"@types/react-dom": "^18"
4543
},
46-
"prettier": "@spotify/prettier-config",
44+
"prettier": "@backstage/cli/config/prettier-config",
4745
"lint-staged": {
4846
"*.{js,jsx,ts,tsx,mjs,cjs}": [
4947
"eslint --fix",

src/packages/app/package.json

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,33 @@
1414
"lint": "backstage-cli package lint"
1515
},
1616
"dependencies": {
17-
"@backstage/app-defaults": "^1.5.11",
18-
"@backstage/catalog-model": "^1.7.0",
19-
"@backstage/cli": "^0.27.1",
20-
"@backstage/core-app-api": "^1.15.0",
21-
"@backstage/core-components": "^0.15.0",
22-
"@backstage/core-plugin-api": "^1.9.4",
23-
"@backstage/integration-react": "^1.1.31",
24-
"@backstage/plugin-api-docs": "^0.11.9",
25-
"@backstage/plugin-catalog": "^1.23.0",
26-
"@backstage/plugin-catalog-common": "^1.1.0",
27-
"@backstage/plugin-catalog-graph": "^0.4.9",
28-
"@backstage/plugin-catalog-import": "^0.12.3",
29-
"@backstage/plugin-catalog-react": "^1.13.0",
30-
"@backstage/plugin-org": "^0.6.29",
31-
"@backstage/plugin-permission-react": "^0.4.26",
32-
"@backstage/plugin-scaffolder": "^1.25.0",
33-
"@backstage/plugin-scaffolder-react": "^1.14.1",
34-
"@backstage/plugin-search": "^1.4.16",
35-
"@backstage/plugin-search-react": "^1.8.0",
36-
"@backstage/plugin-techdocs": "^1.10.9",
37-
"@backstage/plugin-techdocs-module-addons-contrib": "^1.1.14",
38-
"@backstage/plugin-techdocs-react": "^1.2.8",
39-
"@backstage/plugin-user-settings": "^0.8.12",
40-
"@backstage/theme": "^0.5.7",
17+
"@backstage/app-defaults": "^1.7.0",
18+
"@backstage/catalog-model": "^1.7.5",
19+
"@backstage/cli": "^0.34.3",
20+
"@backstage/core-app-api": "^1.19.0",
21+
"@backstage/core-components": "^0.18.0",
22+
"@backstage/core-plugin-api": "^1.11.0",
23+
"@backstage/integration-react": "^1.2.10",
24+
"@backstage/plugin-api-docs": "^0.12.11",
25+
"@backstage/plugin-catalog": "^1.31.3",
26+
"@backstage/plugin-catalog-common": "^1.1.5",
27+
"@backstage/plugin-catalog-graph": "^0.5.0",
28+
"@backstage/plugin-catalog-import": "^0.13.5",
29+
"@backstage/plugin-catalog-react": "^1.21.0",
30+
"@backstage/plugin-notifications": "^0.5.9",
31+
"@backstage/plugin-org": "^0.6.44",
32+
"@backstage/plugin-permission-react": "^0.4.36",
33+
"@backstage/plugin-scaffolder": "^1.34.1",
34+
"@backstage/plugin-scaffolder-react": "^1.19.1",
35+
"@backstage/plugin-search": "^1.4.30",
36+
"@backstage/plugin-search-react": "^1.9.4",
37+
"@backstage/plugin-signals": "^0.0.23",
38+
"@backstage/plugin-techdocs": "^1.15.0",
39+
"@backstage/plugin-techdocs-module-addons-contrib": "^1.1.28",
40+
"@backstage/plugin-techdocs-react": "^1.3.3",
41+
"@backstage/plugin-user-settings": "^0.8.26",
42+
"@backstage/theme": "^0.6.8",
43+
"@backstage/ui": "^0.7.1",
4144
"@internal/backstage-plugin-scaffolder-entity-pickers": "workspace:^",
4245
"@internal/backstage-plugin-serverlessops-catalog": "workspace:^",
4346
"@material-ui/core": "^4.12.2",
@@ -46,11 +49,10 @@
4649
"react": "^18.0.2",
4750
"react-dom": "^18.0.2",
4851
"react-router": "^6.3.0",
49-
"react-router-dom": "^6.3.0",
50-
"react-use": "^17.2.4"
52+
"react-router-dom": "^6.3.0"
5153
},
5254
"devDependencies": {
53-
"@backstage/test-utils": "^1.6.0",
55+
"@backstage/test-utils": "^1.7.11",
5456
"@playwright/test": "^1.32.3",
5557
"@testing-library/dom": "^9.0.0",
5658
"@testing-library/jest-dom": "^6.0.0",

src/packages/app/src/App.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react';
21
import { render, waitFor } from '@testing-library/react';
32
import App from './App';
43

src/packages/app/src/App.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react';
21
import { Navigate, Route } from 'react-router-dom';
32
import { apiDocsPlugin, ApiExplorerPage } from '@backstage/plugin-api-docs';
43
import {
@@ -36,6 +35,8 @@ import { AppRouter, FlatRoutes } from '@backstage/core-app-api';
3635
import { CatalogGraphPage } from '@backstage/plugin-catalog-graph';
3736
import { RequirePermission } from '@backstage/plugin-permission-react';
3837
import { catalogEntityCreatePermission } from '@backstage/plugin-catalog-common/alpha';
38+
import { NotificationsPage } from '@backstage/plugin-notifications';
39+
import { SignalsDisplay } from '@backstage/plugin-signals';
3940
import { ScaffolderFieldExtensions } from '@backstage/plugin-scaffolder-react';
4041

4142
// Added imports
@@ -170,13 +171,15 @@ const routes = (
170171
</Route>
171172
<Route path="/settings" element={<UserSettingsPage />} />
172173
<Route path="/catalog-graph" element={<CatalogGraphPage />} />
174+
<Route path="/notifications" element={<NotificationsPage />} />
173175
</FlatRoutes>
174176
);
175177

176178
export default app.createRoot(
177179
<>
178180
<AlertDisplay />
179181
<OAuthRequestDialog />
182+
<SignalsDisplay />
180183
<AppRouter>
181184
<Root>{routes}</Root>
182185
</AppRouter>

src/packages/app/src/components/Root/LogoFull.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react';
21
import { makeStyles } from '@material-ui/core';
32

43
const useStyles = makeStyles({

0 commit comments

Comments
 (0)