Skip to content

Commit 713cb75

Browse files
strukalexclaude
andcommitted
fix: apply biome formatting and import ordering fixes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0770b8c commit 713cb75

5 files changed

Lines changed: 12 additions & 18 deletions

File tree

apps/backend-services/src/bootstrap/bootstrap.controller.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ import {
66
Post,
77
Req,
88
} from "@nestjs/common";
9-
import {
10-
ApiOperation,
11-
ApiResponse,
12-
ApiTags,
13-
} from "@nestjs/swagger";
9+
import { ApiOperation, ApiResponse, ApiTags } from "@nestjs/swagger";
1410
import { Request } from "express";
1511
import { KeycloakSSOAuth } from "@/decorators/custom-auth-decorators";
1612
import { User } from "../auth/types";
@@ -22,7 +18,8 @@ export class BootstrapController {
2218
constructor(private readonly bootstrapService: BootstrapService) {}
2319

2420
@ApiOperation({
25-
summary: "Check if system bootstrap is needed and if the caller is eligible",
21+
summary:
22+
"Check if system bootstrap is needed and if the caller is eligible",
2623
})
2724
@ApiResponse({
2825
status: 200,

apps/backend-services/src/bootstrap/bootstrap.service.spec.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ function createMockPrisma(adminCount = 0) {
2727
};
2828
}
2929

30-
function createService(
31-
adminCount: number,
32-
bootstrapEmail: string | undefined,
33-
) {
30+
function createService(adminCount: number, bootstrapEmail: string | undefined) {
3431
const mockPrisma = createMockPrisma(adminCount);
3532
const configService = {
3633
get: jest.fn((key: string) => {

apps/backend-services/src/bootstrap/bootstrap.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { GroupRole } from "@generated/client";
22
import {
3+
ConflictException,
34
ForbiddenException,
45
Injectable,
5-
ConflictException,
66
} from "@nestjs/common";
77
import { ConfigService } from "@nestjs/config";
88
import { AuditService } from "../audit/audit.service";

apps/frontend/src/data/hooks/useBootstrap.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ export function useBootstrapStatus(enabled: boolean) {
2323
const response =
2424
await apiService.get<BootstrapStatus>("/bootstrap/status");
2525
if (!response.success) {
26-
throw new Error(
27-
response.message ?? "Failed to check bootstrap status",
28-
);
26+
throw new Error(response.message ?? "Failed to check bootstrap status");
2927
}
3028
return response.data ?? { needed: false, eligible: false };
3129
},
@@ -41,8 +39,7 @@ export function usePerformBootstrap() {
4139
const queryClient = useQueryClient();
4240
return useMutation({
4341
mutationFn: async (): Promise<BootstrapResult> => {
44-
const response =
45-
await apiService.post<BootstrapResult>("/bootstrap", {});
42+
const response = await apiService.post<BootstrapResult>("/bootstrap", {});
4643
if (!response.success || !response.data) {
4744
throw new Error(response.message ?? "Failed to perform bootstrap");
4845
}

apps/frontend/src/pages/SetupPage.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ export function SetupPage(): JSX.Element {
101101
color="red"
102102
data-testid="bootstrap-mutation-error"
103103
>
104-
{bootstrapMutation.error?.message ?? "Setup failed. Please try again."}
104+
{bootstrapMutation.error?.message ??
105+
"Setup failed. Please try again."}
105106
</Alert>
106107
)}
107108

@@ -113,7 +114,9 @@ export function SetupPage(): JSX.Element {
113114
</Text>
114115
<Text size="sm" component="ul" pl="md">
115116
<li>Promote your account to system administrator</li>
116-
<li>Create a &quot;Default&quot; group with you as group admin</li>
117+
<li>
118+
Create a &quot;Default&quot; group with you as group admin
119+
</li>
117120
</Text>
118121
<Button
119122
size="lg"

0 commit comments

Comments
 (0)