Skip to content

Commit 1aae83b

Browse files
committed
rebase
1 parent ce16155 commit 1aae83b

File tree

10 files changed

+12
-21
lines changed

10 files changed

+12
-21
lines changed

apps/code/src/main/db/repositories/auth-session-repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { CloudRegion } from "@shared/types/oauth";
1+
import type { CloudRegion } from "@shared/types/regions";
22
import { eq } from "drizzle-orm";
33
import { inject, injectable } from "inversify";
44
import { MAIN_TOKENS } from "../../di/tokens";

apps/code/src/main/services/auth/service.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import {
2-
getCloudUrlFromRegion,
3-
OAUTH_SCOPE_VERSION,
4-
} from "@shared/constants/oauth";
5-
import type { CloudRegion } from "@shared/types/oauth";
1+
import { OAUTH_SCOPE_VERSION } from "@shared/constants/oauth";
2+
import type { CloudRegion } from "@shared/types/regions";
63
import { type BackoffOptions, sleepWithBackoff } from "@shared/utils/backoff";
4+
import { getCloudUrlFromRegion } from "@shared/utils/urls";
75
import { powerMonitor } from "electron";
86
import { inject, injectable, postConstruct, preDestroy } from "inversify";
97
import type { IAuthPreferenceRepository } from "../../db/repositories/auth-preference-repository";

apps/code/src/renderer/features/auth/components/AuthScreen.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import codeLogo from "@renderer/assets/images/code.svg";
1010
import logomark from "@renderer/assets/images/logomark.svg";
1111
import { trpcClient } from "@renderer/trpc/client";
1212
import type { CloudRegion } from "@shared/types/regions";
13+
import { REGION_LABELS } from "@shared/types/regions";
1314
import { RegionSelect } from "./RegionSelect";
1415

1516
export const getErrorMessage = (error: unknown) => {

apps/code/src/renderer/features/auth/hooks/authClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { PostHogAPIClient } from "@renderer/api/posthogClient";
22
import { trpcClient } from "@renderer/trpc/client";
3-
import { getCloudUrlFromRegion } from "@shared/constants/oauth";
3+
import { getCloudUrlFromRegion } from "@shared/utils/urls";
44
import { useMemo } from "react";
55
import {
66
type AuthState,

apps/code/src/renderer/features/auth/hooks/authMutations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { useOnboardingStore } from "@features/onboarding/stores/onboardingStore"
88
import { resetSessionService } from "@features/sessions/service/service";
99
import { trpcClient } from "@renderer/trpc/client";
1010
import { ANALYTICS_EVENTS } from "@shared/types/analytics";
11-
import type { CloudRegion } from "@shared/types/oauth";
11+
import type { CloudRegion } from "@shared/types/regions";
1212
import { useNavigationStore } from "@stores/navigationStore";
1313
import { useMutation } from "@tanstack/react-query";
1414
import { track } from "@utils/analytics";

apps/code/src/renderer/features/auth/stores/authStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { useSeatStore } from "@features/billing/stores/seatStore";
22
import { useSettingsDialogStore } from "@features/settings/stores/settingsDialogStore";
33
import { PostHogAPIClient } from "@renderer/api/posthogClient";
44
import { trpcClient } from "@renderer/trpc/client";
5-
import { getCloudUrlFromRegion } from "@shared/utils/urls";
65
import { ANALYTICS_EVENTS } from "@shared/types/analytics";
76
import type { CloudRegion } from "@shared/types/regions";
7+
import { getCloudUrlFromRegion } from "@shared/utils/urls";
88
import { useNavigationStore } from "@stores/navigationStore";
99
import { identifyUser, resetUser, track } from "@utils/analytics";
1010
import { logger } from "@utils/logger";

apps/code/src/renderer/features/auth/stores/authUiStateStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { CloudRegion } from "@shared/types/oauth";
1+
import type { CloudRegion } from "@shared/types/regions";
22
import { create } from "zustand";
33

44
interface AuthUiStateStoreState {

apps/code/src/renderer/features/inbox/hooks/useSignalSourceManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type {
55
Evaluation,
66
SignalSourceConfig,
77
} from "@renderer/api/posthogClient";
8-
import { getCloudUrlFromRegion } from "@shared/constants/oauth";
8+
import { getCloudUrlFromRegion } from "@shared/utils/urls";
99
import { useQueryClient } from "@tanstack/react-query";
1010
import { useCallback, useMemo, useRef, useState } from "react";
1111
import { toast } from "sonner";

apps/code/src/renderer/features/onboarding/components/OrgBillingStep.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,7 @@ import { authKeys, useCurrentUser } from "@features/auth/hooks/authQueries";
33
import { useOnboardingStore } from "@features/onboarding/stores/onboardingStore";
44
import { useOrganizations } from "@hooks/useOrganizations";
55
import { ArrowLeft, ArrowRight, CheckCircle } from "@phosphor-icons/react";
6-
import {
7-
Badge,
8-
Box,
9-
Button,
10-
Callout,
11-
Flex,
12-
Skeleton,
13-
Text,
14-
} from "@radix-ui/themes";
6+
import { Box, Button, Callout, Flex, Skeleton, Text } from "@radix-ui/themes";
157
import codeLogo from "@renderer/assets/images/code.svg";
168
import { useMutation, useQueryClient } from "@tanstack/react-query";
179
import { logger } from "@utils/logger";

apps/code/src/renderer/features/task-detail/hooks/usePreviewConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useAuthStateValue } from "@features/auth/hooks/authQueries";
33
import { useSettingsStore } from "@features/settings/stores/settingsStore";
44
import { getEffortOptions } from "@posthog/agent/adapters/claude/session/models";
55
import { trpcClient } from "@renderer/trpc/client";
6-
import { getCloudUrlFromRegion } from "@shared/constants/oauth";
6+
import { getCloudUrlFromRegion } from "@shared/utils/urls";
77
import { logger } from "@utils/logger";
88
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
99

0 commit comments

Comments
 (0)