Skip to content

Commit be962b4

Browse files
authored
Merge pull request asgardeo#2540 from brionmario/refactor-thunder-rebrand-4
[Chunk 1] Rebrand `Thunder` -> `ThunderID`
2 parents 7173f90 + 9efd7ff commit be962b4

673 files changed

Lines changed: 1690 additions & 1848 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.

.agent/skills/console/SKILL.md

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
name: console
3-
description: Navigate and interact with the Thunder Console UI. Use when exploring the Thunder admin console, testing UI changes, creating users/applications/roles, or debugging the frontend.
3+
description: Navigate and interact with the ThunderID Console UI. Use when exploring the ThunderID admin console, testing UI changes, creating users/applications/roles, or debugging the frontend.
44
allowed-tools: Bash(playwright-cli:*) Bash(npx:*)
55
---
66

7-
# Thunder Console Navigation with playwright-cli
7+
# ThunderID Console Navigation with playwright-cli
88

99
## Resolving the Console Base URL
1010

@@ -13,30 +13,30 @@ Before running any commands, determine the console base URL. Do NOT hardcode a U
1313
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`.
1414
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`.
1515
3. **Check environment variables**: `PORT`, `HOST`, or `BASE_URL` may override the defaults.
16-
4. **If unable to resolve**, ask the user for the Thunder Console URL.
16+
4. **If unable to resolve**, ask the user for the ThunderID Console URL.
1717

1818
Use the resolved URL as `{CONSOLE_URL}` in all commands below (e.g., `{CONSOLE_URL}`).
1919

2020
## Quick Start
2121

2222
```bash
2323
# Open Console (redirects to sign-in gate)
24-
playwright-cli open {CONSOLE_URL} -s=thunder
24+
playwright-cli open {CONSOLE_URL} -s=thunderid
2525

2626
# After authenticating (see below), navigate directly
27-
playwright-cli goto {CONSOLE_URL}/users -s=thunder
27+
playwright-cli goto {CONSOLE_URL}/users -s=thunderid
2828

2929
# Snapshot the page to see element refs
30-
playwright-cli snapshot -s=thunder
30+
playwright-cli snapshot -s=thunderid
3131

3232
# Interact with elements using refs from snapshot
33-
playwright-cli click e15 -s=thunder
33+
playwright-cli click e15 -s=thunderid
3434

3535
# Take a screenshot
36-
playwright-cli screenshot -s=thunder
36+
playwright-cli screenshot -s=thunderid
3737

3838
# Close the browser
39-
playwright-cli close -s=thunder
39+
playwright-cli close -s=thunderid
4040
```
4141

4242
## Prerequisites
@@ -47,11 +47,11 @@ If `playwright-cli` is not installed:
4747
npm install -g @playwright/cli@latest
4848
```
4949

50-
All commands use the named session `-s=thunder` so the browser persists across commands.
50+
All commands use the named session `-s=thunderid` so the browser persists across commands.
5151

5252
## Authentication
5353

54-
Thunder Console requires authentication. The sign-in form is dynamically rendered by the Asgardeo SDK, so always use `snapshot` to get element refs before interacting.
54+
ThunderID Console requires authentication. The sign-in form is dynamically rendered by the Asgardeo SDK, so always use `snapshot` to get element refs before interacting.
5555

5656
Default credentials: `admin` / `admin`
5757

@@ -60,42 +60,42 @@ Default credentials: `admin` / `admin`
6060
```bash
6161
# 0. Accept self-signed certs first (see Troubleshooting for details)
6262
# Open blank session, navigate to each origin, click through cert warnings
63-
playwright-cli open -s=thunder
63+
playwright-cli open -s=thunderid
6464
# Accept backend cert, then console cert, then gate cert (see Troubleshooting)
6565

6666
# 1. Navigate to the console (auto-redirects to /gate/signin)
67-
playwright-cli goto {CONSOLE_URL} -s=thunder
67+
playwright-cli goto {CONSOLE_URL} -s=thunderid
6868

