Skip to content

Commit cd264f2

Browse files
committed
Made changes to the frontend code I added so the tests would actually function.
1 parent daec255 commit cd264f2

File tree

12 files changed

+1088
-193
lines changed

12 files changed

+1088
-193
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,11 @@ node_modules/
55
/playwright-report/
66
/blob-report/
77
/playwright/.cache/
8+
9+
# OpenAPI generated file
10+
frontend/openapi.json
11+
12+
# Editor backup files
13+
*~
14+
*.swp
15+
*.swo

backend/app/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88

99

1010
def custom_generate_unique_id(route: APIRoute) -> str:
11-
return f"{route.tags[0]}-{route.name}"
11+
if route.tags:
12+
return f"{route.tags[0]}-{route.name}"
13+
return route.name
1214

1315

1416
if settings.SENTRY_DSN and settings.ENVIRONMENT != "local":

frontend/src/client/index.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,4 @@ export { ApiError } from './core/ApiError';
33
export { CancelablePromise, CancelError } from './core/CancelablePromise';
44
export { OpenAPI, type OpenAPIConfig } from './core/OpenAPI';
55
export * from './sdk.gen';
6-
export * from './types.gen';
7-
8-
// Temporary exports for new features (until OpenAPI client is regenerated)
9-
export { ProjectsServiceTemp, GalleriesServiceTemp } from './services-projects';
10-
export type { Project, ProjectsPublic, Gallery, GalleriesPublic, DashboardStats } from './types-projects';
6+
export * from './types.gen';

0 commit comments

Comments
 (0)