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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .agent/skills/console/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ allowed-tools: Bash(playwright-cli:*) Bash(npx:*)
Before running any commands, determine the console base URL. Do NOT hardcode a URL — resolve it from project configuration:

1. **Check `deployment.yaml`** at `backend/cmd/server/repository/conf/deployment.yaml` for the `server.hostname` and `server.port`. If the backend is serving the console (production mode), the URL is `https://{hostname}:{port}/console`.
2. **Check `vite.config.ts`** at `frontend/apps/thunder-console/vite.config.ts` for the development server `PORT` (default `5191`) and `HOST` (default `localhost`). If the frontend development server is running separately, the URL is `https://{HOST}:{PORT}/console`.
2. **Check `vite.config.ts`** at `frontend/apps/console/vite.config.ts` for the development server `PORT` (default `5191`) and `HOST` (default `localhost`). If the frontend development server is running separately, the URL is `https://{HOST}:{PORT}/console`.
3. **Check environment variables**: `PORT`, `HOST`, or `BASE_URL` may override the defaults.
4. **If unable to resolve**, ask the user for the Thunder Console URL.

Expand Down
4 changes: 2 additions & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@

## frontend files

/frontend/apps/thunder-console/ @DonOmalVindula
/frontend/apps/thunder-gate/ @brionmario
/frontend/apps/console/ @DonOmalVindula
/frontend/apps/gate/ @brionmario
/frontend/packages/ @jeradrutnam @brionmario @DonOmalVindula


Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pr-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -354,13 +354,13 @@ jobs:

- name: 🧪 Run Console Tests with Coverage
run: |
cd frontend/apps/thunder-console
cd frontend/apps/console
pnpm vitest run --coverage --shard=${{ matrix.shard }}/4

- name: 🧪 Run Gate Tests with Coverage
if: matrix.shard == 1
run: |
cd frontend/apps/thunder-gate
cd frontend/apps/gate
pnpm test:coverage

# Strip branch data (BRDA/BRF/BRH) from frontend LCOV reports before uploading.
Expand All @@ -370,7 +370,7 @@ jobs:
# Line and function coverage remain unaffected and accurately reflect test quality.
- name: 🧹 Strip branch data from frontend LCOV reports
run: |
for lcov_file in frontend/apps/thunder-console/coverage/lcov.info frontend/apps/thunder-gate/coverage/lcov.info; do
for lcov_file in frontend/apps/console/coverage/lcov.info frontend/apps/gate/coverage/lcov.info; do
if [ -f "$lcov_file" ]; then
sed -i '/^BRDA:/d;/^BRF:/d;/^BRH:/d' "$lcov_file"
fi
Expand All @@ -380,15 +380,15 @@ jobs:
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: console-coverage-shard-${{ matrix.shard }}
path: frontend/apps/thunder-console/coverage/lcov.info
path: frontend/apps/console/coverage/lcov.info
if-no-files-found: error

- name: 📦 Upload gate coverage artifact
if: matrix.shard == 1
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: gate-coverage
path: frontend/apps/thunder-gate/coverage/lcov.info
path: frontend/apps/gate/coverage/lcov.info
if-no-files-found: error

upload-frontend-coverage:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows-build-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ jobs:

# TODO: Re-enable frontend tests after E2E issues are resolved
# - name: 🧪 Run Console Tests
# working-directory: frontend/apps/thunder-console
# working-directory: frontend/apps/console
# run: pnpm test:coverage

# - name: 🧪 Run Gate Tests
# working-directory: frontend/apps/thunder-gate
# working-directory: frontend/apps/gate
# run: pnpm test:coverage