6969
# 2. Snapshot to see the login form elements
70-
playwright-cli snapshot -s=thunder
70+
playwright-cli snapshot -s=thunderid
7171

7272
# 3. Fill username (use the ref from snapshot for the username input)
73-
playwright-cli fill <username-ref> "admin" -s=thunder
73+
playwright-cli fill <username-ref> "admin" -s=thunderid
7474

7575
# 4. Fill password (use the ref from snapshot for the password input)
76-
playwright-cli fill <password-ref> "admin" -s=thunder
76+
playwright-cli fill <password-ref> "admin" -s=thunderid
7777

7878
# 5. Click Sign In (use the ref from snapshot for the submit button)
79-
playwright-cli click <submit-ref> -s=thunder
79+
playwright-cli click <submit-ref> -s=thunderid
8080

8181
# 6. Verify redirect to console home
82-
playwright-cli snapshot -s=thunder
82+
playwright-cli snapshot -s=thunderid
8383

8484
# 7. Save auth state for reuse
85-
playwright-cli state-save thunder-auth -s=thunder
85+
playwright-cli state-save thunderid-auth -s=thunderid
8686
```
8787

8888
### Reuse Saved Auth
8989

9090
```bash
91-
playwright-cli open -s=thunder
92-
playwright-cli state-load thunder-auth -s=thunder
93-
playwright-cli goto {CONSOLE_URL} -s=thunder
91+
playwright-cli open -s=thunderid
92+
playwright-cli state-load thunderid-auth -s=thunderid
93+
playwright-cli goto {CONSOLE_URL} -s=thunderid
9494
```
9595

9696
## Route Map
9797

98-
The Thunder Console base path is `/console`. Append routes below to the resolved `{CONSOLE_URL}`. The sidebar is organized into categories.
98+
The ThunderID Console base path is `/console`. Append routes below to the resolved `{CONSOLE_URL}`. The sidebar is organized into categories.
9999

100100
### Sidebar Navigation
101101

@@ -147,82 +147,82 @@ The Thunder Console base path is `/console`. Append routes below to the resolved
147147
### Navigate to a Page
148148

149149
```bash
150-
playwright-cli goto {CONSOLE_URL}/users -s=thunder
151-
playwright-cli snapshot -s=thunder
150+
playwright-cli goto {CONSOLE_URL}/users -s=thunderid
151+
playwright-cli snapshot -s=thunderid
152152
```
153153

154154
### Navigate via Sidebar
155155

156156
```bash
157157
# Snapshot to see sidebar element refs
158-
playwright-cli snapshot -s=thunder
158+
playwright-cli snapshot -s=thunderid
159159
# Click a sidebar item by its ref
160-
playwright-cli click <sidebar-item-ref> -s=thunder
160+
playwright-cli click <sidebar-item-ref> -s=thunderid
161161
```
162162

163163
### Create a Resource (e.g., User)
164164

165165
```bash
166166
# Navigate to users list
167-
playwright-cli goto {CONSOLE_URL}/users -s=thunder
168-
playwright-cli snapshot -s=thunder
167+
playwright-cli goto {CONSOLE_URL}/users -s=thunderid
168+
playwright-cli snapshot -s=thunderid
169169

170170
# Click the "Add User" or create button
171-
playwright-cli click <create-button-ref> -s=thunder
172-
playwright-cli snapshot -s=thunder
171+
playwright-cli click <create-button-ref> -s=thunderid
172+
playwright-cli snapshot -s=thunderid
173173

174174
# Fill the creation form fields using refs from snapshot
175-
playwright-cli fill <field-ref> "value" -s=thunder
175+
playwright-cli fill <field-ref> "value" -s=thunderid
176176

