diff --git a/src/app/api/documents/[id]/parsed/events/route.ts b/src/app/api/documents/[id]/parsed/events/route.ts index 927c6ff..31af7fe 100644 --- a/src/app/api/documents/[id]/parsed/events/route.ts +++ b/src/app/api/documents/[id]/parsed/events/route.ts @@ -10,7 +10,6 @@ import { fetchWorkerOperationState } from '@/lib/server/compute/worker-op-state' import { isValidDocumentId } from '@/lib/server/documents/blobstore'; import { normalizeParseStatus, parseDocumentParseState } from '@/lib/server/documents/parse-state'; import { healStaleDocumentParseState } from '@/lib/server/documents/parse-state-healing'; -import { getOpenReaderTestNamespace } from '@/lib/server/testing/test-namespace'; import { isS3Configured } from '@/lib/server/storage/s3'; import { createRequestLogger, hashForLog } from '@/lib/server/logger'; import { errorResponse } from '@/lib/server/errors/next-response'; @@ -159,7 +158,6 @@ export async function GET(req: NextRequest, ctx: { params: Promise<{ id: string ? requestedOpIdRaw.trim() : null; - const testNamespace = getOpenReaderTestNamespace(req.headers); const storageUserId = authCtxOrRes.userId; const storageUserIdHash = hashForLog(storageUserId); const allowedUserIds = [storageUserId]; diff --git a/src/components/SettingsModal.tsx b/src/components/SettingsModal.tsx index 18618eb..62593bc 100644 --- a/src/components/SettingsModal.tsx +++ b/src/components/SettingsModal.tsx @@ -1252,18 +1252,20 @@ export function SettingsModal({ Disconnect account -
- - -

- Permanently deletes your account and all data. -

-
+ {enableDestructiveDelete && ( +
+ + +

+ Permanently deletes your account and all data. +

+
+ )} ) : (
diff --git a/src/components/auth/UserMenu.tsx b/src/components/auth/UserMenu.tsx index e771f3e..17b21b3 100644 --- a/src/components/auth/UserMenu.tsx +++ b/src/components/auth/UserMenu.tsx @@ -90,8 +90,8 @@ export function UserMenu({ } return ( -
- +
+ {session.user.email || 'Account'} @@ -99,6 +99,8 @@ export function UserMenu({ onClick={handleDisconnectAccount} title="Disconnect account" aria-label="Disconnect account" + size="xs" + className="-mr-0.5" >