Skip to content

Commit 5ad094e

Browse files
authored
RHDHPAI-493: New Developer Sandbox RHDH Internal Plugin (#409)
* added sandbox-plugin Signed-off-by: Lucifergene <47265560+Lucifergene@users.noreply.github.com> * addressed review comments Signed-off-by: Lucifergene <47265560+Lucifergene@users.noreply.github.com> * added packages directory for backstage verification Signed-off-by: Lucifergene <47265560+Lucifergene@users.noreply.github.com> * connected to the sandbox APIs Signed-off-by: Lucifergene <47265560+Lucifergene@users.noreply.github.com> * refactored and fixed review comments Signed-off-by: Lucifergene <47265560+Lucifergene@users.noreply.github.com> * knip reports Signed-off-by: Lucifergene <47265560+Lucifergene@users.noreply.github.com> * contact link added Signed-off-by: Lucifergene <47265560+Lucifergene@users.noreply.github.com> * updated the images to svg Signed-off-by: Lucifergene <47265560+Lucifergene@users.noreply.github.com> * sonarqube fixes Signed-off-by: Lucifergene <47265560+Lucifergene@users.noreply.github.com> * gh ci fixes Signed-off-by: Lucifergene <47265560+Lucifergene@users.noreply.github.com> * api report fix Signed-off-by: Lucifergene <47265560+Lucifergene@users.noreply.github.com> * converted logos to svg Signed-off-by: Lucifergene <47265560+Lucifergene@users.noreply.github.com> --------- Signed-off-by: Lucifergene <47265560+Lucifergene@users.noreply.github.com>
1 parent d63524c commit 5ad094e

125 files changed

Lines changed: 44279 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@
1717
/workspaces/openshift-image-registry @christoph-jerolimov @ciiay @debsmita1 @divyanshiGupta @gashcrumb @its-mitesh-kumar @logonoff @karthikjeeyar
1818
/workspaces/orchestrator @batzionb @mareklibra @gciavarrini
1919
/workspaces/theme @christoph-jerolimov @ciiay @debsmita1 @divyanshiGupta @gashcrumb @its-mitesh-kumar @logonoff
20+
/workspaces/sandbox @lucifergene @rohitkrai03
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"privatePackages": {
11+
"tag": false,
12+
"version": false
13+
}
14+
}
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-sandbox': patch
3+
---
4+
5+
Added Home and Activities pages

workspaces/sandbox/.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.git
2+
.yarn/cache
3+
.yarn/install-state.gz
4+
node_modules
5+
packages/*/src
6+
packages/*/node_modules
7+
plugins
8+
*.local.yaml

workspaces/sandbox/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
playwright.config.ts

workspaces/sandbox/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('../../.eslintrc.cjs');

workspaces/sandbox/.gitignore

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# macOS
2+
.DS_Store
3+
4+
# Logs
5+
logs
6+
*.log
7+
npm-debug.log*
8+
yarn-debug.log*
9+
yarn-error.log*
10+
lerna-debug.log*
11+
12+
# Coverage directory generated when running tests with coverage
13+
coverage
14+
15+
# Dependencies
16+
node_modules/
17+
18+
# Yarn 3 files
19+
.pnp.*
20+
.yarn/*
21+
!.yarn/patches
22+
!.yarn/plugins
23+
!.yarn/releases
24+
!.yarn/sdks
25+
!.yarn/versions
26+
27+
# Node version directives
28+
.nvmrc
29+
30+
# dotenv environment variables file
31+
.env
32+
.env.test
33+
34+
# Build output
35+
dist
36+
dist-types
37+
38+
# Temporary change files created by Vim
39+
*.swp
40+
41+
# MkDocs build output
42+
site
43+
44+
# Local configuration files
45+
*.local.yaml
46+
47+
# Sensitive credentials
48+
*-credentials.yaml
49+
50+
# vscode database functionality support files
51+
*.session.sql
52+
53+
# E2E test reports
54+
e2e-test-report/

workspaces/sandbox/.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dist
2+
dist-types
3+
dist-dynamic
4+
coverage
5+
.vscode
6+
.eslintrc.js

workspaces/sandbox/README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Developer Sandbox Plugin for Red Hat Developer Hub
2+
3+
This plugin provides the new developer sandbox experience for the Red Hat Developer Hub.
4+
5+
## Configuration
6+
7+
This plugin needs the following to be configured in the `app-config.yaml` file:
8+
9+
1. The URL of the registration-service-api production server.
10+
2. The URL of the kube-api production server.
11+
3. The site key for Google Recaptcha. The keys can be obtained from the Google Recaptcha admin console.
12+
13+
## Dynamic Plugin Configuration
14+
15+
This is the configuration that needs to be added to the `app-config.yaml` file to enable the sandbox dynamic plugin:
16+
17+
```yaml
18+
dynamicPlugins:
19+
frontend:
20+
red-hat-developer-hub.backstage-plugin-sandbox:
21+
appIcons:
22+
- name: homeIcon
23+
importName: SandboxHomeIcon
24+
- name: activitiesIcon
25+
importName: SandboxActivitiesIcon
26+
dynamicRoutes:
27+
- path: /home
28+
importName: SandboxPage
29+
menuItem:
30+
icon: homeIcon
31+
text: Home
32+
- path: /activities
33+
importName: SandboxActivitiesPage
34+
menuItem:
35+
icon: activitiesIcon
36+
text: Activities
37+
```
38+
39+
## Development
40+
41+
To start the app, run:
42+
43+
```sh
44+
yarn install
45+
yarn dev
46+
```
47+
48+
To generate knip reports for this app, run:
49+
50+
```sh
51+
yarn backstage-repo-tools knip-reports
52+
```

0 commit comments

Comments
 (0)