Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions workspaces/konflux/.changeset/shy-lilies-sink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@red-hat-developer-hub/backstage-plugin-konflux': minor
---

Added support for the New Frontend System (NFS) with an alpha export, required for RHDH 2.1 compatibility.
3 changes: 2 additions & 1 deletion workspaces/konflux/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
},
"resolutions": {
"@types/react": "^18",
"@types/react-dom": "^18"
"@types/react-dom": "^18",
"@backstage/plugin-kubernetes-react": "^0.5.22"
},
"files": [
"dist"
Expand Down
50 changes: 36 additions & 14 deletions workspaces/konflux/plugins/konflux/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,23 @@
"license": "Apache-2.0",
"main": "src/index.ts",
"types": "src/index.ts",
"exports": {
".": "./src/index.ts",
"./alpha": "./src/alpha.tsx",
"./package.json": "./package.json"
},
"typesVersions": {
"*": {
"alpha": [
"src/alpha.tsx"
],
"package.json": [
"package.json"
]
}
},
"publishConfig": {
"access": "public",
"main": "dist/index.esm.js",
"types": "dist/index.d.ts"
"access": "public"
Comment thread
rrosatti marked this conversation as resolved.
},
"backstage": {
"role": "frontend-plugin",
Expand Down Expand Up @@ -38,12 +51,13 @@
"postpack": "backstage-cli package postpack"
},
"dependencies": {
"@backstage/catalog-model": "^1.7.7",
"@backstage/core-components": "^0.18.8",
"@backstage/core-plugin-api": "^1.12.4",
"@backstage/plugin-catalog-react": "^2.1.1",
"@backstage/plugin-permission-react": "^0.4.41",
"@backstage/theme": "^0.7.2",
"@backstage/catalog-model": "^1.9.0",
Comment thread
rrosatti marked this conversation as resolved.
"@backstage/core-components": "^0.18.11",
"@backstage/core-plugin-api": "^1.12.7",
"@backstage/frontend-plugin-api": "^0.17.2",
"@backstage/plugin-catalog-react": "^3.1.0",
"@backstage/plugin-permission-react": "^0.5.2",
"@backstage/theme": "^0.7.3",
"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "4.0.0-alpha.61",
Expand All @@ -64,10 +78,10 @@
"react-router-dom": "^6.0.0"
},
"devDependencies": {
"@backstage/cli": "^0.36.0",
"@backstage/core-app-api": "^1.19.6",
"@backstage/dev-utils": "^1.1.21",
"@backstage/test-utils": "^1.7.16",
"@backstage/cli": "^0.36.3",
"@backstage/core-app-api": "^1.20.2",
"@backstage/dev-utils": "^1.1.24",
"@backstage/test-utils": "^1.7.19",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.0.0",
Expand All @@ -77,7 +91,15 @@
},
"files": [
"dist",
"dist-scalprum",
"config.d.ts"
],
"configSchema": "config.d.ts"
"configSchema": "config.d.ts",
"scalprum": {
"name": "red-hat-developer-hub.backstage-plugin-konflux",
"exposedModules": {
"PluginRoot": "./src/index.ts",
"Alpha": "./src/alpha.tsx"
}
}
}
271 changes: 271 additions & 0 deletions workspaces/konflux/plugins/konflux/report-alpha.api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,271 @@
## API Report File for "@red-hat-developer-hub/backstage-plugin-konflux"
Comment thread
rrosatti marked this conversation as resolved.

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).

```ts
import { AnyRouteRefParams } from '@backstage/frontend-plugin-api';
import { Entity } from '@backstage/catalog-model';
import { EntityCardType } from '@backstage/plugin-catalog-react/alpha';
import { ExtensionDataRef } from '@backstage/frontend-plugin-api';
import { FilterPredicate } from '@backstage/filter-predicates';
import { JSX as JSX_2 } from 'react';
import { JSXElementConstructor } from 'react';
import { OverridableExtensionDefinition } from '@backstage/frontend-plugin-api';
import { OverridableFrontendPlugin } from '@backstage/frontend-plugin-api';
import { ReactElement } from 'react';
import { RouteRef } from '@backstage/core-plugin-api';
import { RouteRef as RouteRef_2 } from '@backstage/frontend-plugin-api';

// @public (undocumented)
const _default: OverridableFrontendPlugin<
{
root: RouteRef<undefined>;
},
{},
{
'entity-card:konflux/latest-releases': OverridableExtensionDefinition<{
kind: 'entity-card';
name: 'latest-releases';
config: {
filter: FilterPredicate | undefined;
type: 'content' | 'info' | undefined;
};
configInput: {
filter?: FilterPredicate | undefined;
type?: 'content' | 'info' | undefined;
};
output:
| ExtensionDataRef<JSX_2.Element, 'core.reactElement', {}>
| ExtensionDataRef<
(entity: Entity) => boolean,
'catalog.entity-filter-function',
{
optional: true;
}
>
| ExtensionDataRef<
string,
'catalog.entity-filter-expression',
{
optional: true;
}
>
| ExtensionDataRef<
EntityCardType,
'catalog.entity-card-type',
{
optional: true;
}
>;
inputs: {};
params: {
loader: () => Promise<JSX.Element>;
filter?: string | FilterPredicate | ((entity: Entity) => boolean);
type?: EntityCardType;
};
}>;
'entity-card:konflux/status': OverridableExtensionDefinition<{
kind: 'entity-card';
name: 'status';
config: {
filter: FilterPredicate | undefined;
type: 'content' | 'info' | undefined;
};
configInput: {
filter?: FilterPredicate | undefined;
type?: 'content' | 'info' | undefined;
};
output:
| ExtensionDataRef<JSX_2.Element, 'core.reactElement', {}>
| ExtensionDataRef<
(entity: Entity) => boolean,
'catalog.entity-filter-function',
{
optional: true;
}
>
| ExtensionDataRef<
string,
'catalog.entity-filter-expression',
{
optional: true;
}
>
| ExtensionDataRef<
EntityCardType,
'catalog.entity-card-type',
{
optional: true;
}
>;
inputs: {};
params: {
loader: () => Promise<JSX.Element>;
filter?: string | FilterPredicate | ((entity: Entity) => boolean);
type?: EntityCardType;
};
}>;
'entity-content:konflux/ci': OverridableExtensionDefinition<{
kind: 'entity-content';
name: 'ci';
config: {
path: string | undefined;
title: string | undefined;
filter: FilterPredicate | undefined;
group: string | false | undefined;
icon: string | undefined;
};
configInput: {
path?: string | undefined;
title?: string | undefined;
filter?: FilterPredicate | undefined;
group?: string | false | undefined;
icon?: string | undefined;
};
output:
| ExtensionDataRef<JSX_2.Element, 'core.reactElement', {}>
| ExtensionDataRef<string, 'core.routing.path', {}>
| ExtensionDataRef<
RouteRef_2<AnyRouteRefParams>,
'core.routing.ref',
{
optional: true;
}
>
| ExtensionDataRef<
(entity: Entity) => boolean,
'catalog.entity-filter-function',
{
optional: true;
}
>
| ExtensionDataRef<
string,
'catalog.entity-filter-expression',
{
optional: true;
}
>
| ExtensionDataRef<string, 'catalog.entity-content-title', {}>
| ExtensionDataRef<
string,
'catalog.entity-content-group',
{
optional: true;
}
>
| ExtensionDataRef<
string | ReactElement<any, string | JSXElementConstructor<any>>,
'catalog.entity-content-icon',
{
optional: true;
}
>;
inputs: {};
params: {
defaultPath?: [Error: `Use the 'path' param instead`];
path: string;
defaultTitle?: [Error: `Use the 'title' param instead`];
title: string;
defaultGroup?: [Error: `Use the 'group' param instead`];
group?:
| (
| 'overview'
| 'documentation'
| 'development'
| 'deployment'
| 'operation'
| 'observability'
)
| (string & {});
icon?: string | ReactElement;
loader: () => Promise<JSX.Element>;
routeRef?: RouteRef_2;
filter?: string | FilterPredicate | ((entity: Entity) => boolean);
};
}>;
'entity-content:konflux/overview': OverridableExtensionDefinition<{
kind: 'entity-content';
name: 'overview';
config: {
path: string | undefined;
title: string | undefined;
filter: FilterPredicate | undefined;
group: string | false | undefined;
icon: string | undefined;
};
configInput: {
path?: string | undefined;
title?: string | undefined;
filter?: FilterPredicate | undefined;
group?: string | false | undefined;
icon?: string | undefined;
};
output:
| ExtensionDataRef<JSX_2.Element, 'core.reactElement', {}>
| ExtensionDataRef<string, 'core.routing.path', {}>
| ExtensionDataRef<
RouteRef_2<AnyRouteRefParams>,
'core.routing.ref',
{
optional: true;
}
>
| ExtensionDataRef<
(entity: Entity) => boolean,
'catalog.entity-filter-function',
{
optional: true;
}
>
| ExtensionDataRef<
string,
'catalog.entity-filter-expression',
{
optional: true;
}
>
| ExtensionDataRef<string, 'catalog.entity-content-title', {}>
| ExtensionDataRef<
string,
'catalog.entity-content-group',
{
optional: true;
}
>
| ExtensionDataRef<
string | ReactElement<any, string | JSXElementConstructor<any>>,
'catalog.entity-content-icon',
{
optional: true;
}
>;
inputs: {};
params: {
defaultPath?: [Error: `Use the 'path' param instead`];
path: string;
defaultTitle?: [Error: `Use the 'title' param instead`];
title: string;
defaultGroup?: [Error: `Use the 'group' param instead`];
group?:
| (
| 'overview'
| 'documentation'
| 'development'
| 'deployment'
| 'operation'
| 'observability'
)
| (string & {});
icon?: string | ReactElement;
loader: () => Promise<JSX.Element>;
routeRef?: RouteRef_2;
filter?: string | FilterPredicate | ((entity: Entity) => boolean);
};
}>;
}
>;
export default _default;

// (No @packageDocumentation comment for this package)
```
Loading
Loading