177177
# Submit
178-
playwright-cli click <submit-ref> -s=thunder
179-
playwright-cli snapshot -s=thunder
178+
playwright-cli click <submit-ref> -s=thunderid
179+
playwright-cli snapshot -s=thunderid
180180
```
181181

182182
### Search in a List
183183

184184
```bash
185-
playwright-cli goto {CONSOLE_URL}/users -s=thunder
186-
playwright-cli snapshot -s=thunder
187-
playwright-cli fill <search-input-ref> "john" -s=thunder
188-
playwright-cli snapshot -s=thunder
185+
playwright-cli goto {CONSOLE_URL}/users -s=thunderid
186+
playwright-cli snapshot -s=thunderid
187+
playwright-cli fill <search-input-ref> "john" -s=thunderid
188+
playwright-cli snapshot -s=thunderid
189189
```
190190

191191
### Inspect an Element
192192

193193
```bash
194-
playwright-cli eval "el => el.getAttribute('data-testid')" <ref> -s=thunder
195-
playwright-cli eval "el => el.textContent" <ref> -s=thunder
194+
playwright-cli eval "el => el.getAttribute('data-testid')" <ref> -s=thunderid
195+
playwright-cli eval "el => el.textContent" <ref> -s=thunderid
196196
```
197197

198198
### Take a Screenshot
199199

200200
```bash
201-
playwright-cli screenshot -s=thunder
202-
playwright-cli screenshot --filename=console-users.png -s=thunder
201+
playwright-cli screenshot -s=thunderid
202+
playwright-cli screenshot --filename=console-users.png -s=thunderid
203203
```
204204

205205
## Troubleshooting
206206

207-
- **Redirected to `/gate/signin`**: Auth expired. Re-authenticate or run `playwright-cli state-load thunder-auth -s=thunder`.
208-
- **Elements not found in snapshot**: Page may still be loading. Wait a moment and run `playwright-cli snapshot -s=thunder` again.
209-
- **HTTPS certificate errors**: Thunder uses self-signed certificates on multiple origins (gate, console, backend). The browser will block navigation with `ERR_CERT_AUTHORITY_INVALID`. To bypass, open a blank session first, then navigate via JS `eval` to trigger Chrome's interstitial error page, and click through it:
207+
- **Redirected to `/gate/signin`**: Auth expired. Re-authenticate or run `playwright-cli state-load thunderid-auth -s=thunderid`.
208+
- **Elements not found in snapshot**: Page may still be loading. Wait a moment and run `playwright-cli snapshot -s=thunderid` again.
209+
- **HTTPS certificate errors**: ThunderID uses self-signed certificates on multiple origins (gate, console, backend). The browser will block navigation with `ERR_CERT_AUTHORITY_INVALID`. To bypass, open a blank session first, then navigate via JS `eval` to trigger Chrome's interstitial error page, and click through it:
210210

211211
```bash
212212
# 1. Open a blank browser session
213-
playwright-cli open -s=thunder
213+
playwright-cli open -s=thunderid
214214

215215
# 2. Navigate to the target URL (triggers cert error page)
216-
playwright-cli eval "window.location.assign('{CONSOLE_URL}')" -s=thunder
216+
playwright-cli eval "window.location.assign('{CONSOLE_URL}')" -s=thunderid
217217