- name: 📦 Upload Windows Distribution
Expand Down
4 changes: 2 additions & 2 deletions ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ backend/internal/
consent/ application/ user/ group/ role/ ou/ idp/ # management domains
system/ # config · database · cache · jose/jwt · security · mcp · log · i18n
frontend/apps/
thunder-gate/ # login/registration SPA (@asgardeo/react — app-native mode)
thunder-console/ # admin SPA (@asgardeo/react — redirect mode)
gate/ # login/registration SPA (@asgardeo/react — app-native mode)
console/ # admin SPA (@asgardeo/react — redirect mode)
frontend/packages/ # @thunder/contexts · design · hooks · i18n · utils · types · logger
samples/apps/ # react-sdk-sample · react-api-based-sample · react-vanilla-sample
```
Expand Down
4 changes: 2 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ $SECURITY_DIR = "repository/resources/security"
$FRONTEND_BASE_DIR = "frontend"
$GATE_APP_DIST_DIR = "apps/gate"
$CONSOLE_APP_DIST_DIR = "apps/console"
$FRONTEND_GATE_APP_SOURCE_DIR = Join-Path $FRONTEND_BASE_DIR "apps/thunder-gate"
$FRONTEND_CONSOLE_APP_SOURCE_DIR = Join-Path $FRONTEND_BASE_DIR "apps/thunder-console"
$FRONTEND_GATE_APP_SOURCE_DIR = Join-Path $FRONTEND_BASE_DIR "apps/gate"
$FRONTEND_CONSOLE_APP_SOURCE_DIR = Join-Path $FRONTEND_BASE_DIR "apps/console"
$SAMPLE_BASE_DIR = "samples"
$VANILLA_SAMPLE_APP_DIR = Join-Path $SAMPLE_BASE_DIR "apps/react-vanilla-sample"
$VANILLA_SAMPLE_APP_SERVER_DIR = Join-Path $VANILLA_SAMPLE_APP_DIR "server"
Expand Down
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ SECURITY_DIR=repository/resources/security
FRONTEND_BASE_DIR=frontend
GATE_APP_DIST_DIR=apps/gate
CONSOLE_APP_DIST_DIR=apps/console
FRONTEND_GATE_APP_SOURCE_DIR=$FRONTEND_BASE_DIR/apps/thunder-gate
FRONTEND_CONSOLE_APP_SOURCE_DIR=$FRONTEND_BASE_DIR/apps/thunder-console
FRONTEND_GATE_APP_SOURCE_DIR=$FRONTEND_BASE_DIR/apps/gate
FRONTEND_CONSOLE_APP_SOURCE_DIR=$FRONTEND_BASE_DIR/apps/console
SAMPLE_BASE_DIR=samples
VANILLA_SAMPLE_APP_DIR=$SAMPLE_BASE_DIR/apps/react-vanilla-sample
VANILLA_SAMPLE_APP_SERVER_DIR=$VANILLA_SAMPLE_APP_DIR/server
Expand Down
4 changes: 2 additions & 2 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ flags:
frontend-apps-console-unit:
carryforward: false
paths:
- frontend/apps/thunder-console/
- frontend/apps/console/
frontend-apps-gate-unit:
carryforward: false
paths:
- frontend/apps/thunder-gate/
- frontend/apps/gate/

coverage:
status:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ The frontend is an Nx-managed monorepo under `frontend/` with two React apps:

| App | Location | Purpose | Development Port |
|-----|----------|---------|----------|
| <ProductName /> Gate | `frontend/apps/thunder-gate/` | Login, registration, recovery UI | 5190 |
| <ProductName /> Console | `frontend/apps/thunder-console/` | Admin console | 5191 |
| <ProductName /> Gate | `frontend/apps/gate/` | Login, registration, recovery UI | 5190 |
| <ProductName /> Console | `frontend/apps/console/` | Admin console | 5191 |

## File Naming

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Package creation and build typically completes in approximately 5 minutes.
Since we haven't published `@thunder/create` to npm yet, link it locally:

```bash
cd frontend/packages/thunder-create
cd frontend/packages/create
pnpm link --global
```

Expand All @@ -47,7 +47,7 @@ pnpm link --global
Execute from anywhere in the <ProductName /> workspace:

```bash
thunder-create
create
```

### Creating Feature Packages
Expand All @@ -57,7 +57,7 @@ Feature packages are domain-specific modules containing business logic, UI compo
To create a feature package, follow the interactive prompts:

```bash
thunder-create feature
create feature
```

#### Step 1: Select Feature Type
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing/frontend-guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ React/TypeScript frontend guidelines for the Thunder project.
- pnpm workspace managed by Nx.
- Testing: Vitest with `@testing-library/react`.
- Linting: ESLint. Each package may include its own lint configuration extending the shared base.
- Two apps: `thunder-gate` (auth UI), `thunder-develop` (console).
- Two apps: `gate` (auth UI), `thunder-develop` (console).

## Conventions

Expand Down
2 changes: 1 addition & 1 deletion frontend/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
/coverage

pnpm-lock.yaml
/packages/thunder-create/src/templates
/packages/create/src/templates
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"app",
"wso2"
],
"homepage": "https://github.com/asgardeo/thunder/tree/main/frontend/apps/thunder-console#readme",
"homepage": "https://github.com/asgardeo/thunder/tree/main/frontend/apps/console#readme",
"bugs": {
"url": "https://github.com/asgardeo/thunder/issues"
},
Expand All @@ -19,7 +19,7 @@
"repository": {
"type": "git",
"url": "https://github.com/asgardeo/thunder",
"directory": "frontend/apps/thunder-console"
"directory": "frontend/apps/console"
},
"scripts": {
"build": "tsc -b && vite build",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading