Skip to content

Commit cf3012c

Browse files
authored
Merge pull request #1 from bitloops/add-dashboard-ui
Initial Dashboard UI
2 parents a544dce + 736efef commit cf3012c

187 files changed

Lines changed: 15469 additions & 360 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.

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ dist-ssr
2222
*.njsproj
2323
*.sln
2424
*.sw?
25+
26+
# Playwright
27+
test-results
28+
playwright-report
29+
playwright/.cache

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,47 @@ export default defineConfig([
7272
])
7373
```
7474
# local-dashboard
75+
76+
## OpenAPI type generation
77+
78+
The app generates OpenAPI types automatically before `dev` and `build`.
79+
80+
- Primary schema URL: `https://bitloops.local:5667/api/openapi.json`
81+
- Fallback schema URL: `http://127.0.0.1:5667/api/openapi.json`
82+
- Generated file: `src/types/openapi.generated.d.ts`
83+
84+
You can run generation manually:
85+
86+
```bash
87+
pnpm run generate:api-types
88+
```
89+
90+
Optional overrides:
91+
92+
- `OPENAPI_PRIMARY_URL`
93+
- `OPENAPI_FALLBACK_URL`
94+
- `OPENAPI_TYPES_OUTPUT`
95+
96+
## Dashboard API
97+
98+
Dashboard API calls are done via the generated CLI client:
99+
100+
- `src/api/types/schema/BitloopsCli.ts`
101+
102+
Used endpoints:
103+
104+
- `/api/commits`
105+
- `/api/branches`
106+
- `/api/users`
107+
- `/api/agents`
108+
109+
There is no automatic mock fallback during runtime.
110+
Mock values are stored in:
111+
112+
- `src/features/dashboard/data/mock-commit-data.ts`
113+
114+
Optional overrides:
115+
116+
- `VITE_BITLOOPS_CLI_BASE` (base URL used by `BitloopsCli`, default empty string / same origin)
117+
- `VITE_DASHBOARD_REQUEST_TIMEOUT_MS` (per-request timeout, default `2500`)
118+
- `VITE_API_PROXY_TARGET` (Vite `/api` proxy target, default `http://bitloops.local:5667`)

0 commit comments

Comments
 (0)