Skip to content

Commit a86326d

Browse files
rhdh-botgithub-actions[bot]christoph-jerolimov
authored
app-defaults - version:bump to v1.49.3 (#2639)
* v1.49.3 version bump * chore(app-defaults): manual changes req. for the Backstage 1.49 update Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com> * chore(app-defaults): update typescript to resolve tyoe issues Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com> * chore(app-defaults): update api-reports Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com> --------- Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Christoph Jerolimov <jerolimov+git@redhat.com>
1 parent f81b117 commit a86326d

20 files changed

Lines changed: 2383 additions & 2003 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-app-react': patch
3+
---
4+
5+
Backstage version bump to v1.49.3
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
dist
22
dist-types
33
coverage
4+
knip-report.md
5+
report.api.md
6+
report-alpha.api.md
47
.vscode
58
.eslintrc.js

workspaces/app-defaults/app-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ app:
22
title: Scaffolded Backstage App
33
baseUrl: http://localhost:3000
44

5+
# Enable all packages by default, this will discover packages from packages/app/package.json
6+
packages: all
7+
8+
extensions:
9+
# Configure the catalog index page to be the root page, this is normally mounted on /catalog
10+
- page:catalog:
11+
config:
12+
path: /
13+
514
organization:
615
name: My Company
716

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
{ "version": "1.48.0" }
1+
{
2+
"version": "1.49.3"
3+
}

workspaces/app-defaults/examples/entities.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ apiVersion: backstage.io/v1alpha1
1212
kind: Component
1313
metadata:
1414
name: example-website
15+
annotations:
16+
backstage.io/techdocs-ref: dir:./example-docs
1517
spec:
1618
type: website
1719
lifecycle: experimental
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Example TechDocs page
2+
3+
This is an example TechDocs page!
4+
5+
The source of this documentation for the `example-website` component is found in the `examples/example-docs` directory, which is referenced from `examples/entities.yaml`. Typically the `docs` directory would live alongside the `catalog-info.yaml` file of a component instead, but in this case it is separated out to avoid cluttering the examples directory.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
site_name: example-website
2+
docs_dir: docs
3+
plugins:
4+
- techdocs-core

workspaces/app-defaults/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:

workspaces/app-defaults/package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,26 @@
2626
"new": "backstage-cli new --scope @red-hat-developer-hub",
2727
"postinstall": "cd ../../ && yarn install"
2828
},
29-
"workspaces": {
30-
"packages": [
31-
"packages/*",
32-
"plugins/*"
33-
]
34-
},
29+
"workspaces": [
30+
"packages/*",
31+
"plugins/*"
32+
],
3533
"repository": {
3634
"type": "git",
3735
"url": "https://github.com/redhat-developer/rhdh-plugins",
3836
"directory": "workspaces/app-defaults"
3937
},
4038
"devDependencies": {
41-
"@backstage/cli": "^0.35.4",
39+
"@backstage/cli": "^0.36.0",
40+
"@backstage/cli-defaults": "^0.1.0",
4241
"@backstage/e2e-test-utils": "^0.1.2",
43-
"@backstage/repo-tools": "^0.16.4",
42+
"@backstage/repo-tools": "^0.17.0",
4443
"@changesets/cli": "^2.27.1",
4544
"@spotify/prettier-config": "^15.0.0",
4645
"knip": "^5.27.4",
4746
"node-gyp": "^9.0.0",
4847
"prettier": "^2.3.2",
49-
"typescript": "~5.3.0"
48+
"typescript": "~5.8.0"
5049
},
5150
"resolutions": {
5251
"@types/react": "^18",

workspaces/app-defaults/packages/app/e2e-tests/app.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,7 @@ test('App should render the welcome page', async ({ page }) => {
2323
await expect(enterButton).toBeVisible();
2424
await enterButton.click();
2525

26-
await expect(page.getByText('My Company Catalog')).toBeVisible();
26+
const nav = page.getByRole('navigation');
27+
await expect(nav.getByRole('link', { name: 'Catalog' })).toBeVisible();
28+
await expect(nav.getByRole('link', { name: 'APIs' })).toBeVisible();
2729
});

0 commit comments

Comments
 (0)