218218
# 3. Click through the cert warning
219-
playwright-cli snapshot -s=thunder # find the "Advanced" button ref
220-
playwright-cli click <advanced-ref> -s=thunder
221-
playwright-cli snapshot -s=thunder # find the "Proceed to localhost (unsafe)" link ref
222-
playwright-cli click <proceed-ref> -s=thunder
219+
playwright-cli snapshot -s=thunderid # find the "Advanced" button ref
220+
playwright-cli click <advanced-ref> -s=thunderid
221+
playwright-cli snapshot -s=thunderid # find the "Proceed to localhost (unsafe)" link ref
222+
playwright-cli click <proceed-ref> -s=thunderid
223223
```
224224

225225
**Important**: You must accept certs for **each origin** the console talks to. The console redirects to the gate for auth, which calls the backend. If the backend cert is not accepted in the same browser session, API calls will silently fail. Resolve the backend port from `deployment.yaml` (`server.port`) and the gate port from the console's runtime config. Accept certs for each origin before proceeding.
226226

227227
- **Login form not visible**: The Asgardeo SDK renders the form dynamically. Take a snapshot after a brief wait. If you see a loading spinner, snapshot again after a few seconds.
228-
- **Session lost**: Run `playwright-cli list` to check active sessions. Start a new one with `playwright-cli open -s=thunder`.
228+
- **Session lost**: Run `playwright-cli list` to check active sessions. Start a new one with `playwright-cli open -s=thunderid`.

.github/workflows/pr-builder.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ jobs:
416416
run: |
417417
cat coverage/console/console-coverage-shard-*/lcov.info > coverage/console-merged-lcov.info
418418
419-
- name: 📊 Upload `@thunder/console` Unit Test Coverage Report to Codecov
419+
- name: 📊 Upload `@thunderid/console` Unit Test Coverage Report to Codecov
420420
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4
421421
with:
422422
token: ${{ secrets.CODECOV_TOKEN }}
@@ -426,7 +426,7 @@ jobs:
426426
name: Frontend Console App Unit Tests
427427
fail_ci_if_error: false
428428

429-
- name: 📊 Upload `@thunder/gate` Unit Test Coverage Report to Codecov
429+
- name: 📊 Upload `@thunderid/gate` Unit Test Coverage Report to Codecov
430430
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4
431431
with:
432432
token: ${{ secrets.CODECOV_TOKEN }}

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"files.insertFinalNewline": true,
23
"[typescriptreact][javascriptreact][typescript][javascript][json]": {
34
"editor.formatOnSave": true,
45
"editor.defaultFormatter": "esbenp.prettier-vscode",

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Project Overview
22

3-
Thunder is a lightweight user and identity management product. Go backend + React frontend in a monorepo. It provides authentication and authorization via OAuth2/OIDC, flexible orchestration flows, and individual auth mechanisms (password, passwordless, social login).
3+
ThunderID is a lightweight user and identity management product. Go backend + React frontend in a monorepo. It provides authentication and authorization via OAuth2/OIDC, flexible orchestration flows, and individual auth mechanisms (password, passwordless, social login).
44

55
- [ARCHITECTURE.md](ARCHITECTURE.md)
66
- For build and running - [Makefile](Makefile) and [README.md](README.md)

ARCHITECTURE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ backend/internal/
2222
frontend/apps/
2323
gate/ # login/registration SPA (@asgardeo/react — app-native mode)
2424
console/ # admin SPA (@asgardeo/react — redirect mode)
25-
frontend/packages/ # @thunder/contexts · design · hooks · i18n · utils · types · logger
25+
frontend/packages/ # @thunderid/contexts · design · hooks · i18n · utils · types · logger
2626
samples/apps/ # react-sdk-sample · react-api-based-sample · react-vanilla-sample
2727
```
2828

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1798,7 +1798,7 @@ function Run-Frontend {
17981798

17991799
Write-Host "Starting frontend applications in the background..."
18001800
# Start frontend processes in background
1801-
$frontendProcess = Start-Process -FilePath "cmd.exe" -ArgumentList "/c", "pnpm", "-r", "--parallel", "--filter", "@thunder/console", "--filter", "@thunder/gate", "dev" -PassThru -NoNewWindow
1801+
$frontendProcess = Start-Process -FilePath "cmd.exe" -ArgumentList "/c", "pnpm", "-r", "--parallel", "--filter", "@thunderid/console", "--filter", "@thunderid/gate", "dev" -PassThru -NoNewWindow
18021802
$script:FRONTEND_PID = $frontendProcess.Id
18031803
}
18041804
finally {

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ function run_frontend() {
11641164

11651165
echo "Starting frontend applications in the background..."
11661166
# Start frontend processes in background
1167-
pnpm -r --parallel --filter "@thunder/console" --filter "@thunder/gate" dev &
1167+
pnpm -r --parallel --filter "@thunderid/console" --filter "@thunderid/gate" dev &
11681168
FRONTEND_PID=$!
11691169

11701170
# Return to script directory

docs/AGENTS.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
22
title: AGENTS
3-
description: AI agents should use this file when creating and reviewing documentation content for Thunder. It contains the standards, guidelines, and requirements that must be followed to ensure high-quality documentation.
3+
description: AI agents should use this file when creating and reviewing documentation content for ThunderID. It contains the standards, guidelines, and requirements that must be followed to ensure high-quality documentation.
44
---
55

6-
# Thunder Documentation Creation Instructions
6+
# ThunderID Documentation Creation Instructions
77

8-
Follow these instructions when creating new documentation content for Thunder. Adhere to all guidelines to ensure consistency, clarity, and quality.
8+
Follow these instructions when creating new documentation content for ThunderID. Adhere to all guidelines to ensure consistency, clarity, and quality.
99

1010
## Scope and Boundaries
1111

1212

1313
### Audience
1414

15-
- Your primary audience is Thunder users, including system administrators, developers, and IT professionals.
16-
- Assume the audience has a basic understanding of IT concepts but may be unfamiliar with Thunder specifics.
15+
- Your primary audience is ThunderID users, including system administrators, developers, and IT professionals.
16+
- Assume the audience has a basic understanding of IT concepts but may be unfamiliar with ThunderID specifics.
1717
- Avoid jargon and explain concepts clearly.
1818

1919
### What You Must Do
@@ -26,7 +26,7 @@ Follow these instructions when creating new documentation content for Thunder. A
2626

2727
## Authoring Standards
2828

29-
You must follow these standards when creating documentation content for Thunder.
29+
You must follow these standards when creating documentation content for ThunderID.
3030

3131
### Voice and Tone
3232

@@ -46,11 +46,11 @@ You must follow these standards when creating documentation content for Thunder.
4646
- Do not alternate between long and short forms unless formally introduced.
4747

4848
**Correct:**
49-
- Thunder Console
49+
- ThunderID Console
5050
- Passkey Authentication
5151

5252
**Incorrect:**
53-
- Thunder console
53+
- ThunderID console
5454
- Console
5555
- Passkey auth
5656

@@ -313,7 +313,7 @@ When Vale feedback is provided through CI checks:
313313

314314
## Vocabulary Guidelines
315315

316-
Strictly follow these vocabulary guidelines when writing Thunder documentation.
316+
Strictly follow these vocabulary guidelines when writing ThunderID documentation.
317317

318318
### Use of "Multiple"
319319

docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# Thunder Documentation ⚡
1+
# ThunderID Documentation ⚡
22

3-
Documentation for **Thunder** - a modern identity management suite. This documentation covers installation, configuration, development, and contribution guidelines for the Thunder platform.
3+
Documentation for **ThunderID** - a modern identity management suite. This documentation covers installation, configuration, development, and contribution guidelines for the ThunderID platform.

docs/content/community/contributing/contributing-code/configure-and-run.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ cors:
249249

250250
```bash
251251
cd frontend
252-
pnpm --filter @thunder/gate dev
252+
pnpm --filter @thunderid/gate dev
253253
```
254254

255255
### Setting up the <ProductName /> Console Application
@@ -298,7 +298,7 @@ cors:
298298
6. Run the <ProductName /> Console application.
299299

300300
```bash
301-
pnpm --filter @thunder/console dev
301+
pnpm --filter @thunderid/console dev
302302
```
303303

304304
This will run the <ProductName /> Console application on `https://localhost:5191/console`.

0 commit comments

Comments
 (0)